aboutsummaryrefslogtreecommitdiff
path: root/textproc/raptor2
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:55:53 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:55:53 +0000
commit4e9800127db7c6e3ff7df207bbc9de127b42ca27 (patch)
tree75a9c6bb155e63b0d662bc8d20ade3d5da6ed3ea /textproc/raptor2
parentdf198fc3406d239c43ef49842f1e05706eac9b30 (diff)
downloadports-4e9800127db7c6e3ff7df207bbc9de127b42ca27.tar.gz
ports-4e9800127db7c6e3ff7df207bbc9de127b42ca27.zip
Notes
Diffstat (limited to 'textproc/raptor2')
-rw-r--r--textproc/raptor2/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/textproc/raptor2/Makefile b/textproc/raptor2/Makefile
index 520456ea6c42..013aacbe1e66 100644
--- a/textproc/raptor2/Makefile
+++ b/textproc/raptor2/Makefile
@@ -16,8 +16,7 @@ MASTER_SITE_SUBDIR= librdf
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
- xml2.5:${PORTSDIR}/textproc/libxml2 \
+LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 \
xmlparse.1:${PORTSDIR}/www/libwww
LIBWWW_CONFIG= ${LOCALBASE}/bin/libwww-config
@@ -30,7 +29,12 @@ INSTALLS_SHLIB= yes
MAN1= rdfdump.1
MAN3= libraptor.3
-CPPFLAGS= -I${LOCALBASE}/include `${LIBWWW_CONFIG} --cflags`
-LDFLAGS= -L${LOCALBASE}/lib -lgnugetopt `${LIBWWW_CONFIG} --libs`
+CPPFLAGS+= -I${LOCALBASE}/include `${LIBWWW_CONFIG} --cflags`
+LDFLAGS+= -L${LOCALBASE}/lib `${LIBWWW_CONFIG} --libs`
+
+.if !exists(/usr/include/getopt.h)
+LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+LDFLAGS+= -lgnugetopt
+.endif
.include <bsd.port.mk>