2003-02-08 15:09:40 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: tulip
|
|
|
|
# Date created: Feb 8, 2003
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tulip
|
2003-09-04 16:59:17 +00:00
|
|
|
PORTVERSION= 1.2.5
|
2006-01-12 12:54:32 +00:00
|
|
|
PORTREVISION= 2
|
2003-02-08 15:09:40 +00:00
|
|
|
CATEGORIES= graphics
|
2005-12-29 13:36:38 +00:00
|
|
|
MASTER_SITES= http://dept-info.labri.fr/~auber/projects/tulip/download/%SUBDIR%/
|
2003-07-01 06:14:29 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}-${PORTVERSION}
|
2003-02-08 15:09:40 +00:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:08:19 +00:00
|
|
|
COMMENT= A system dedicated to the visualization of huge graphs
|
2003-02-08 15:09:40 +00:00
|
|
|
|
2006-01-12 12:54:32 +00:00
|
|
|
LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut
|
2004-01-25 08:43:32 +00:00
|
|
|
|
2006-02-12 22:19:10 +00:00
|
|
|
BROKEN= Incorrect pkg-plist (does not compile completely?)
|
|
|
|
|
2003-07-01 06:14:29 +00:00
|
|
|
USE_BZIP2= yes
|
2003-02-08 15:09:40 +00:00
|
|
|
USE_QT_VER= 3
|
2003-05-17 01:56:02 +00:00
|
|
|
QT_NONSTANDARD= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
USE_GETOPT_LONG= yes
|
2003-02-08 15:09:40 +00:00
|
|
|
USE_GMAKE= yes
|
2003-05-17 01:56:02 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 03:26:56 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2003-05-17 01:56:02 +00:00
|
|
|
CONFIGURE_ENV= MOC="${MOC}" CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
CONFIGURE_ARGS= --with-qt-includes=${QT_PREFIX}/include \
|
|
|
|
--with-qt-libraries=${QT_PREFIX}/lib \
|
|
|
|
--with-extra-libs=${LOCALBASE}/lib
|
2003-02-08 15:09:40 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2003-05-17 01:56:02 +00:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include -I${PREFIX}/include \
|
2003-07-01 06:14:29 +00:00
|
|
|
-I${QT_PREFIX}/include -DHAVE_DECL_GETOPT ${PTHREAD_CFLAGS}
|
2003-05-17 01:56:02 +00:00
|
|
|
LDFLAGS= -Wl,-export-dynamic -L${LOCALBASE}/lib -L${X11BASE}/lib \
|
2003-07-01 06:14:29 +00:00
|
|
|
-ljpeg -L${QT_PREFIX}/lib -lcompat ${PTHREAD_LIBS}
|
2003-02-08 15:09:40 +00:00
|
|
|
|
2004-03-18 12:53:31 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
2005-03-14 10:09:23 +00:00
|
|
|
CFLAGS+= -fPIC
|
2004-03-18 12:53:31 +00:00
|
|
|
.endif
|
|
|
|
|
2003-05-17 01:56:02 +00:00
|
|
|
post-extract:
|
|
|
|
@${FIND} ${WRKSRC} -name "moc_*" -delete
|
2003-02-08 15:09:40 +00:00
|
|
|
|
2003-05-17 01:56:02 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's| -O2 -pipe||g' ${WRKSRC}/configure
|
|
|
|
@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|malloc\.h|stdlib.h|g'
|
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|-ldl||g ; \
|
2003-07-01 06:14:29 +00:00
|
|
|
s|-lpthread||g ; \
|
2003-09-04 16:59:17 +00:00
|
|
|
s|-release @TULIP_VERSION@|| ; \
|
2003-07-01 06:14:29 +00:00
|
|
|
s|LDFLAGS = -module|LDFLAGS = @LDFLAGS@ -module|g'
|
2003-02-08 15:09:40 +00:00
|
|
|
|
2004-03-18 12:53:31 +00:00
|
|
|
.include <bsd.port.post.mk>
|