summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjohans <johans@FreeBSD.org>2013-12-29 16:00:25 +0000
committerjohans <johans@FreeBSD.org>2013-12-29 16:00:25 +0000
commitf1e1cc26c59941eac377da41b257bc3c905c72a7 (patch)
tree0da994d9800edf6a732f605ffef8dbeebc2a3848
parentc83d7c08f6b90e642e37ca19f881ff3e7627a50c (diff)
downloadFreeBSD-ports-f1e1cc26c59941eac377da41b257bc3c905c72a7.zip
FreeBSD-ports-f1e1cc26c59941eac377da41b257bc3c905c72a7.tar.gz
- Enable STAGE support
- Simplify options handling
-rw-r--r--lang/gawk/Makefile34
-rw-r--r--lang/gawk/pkg-plist12
2 files changed, 21 insertions, 25 deletions
diff --git a/lang/gawk/Makefile b/lang/gawk/Makefile
index fe5ed6d..bf20166 100644
--- a/lang/gawk/Makefile
+++ b/lang/gawk/Makefile
@@ -9,10 +9,15 @@ MASTER_SITES= GNU
MAINTAINER= johans@FreeBSD.org
COMMENT= The GNU version of Awk
-LIB_DEPENDS= sigsegv:${PORTSDIR}/devel/libsigsegv
+LIB_DEPENDS= libsigsegv.so:${PORTSDIR}/devel/libsigsegv
-OPTIONS_DEFINE= MPFR
-MPFR_DESC?= Support multiple-precision floating-point computation
+OPTIONS_DEFINE= NLS MPFR
+OPTIONS_SUB= yes
+NLS_USES= gettext
+NLS_CONFIGURE_OFF= --disable-nls
+MPFR_DESC?= Support multiple-precision floating-point computation
+MPFR_LIB_DEPENDS= libmpfr.so:${PORTSDIR}/math/mpfr
+MPFR_CONFIGURE_OFF= --without-gmp --without-mpfr
INFO= gawk gawkinet
@@ -23,28 +28,7 @@ CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG} \
--with-libintl-prefix=${LOCALBASE} \
AWK=${AWK}
-MAN1= gawk.1 igawk.1
-MAN3= filefuncs.3am fnmatch.3am fork.3am ordchr.3am readdir.3am \
- readfile.3am revoutput.3am revtwoway.3am rwarray.3am time.3am
-
-PLIST_SUB= VERSION=${PORTVERSION}
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MMPFR}
-LIB_DEPENDS= mpfr:${PORTSDIR}/math/mpfr
-.else
-CONFIGURE_ARGS+=--without-gmp --without-mpfr
-.endif
+PLIST_SUB+= VERSION=${PORTVERSION}
post-patch:
@${RM} -f ${WRKSRC}/doc/*.info
diff --git a/lang/gawk/pkg-plist b/lang/gawk/pkg-plist
index 6d74c4a..a5cdba9 100644
--- a/lang/gawk/pkg-plist
+++ b/lang/gawk/pkg-plist
@@ -28,6 +28,18 @@ lib/gawk/time.so
lib/gawk/time.la
libexec/awk/grcat
libexec/awk/pwcat
+man/man1/gawk.1.gz
+man/man1/igawk.1.gz
+man/man3/filefuncs.3am.gz
+man/man3/fnmatch.3am.gz
+man/man3/fork.3am.gz
+man/man3/ordchr.3am.gz
+man/man3/readdir.3am.gz
+man/man3/readfile.3am.gz
+man/man3/revoutput.3am.gz
+man/man3/revtwoway.3am.gz
+man/man3/rwarray.3am.gz
+man/man3/time.3am.gz
share/awk/assert.awk
share/awk/bits2str.awk
share/awk/cliff_rand.awk
OpenPOWER on IntegriCloud