1999-03-08 00:52:56 +01:00
|
|
|
# New ports collection makefile for: fltk
|
|
|
|
# Date created: 11 February 1999
|
|
|
|
# Whom: Dima Sivachenko <dima@Chg.RU>
|
|
|
|
#
|
1999-08-31 05:04:38 +02:00
|
|
|
# $FreeBSD$
|
1999-03-08 00:52:56 +01:00
|
|
|
#
|
|
|
|
|
2000-04-10 03:11:24 +02:00
|
|
|
PORTNAME= fltk
|
2004-06-22 06:45:25 +02:00
|
|
|
PORTVERSION= ${VERSION}
|
2005-02-07 22:16:05 +01:00
|
|
|
PORTREVISION= 1
|
1999-04-09 21:26:49 +02:00
|
|
|
CATEGORIES= x11-toolkits
|
2005-01-31 22:09:48 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2005-02-07 22:16:05 +01:00
|
|
|
.ifdef WITH_THREADS
|
|
|
|
PKGNAMESUFFIX= -threads
|
|
|
|
.endif
|
2000-08-25 20:24:49 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${VERSION}-source
|
1999-03-08 00:52:56 +01:00
|
|
|
|
2001-02-23 19:49:07 +01:00
|
|
|
MAINTAINER?= demon@FreeBSD.org
|
2003-02-18 07:01:09 +01:00
|
|
|
COMMENT?= C++ graphical user interface for X
|
1999-03-08 00:52:56 +01:00
|
|
|
|
2003-01-05 17:07:11 +01:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
2004-03-25 09:06:19 +01:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
Xft.2:${PORTSDIR}/x11-fonts/libXft
|
2003-01-05 17:07:11 +01:00
|
|
|
|
2003-09-05 15:40:43 +02:00
|
|
|
.if defined(WITH_THREADS)
|
|
|
|
CONFIGURE_ARGS+=--enable-threads
|
2004-03-25 09:06:19 +01:00
|
|
|
CPPFLAGS+= "${PTHREAD_CFLAGS}"
|
|
|
|
LDFLAGS+= "${PTHREAD_LIBS}"
|
2005-02-07 22:16:05 +01:00
|
|
|
CONFLICTS= fltk-1*
|
|
|
|
.else
|
|
|
|
CONFLICTS= fltk-threads-1*
|
2003-09-05 15:40:43 +02:00
|
|
|
.endif
|
|
|
|
|
2005-01-31 22:09:48 +01:00
|
|
|
VERSION= 1.1.6
|
1999-04-16 08:15:10 +02:00
|
|
|
USE_BZIP2= yes
|
2000-06-16 23:52:40 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
1999-03-08 00:52:56 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2004-03-25 09:06:19 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-shared --enable-xft
|
2004-08-21 18:28:20 +02:00
|
|
|
# configure ignores ${CXX} and keeps on linking C++ code with ${CC}
|
|
|
|
CONFIGURE_ENV+= CC="${CXX}" CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
|
2004-03-25 09:06:19 +01:00
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
2000-08-25 20:24:49 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${VERSION}
|
1999-03-08 00:52:56 +01:00
|
|
|
USE_X_PREFIX= yes
|
2005-01-31 22:09:48 +01:00
|
|
|
USE_GL= yes
|
|
|
|
USE_REINPLACE= yes
|
2003-01-05 17:07:11 +01:00
|
|
|
|
|
|
|
MAN1= fluid.1 fltk-config.1
|
|
|
|
MAN3= fltk.3
|
1999-03-08 00:52:56 +01:00
|
|
|
|
2005-02-07 22:16:05 +01:00
|
|
|
.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
|
|
|
|
|
2003-09-05 15:40:43 +02:00
|
|
|
pre-everything::
|
2005-02-07 22:16:05 +01:00
|
|
|
.if !defined(WITH_THREADS) && ${OSVERSION} > 500000
|
2003-09-05 15:40:43 +02:00
|
|
|
@${ECHO_MSG} "===> You can enable threads support by defining WITH_THREADS"
|
|
|
|
@${ECHO_MSG} "===>"
|
2005-02-07 22:16:05 +01:00
|
|
|
.endif
|
2003-09-05 15:40:43 +02:00
|
|
|
|
2005-01-31 22:09:48 +01:00
|
|
|
pre-configure:
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
@${REINPLACE_CMD} -e 's|%%DOCS%%|#|' ${WRKSRC}/documentation/Makefile
|
|
|
|
.else
|
|
|
|
@${REINPLACE_CMD} -e 's|%%DOCS%%||' ${WRKSRC}/documentation/Makefile
|
|
|
|
.endif
|
|
|
|
|
2005-02-07 22:16:05 +01:00
|
|
|
.include <bsd.port.post.mk>
|