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
|
2003-02-08 15:09:40 +00:00
|
|
|
CATEGORIES= graphics
|
2003-07-01 06:14:29 +00:00
|
|
|
MASTER_SITES= http://dept-info.labri.fr/~auber/projects/tulip/x345/%SUBDIR%/
|
|
|
|
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
|
|
|
|
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
|
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
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
|
|
|
|
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
|
|
|
|
|
|
|
.include <bsd.port.mk>
|