2514bdf28c
I am now at FreeBSD dot org Approved by: sobomax
62 lines
1.6 KiB
Makefile
62 lines
1.6 KiB
Makefile
# New ports collection makefile for: fltk
|
|
# Date created: 11 February 1999
|
|
# Whom: Dima Sivachenko <dima@Chg.RU>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= fltk
|
|
PORTVERSION?= ${_PORTVERSION}
|
|
CATEGORIES= x11-toolkits
|
|
MASTER_SITES= ftp://ftp.fltk.org/pub/fltk/${VERSION}/ \
|
|
ftp://ftp.chg.ru/pub/X11/fltk/${VERSION}/ \
|
|
ftp://ftp2.easysw.com/pub/fltk/${VERSION}/ \
|
|
ftp://ftp.northamerica.net/pub/ESP/fltk/${VERSION}/ \
|
|
ftp://ftp.funet.fi/mirrors/ftp.easysw.com/pub/fltk/${VERSION}/ \
|
|
ftp://ftp.kddlabs.co.jp/pub/lang/fltk/${VERSION}/
|
|
DISTNAME= ${PORTNAME}-${VERSION}-source
|
|
|
|
MAINTAINER= demon@FreeBSD.org
|
|
|
|
.if defined(WITH_XUNICODE)
|
|
PATCH_VERSION= 20000625
|
|
_PORTVERSION+= ${VERSION}.${PATCH_VERSION}
|
|
|
|
PKGNAMESUFFIX= -xunicode
|
|
|
|
PATCH_SITES= http://www.ab.wakwak.com/~tino/jatk/fltk/
|
|
PATCHFILES= ${PORTNAME}-${VERSION}${PKGNAMESUFFIX}-${PATCH_VERSION}.diff.gz
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
EXTRA_PATCHES= ${PATCHDIR}/xunicode.patch-*
|
|
|
|
BUILD_DEPENDS= ${X11BASE}/lib/libxunicode.a:${PORTSDIR}/converters/xunicode
|
|
.else
|
|
_PORTVERSION+= ${VERSION}
|
|
.endif
|
|
|
|
VERSION= 1.0.9
|
|
USE_BZIP2= yes
|
|
INSTALLS_SHLIB= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --enable-shared
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${VERSION}
|
|
USE_X_PREFIX= yes
|
|
USE_MESA= yes
|
|
MAN1= fluid.1
|
|
|
|
post-install:
|
|
@ ${INSTALL_MAN} ${WRKSRC}/documentation/fluid.1 \
|
|
${PREFIX}/man/man1
|
|
.if !defined(NOPORTDOCS)
|
|
@ ${MKDIR} ${PREFIX}/share/doc/fltk
|
|
for ext in html gif jpg ; do \
|
|
${INSTALL_DATA} ${WRKSRC}/documentation/*.$$ext \
|
|
${PREFIX}/share/doc/fltk; \
|
|
done
|
|
${INSTALL_DATA} ${WRKSRC}/documentation/README \
|
|
${PREFIX}/share/doc/fltk
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|