blob: acdbd2e66e4baf71b3d421d3a1c0d701fcae1db0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# New ports collection makefile for: fltk
# Date created: 11 February 1999
# Whom: Dima Sivachenko <dima@Chg.RU>
#
# $FreeBSD$
#
PORTNAME= fltk
PORTVERSION?= ${_PORTVERSION}
PORTREVISION= 1
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= 20010114
_PORTVERSION+= ${VERSION}.${PATCH_VERSION}
PORTREVISION= 2
PKGNAMESUFFIX= -xunicode
PATCH_SITES= http://www.ab.wakwak.com/~tino/jatk/fltk/
PATCHFILES= ${PORTNAME}-${VERSION}${PKGNAMESUFFIX}-${PATCH_VERSION}.diff
PATCH_DIST_STRIP= -p1
BUILD_DEPENDS= ${X11BASE}/include/xunicode/xunicode.h:${PORTSDIR}/converters/xunicode
CONFIGURE_ENV= CXXFLAGS=-DUSE_XUNICODE
.else
_PORTVERSION+= ${VERSION}
.endif
VERSION= 1.0.10
USE_BZIP2= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-shared
CONFIGURE_ENV+= CPPFLAGS="${PTHREAD_CFLAGS}" \
LDFLAGS="${PTHREAD_LIBS}"
WRKSRC= ${WRKDIR}/${PORTNAME}-${VERSION}
USE_X_PREFIX= yes
USE_MESA= yes
MAN1= fluid.1
.if defined(WITH_XUNICODE)
post-extract:
cd ${WRKSRC} && ${LN} -s ${X11BASE}/include/xunicode
.endif
post-install:
@ ${INSTALL_MAN} ${WRKSRC}/documentation/fluid.1 \
${PREFIX}/man/man1
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${DICSDIR}
for ext in html gif jpg ; do \
${INSTALL_DATA} ${WRKSRC}/documentation/*.$$ext \
${DOCSDIR}; \
done
${INSTALL_DATA} ${WRKSRC}/documentation/README \
${DOCSDIR}
.endif
.include <bsd.port.mk>
|