aboutsummaryrefslogtreecommitdiff
path: root/textproc
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
parentdf198fc3406d239c43ef49842f1e05706eac9b30 (diff)
downloadports-4e9800127db7c6e3ff7df207bbc9de127b42ca27.tar.gz
ports-4e9800127db7c6e3ff7df207bbc9de127b42ca27.zip
Notes
Diffstat (limited to 'textproc')
-rw-r--r--textproc/raptor/Makefile12
-rw-r--r--textproc/raptor2/Makefile12
2 files changed, 16 insertions, 8 deletions
diff --git a/textproc/raptor/Makefile b/textproc/raptor/Makefile
index 520456ea6c42..013aacbe1e66 100644
--- a/textproc/raptor/Makefile
+++ b/textproc/raptor/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>
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>