summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-01-25 20:30:21 +0000
committerbapt <bapt@FreeBSD.org>2014-01-25 20:30:21 +0000
commitbd2aab89e02a310ebedd91acc94a445057ac8008 (patch)
treee7f19cb79134318a1abdd1fb6575db9e1cbaac68
parente0421aa9cf2929728ad5c6239d4da04b8327487b (diff)
downloadFreeBSD-ports-bd2aab89e02a310ebedd91acc94a445057ac8008.zip
FreeBSD-ports-bd2aab89e02a310ebedd91acc94a445057ac8008.tar.gz
Support stage
USE_GMAKE -> USES=gmake Use options helpers
-rw-r--r--ftp/axel/Makefile27
-rw-r--r--ftp/axel/pkg-plist2
2 files changed, 9 insertions, 20 deletions
diff --git a/ftp/axel/Makefile b/ftp/axel/Makefile
index 330418b..22eed1c 100644
--- a/ftp/axel/Makefile
+++ b/ftp/axel/Makefile
@@ -10,32 +10,19 @@ MASTER_SITES= https://alioth.debian.org/frs/download.php/3015/ \
http://cvs.fedoraproject.org/repo/pkgs/axel/axel-2.4.tar.gz/a2a762fce0c96781965c8f9786a3d09d/
MAINTAINER= prudhvi-krishna-bsd@surapaneni.in
-COMMENT= A download accelerator
+COMMENT= Download accelerator
-USE_GMAKE= yes
+USES= gmake
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} --mandir=${MANPREFIX}/man
OPTIONS_DEFINE= NLS DEBUG
+OPTIONS_SUB= yes
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext iconv
-PLIST_SUB+= NLS=""
-CONFIGURE_ARGS+=--i18n=1
-.else
-PLIST_SUB+= NLS="@comment "
-CONFIGURE_ARGS+=--i18n=0
-.endif
-
-.if ${PORT_OPTIONS:MDEBUG}
-CONFIGURE_ARGS+=--debug=1 --strip=0
-.endif
-
-MAN1= axel.1
-MANLANG= "" zh_CN
+NLS_USES= gettext iconv
+NLS_CONFIGURE_ON= --i18n=1
+NLS_CONFIGURE_OFF= --i18n=0
+DEBUG_CONFIGURE_ON=--debug=1 --strip=0
post-configure:
@${REINPLACE_CMD} -e 's|gcc|${CC}|; \
diff --git a/ftp/axel/pkg-plist b/ftp/axel/pkg-plist
index f676ba1..87d7e15 100644
--- a/ftp/axel/pkg-plist
+++ b/ftp/axel/pkg-plist
@@ -1,5 +1,7 @@
bin/axel
etc/axelrc
+man/man1/axel.1.gz
+man/zh_CN/man1/axel.1.gz
%%NLS%%share/locale/de/LC_MESSAGES/axel.mo
%%NLS%%share/locale/nl/LC_MESSAGES/axel.mo
%%NLS%%share/locale/ru/LC_MESSAGES/axel.mo
OpenPOWER on IntegriCloud