blob: dec53bdaa3d6214546dc19b12d9f5d26dc865035 (
plain)
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= ${VERSION}
PORTREVISION= 3
CATEGORIES= x11-toolkits
MASTER_SITES= ${MASTER_SITE_EASYSW}
MASTER_SITE_SUBDIR= fltk/${VERSION}
.ifdef WITH_THREADS
PKGNAMESUFFIX= -threads
.endif
DISTNAME= ${PORTNAME}-${VERSION}-source
MAINTAINER?= demon@FreeBSD.org
COMMENT?= C++ graphical user interface for X
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg \
Xft.2:${PORTSDIR}/x11-fonts/libXft
.if defined(WITH_THREADS)
CONFIGURE_ARGS+=--enable-threads
CPPFLAGS+= "${PTHREAD_CFLAGS}"
LDFLAGS+= "${PTHREAD_LIBS}"
CONFLICTS= fltk-1*
.else
CONFLICTS= fltk-threads-1*
.endif
VERSION= 1.1.7
USE_BZIP2= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+=--enable-shared --enable-xft
# configure ignores ${CXX} and keeps on linking C++ code with ${CC}
CONFIGURE_ENV+= CC="${CXX}" CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
WRKSRC= ${WRKDIR}/${PORTNAME}-${VERSION}
USE_X_PREFIX= yes
USE_GL= yes
MAN1= fluid.1 fltk-config.1
MAN3= fltk.3
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000 && defined(WITH_THREADS)
IGNORE= does not work on FreeBSD 4.x, because threading is not activated
.endif
pre-everything::
.if !defined(WITH_THREADS) && ${OSVERSION} > 500000
@${ECHO_MSG} "===> You can enable threads support by defining WITH_THREADS"
@${ECHO_MSG} "===>"
.endif
pre-configure:
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e 's|%%DOCS%%|#|' ${WRKSRC}/documentation/Makefile
.else
@${REINPLACE_CMD} -e 's|%%DOCS%%||' ${WRKSRC}/documentation/Makefile
.endif
.include <bsd.port.post.mk>
|