summaryrefslogtreecommitdiff
path: root/graphics
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 /graphics
parentAdd a missing file to pkg-plist (diff)
Conditionalize gnugetopt dependencies and fix minor typo.
PR: ports/47330 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=74481
Diffstat (limited to 'graphics')
-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: