aboutsummaryrefslogtreecommitdiff
path: root/graphics/gliv
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 13:35:12 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 13:35:12 +0000
commit3708567e96ea7b6c8d4a3ea231902154be16b4a5 (patch)
tree4403df675477a3495c4b685ca2071a6e2bd8e41f /graphics/gliv
parentab64f335b21e262cd4228c3b854e9bf3c1844914 (diff)
downloadports-3708567e96ea7b6c8d4a3ea231902154be16b4a5.tar.gz
ports-3708567e96ea7b6c8d4a3ea231902154be16b4a5.zip
Notes
Diffstat (limited to 'graphics/gliv')
-rw-r--r--graphics/gliv/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/graphics/gliv/Makefile b/graphics/gliv/Makefile
index eb608648f411..f9d961829321 100644
--- a/graphics/gliv/Makefile
+++ b/graphics/gliv/Makefile
@@ -12,8 +12,7 @@ MASTER_SITES= http://gliv.tuxfamily.org/
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
- gtkgl-2.0.1:${PORTSDIR}/x11-toolkits/gtkglarea2
+LIB_DEPENDS= gtkgl-2.0.1:${PORTSDIR}/x11-toolkits/gtkglarea2
RUN_DEPENDS= ${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick
USE_BZIP2= yes
@@ -25,9 +24,13 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= gliv.1
-CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}
-LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib -lXext -lX11 -lgnugetopt \
- ${PTHREAD_LIBS}
+CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}
+LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib -lXext -lX11 ${PTHREAD_LIBS}
+
+.if !exists(/usr/include/getopt.h)
+LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+LDFLAGS+= -lgnugetopt
+.endif
post-patch:
@${REINPLACE_CMD} -e 's|LDFLAGS="[\$$]CFLAGS|LDFLAGS="\$$LDFLAGS|g ; \