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
|
2008-06-06 14:17:21 +00:00
|
|
|
PORTREVISION= 4
|
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
|
|
|
|
2008-02-21 21:20:01 +00:00
|
|
|
MAINTAINER= gahr@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
|
|
|
|
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
|
2003-02-08 15:09:40 +00:00
|
|
|
USE_GMAKE= yes
|
2003-05-17 01:56:02 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2007-12-22 15:24:41 +00:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2005-04-12 03:26:56 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
CONFIGURE_ENV= MOC="${MOC}" CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" GLDIR="${LOCALBASE}"
|
2003-05-17 01:56:02 +00:00
|
|
|
CONFIGURE_ARGS= --with-qt-includes=${QT_PREFIX}/include \
|
|
|
|
--with-qt-libraries=${QT_PREFIX}/lib \
|
|
|
|
--with-extra-libs=${LOCALBASE}/lib
|
2006-02-22 10:28:47 +00:00
|
|
|
# libOSMesa, installed by the xorg-libraries-6.9.0 port is causing
|
|
|
|
# /usr/X11R6/lib/libOSMesa.so: undefined reference to `driDispatchRemapTable'
|
|
|
|
# during the configure step which results in tlprender not being build.
|
|
|
|
# So we remove it from pkg-plist and disable it here to make sure it does not
|
|
|
|
# get build somehow, causing plist problems
|
|
|
|
CONFIGURE_ARGS+= --disable-tlprender
|
2006-08-14 23:06:39 +00:00
|
|
|
USE_LDCONFIG= yes
|
2003-02-08 15:09:40 +00:00
|
|
|
|
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}
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
LDFLAGS= -Wl,-export-dynamic -L${LOCALBASE}/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
|
2008-01-30 18:45:15 +00:00
|
|
|
|
|
|
|
.if ${OSVERSION} >= 700042
|
|
|
|
BROKEN= tries to link libcompat.a
|
|
|
|
.endif
|
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
|
|
|
|
2007-12-22 15:24:41 +00:00
|
|
|
pre-configure:
|
|
|
|
@if [ -z "`pkg-config --variable qt_config qt-mt | ${GREP} opengl`" ]; then \
|
|
|
|
echo "Please reinstall x11-toolkits/qt33 with OpenGL supportsd"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
|
2003-05-17 01:56:02 +00:00
|
|
|
post-patch:
|
2007-12-22 15:24:41 +00:00
|
|
|
@${REINPLACE_CMD} -e 's| -O2 -pipe||g; \
|
|
|
|
s|echo aout|echo elf|g' ${WRKSRC}/configure ${WRKSRC}/thirdparty/gle/configure
|
2003-05-17 01:56:02 +00:00
|
|
|
@${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>
|