summaryrefslogtreecommitdiff
path: root/astro
diff options
context:
space:
mode:
authorTrevor Johnson <trevor@FreeBSD.org>2002-05-22 22:04:32 +0000
committerTrevor Johnson <trevor@FreeBSD.org>2002-05-22 22:04:32 +0000
commit2a32ac274a696630acaa5bec461af285afc7a39b (patch)
treee5b70679f5450d111bf97f8fe70b7d8c0c66ea00 /astro
parentThis must be patched when GTK+ is enabled. (diff)
Use bash to run the configure script, since it contains bashisms.
Support pthreads. Submitted by: Geoffrey Lassner Make GTK+ optional.
Notes
Notes: svn path=/head/; revision=59733
Diffstat (limited to 'astro')
-rw-r--r--astro/celestia/Makefile21
1 files changed, 15 insertions, 6 deletions
diff --git a/astro/celestia/Makefile b/astro/celestia/Makefile
index 38cc6a79ba32..a651c9816261 100644
--- a/astro/celestia/Makefile
+++ b/astro/celestia/Makefile
@@ -13,27 +13,28 @@ MASTER_SITE_SUBDIR= celestia
MAINTAINER= trevor@FreeBSD.org
+BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash2
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png \
gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea
GNU_CONFIGURE= yes
PLIST= ${WRKDIR}/pkg-plist
-USE_GTK= yes
USE_GMAKE= yes
USE_MESA= yes
USE_X_PREFIX= yes
+WANT_GTK= yes
CONFIGURE_ARGS= --prefix=${PREFIX} \
--includedir="${LOCALBASE}/include" \
--libdir="${LOCALBASE}/lib"
-
-CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${X11BASE}/include/GL -I${LOCALBASE}/include" \
- LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -lm"
+CONFIGURE_ENV= \
+LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -lm ${PTHREAD_LIBS}"
+CPPFLAGS="-I${X11BASE}/include -I${X11BASE}/include/GL -I${LOCALBASE}/include ${PTHREAD_CFLAGS}"
pre-patch:
${PERL} -pi -e \
-"s:-O2::g; s:-Wall::g; s:-ffast-math::g; s:-fexpensive-optimizations::g" \
+"s:-O2::g; s:-Wall::g; s:-ffast-math::g; s:-fexpensive-optimizations::g; s:\!\ /bin/sh:\!\ ${LOCALBASE}/bin/bash:g" \
${WRKSRC}/configure
pre-install:
@@ -96,4 +97,12 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/textures/medres/*.??? \
${DATADIR}/textures/medres/
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if defined(HAVE_GTK)
+USE_GTK= yes
+.else
+CONFIGURE_ARGS+=--without-gtk
+.endif
+
+.include <bsd.port.post.mk>