aboutsummaryrefslogtreecommitdiff
path: root/devel/libparserutils/Makefile
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2013-05-29 04:46:28 +0000
committerJason Helfman <jgh@FreeBSD.org>2013-05-29 04:46:28 +0000
commit0129a04b176ca65bf3ac81ec08135e3743ff36cd (patch)
treec41990d4d5346247ec9d02aca23475ebb296dcf9 /devel/libparserutils/Makefile
parent88109113b60dbc0ddfec4b42555234cb9fc2d9d0 (diff)
Notes
Diffstat (limited to 'devel/libparserutils/Makefile')
-rw-r--r--devel/libparserutils/Makefile26
1 files changed, 10 insertions, 16 deletions
diff --git a/devel/libparserutils/Makefile b/devel/libparserutils/Makefile
index 2e3fccc55980..d203739167c5 100644
--- a/devel/libparserutils/Makefile
+++ b/devel/libparserutils/Makefile
@@ -1,9 +1,5 @@
-# ports collection makefile for: libparserutils
-# Date created: 20 August 2011
-# Whom: David Romano <unobe@cpan.org>
-#
+# Created by: David Romano <unobe@cpan.org>
# $FreeBSD$
-#
PORTNAME= libparserutils
PORTVERSION= 0.1.1
@@ -13,7 +9,7 @@ MASTER_SITES= http://www.netsurf-browser.org/projects/releases/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= unobe@cpan.org
-COMMENT= A library useful when writing parsers (formerly a part of NetSurf)
+COMMENT= Library useful when writing parsers (formerly a part of NetSurf)
USE_GMAKE= yes
@@ -22,34 +18,32 @@ LDFLAGS+= -L${LOCALBASE}/lib
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-OPTIONS= ICONV "Adds iconv support" On \
- STATIC "Build statically linked library" On \
- TEST "Enable tests" On \
- DOXYGEN "Build Doxygen Documentation" On
+OPTIONS_DEFINE= ICONV STATIC TEST DOXYGEN
+OPTIONS_DEFAULT= ICONV STATIC TEST DOXYGEN
.include <bsd.port.options.mk>
-.if defined(WITH_ICONV)
+.if ${PORT_OPTIONS:MICONV}
CFLAGS+= -DWITH_ICONV_FILTER
LDFLAGS+= -liconv
.endif
-.if !defined(WITH_STATIC)
+.if ${PORT_OPTIONS:MSTATIC}
+PLIST_SUB+= NO_STATIC="@comment " STATIC=""
+.else
USE_PERL5_BUILD=yes
USE_LDCONFIG= yes
COMPONENT_TYPE= lib-shared
MAKE_ENV+= COMPONENT_TYPE=${COMPONENT_TYPE}
PLIST_SUB+= NO_STATIC="" STATIC="@comment "
-.else
-PLIST_SUB+= NO_STATIC="@comment " STATIC=""
.endif
-.if defined(WITH_TEST)
+.if ${PORT_OPTIONS:MTEST}
USE_PERL5_BUILD=yes
ALL_TARGET+= test
.endif
-.if defined(WITH_DOXYGEN)
+.if ${PORT_OPTIONS:MDOXYGEN}
DOXYGEN_PORTDIR=${PORTSDIR}/devel/doxygen
BUILD_DEPENDS+= doxygen:${DOXYGEN_PORTDIR}:build
PATH:=${PATH}:`cd ${DOXYGEN_PORTDIR}; make -V WRKSRC`/bin