aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 13:20:54 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 13:20:54 +0000
commitef96d22de99677a2238c91c8303956fcfbfa965a (patch)
tree0ac1c85757b272beb49c621f12e2aed1ca8fed8e
parent8630ac100e58a5816aa60b3f015bb692cc31b2f8 (diff)
downloadports-ef96d22de99677a2238c91c8303956fcfbfa965a.tar.gz
ports-ef96d22de99677a2238c91c8303956fcfbfa965a.zip
Notes
-rw-r--r--graphics/qslim/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/graphics/qslim/Makefile b/graphics/qslim/Makefile
index 067e60e94fcd..a223e81f8aeb 100644
--- a/graphics/qslim/Makefile
+++ b/graphics/qslim/Makefile
@@ -13,8 +13,7 @@ MASTER_SITES= http://graphics.cs.uiuc.edu/~garland/dist/
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
- png.5:${PORTSDIR}/graphics/png \
+LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff \
forms.1:${PORTSDIR}/x11-toolkits/xforms
@@ -28,10 +27,9 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
ALL_TARGET= # none
-CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include \
+CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include \
-I${X11BASE}/include/X11 ${PTHREAD_CFLAGS}
-LDFLAGS= -L${LOCALBASE}/lib -lgnugetopt -L${X11BASE}/lib \
- ${PTHREAD_LIBS}
+LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}
.include <bsd.port.pre.mk>
@@ -39,7 +37,12 @@ LDFLAGS= -L${LOCALBASE}/lib -lgnugetopt -L${X11BASE}/lib \
CFLAGS+= -DMIX_ANSI_IOSTREAMS -fpermissive
.endif
-post-extact:
+.if !exists(/usr/include/getopt.h)
+LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+LDFLAGS+= -lgnugetopt
+.endif
+
+post-extract:
@${RM} -f ${WRKSRC}/mixkit/src/getopt.h
post-patch: