svn commit: r332293 - head/archivers/sharutils
Renato Botelho
garga at FreeBSD.org
Thu Oct 31 23:28:19 UTC 2013
Author: garga
Date: Thu Oct 31 23:28:18 2013
New Revision: 332293
URL: http://svnweb.freebsd.org/changeset/ports/332293
Log:
. Use modern OPTION knobs to simplify Makefile
Modified:
head/archivers/sharutils/Makefile
Modified: head/archivers/sharutils/Makefile
==============================================================================
--- head/archivers/sharutils/Makefile Thu Oct 31 23:27:20 2013 (r332292)
+++ head/archivers/sharutils/Makefile Thu Oct 31 23:28:18 2013 (r332293)
@@ -21,16 +21,10 @@ INSTALL_TARGET= install install-man
INFO= sharutils
USES= charsetfix perl5
-.include <bsd.port.pre.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-PLIST_SUB+= NLS=""
-USES+= gettext
-CONFIGURE_ARGS+=--with-libintl-prefix="${LOCALBASE}"
-.else
-PLIST_SUB+= NLS="@comment "
-CONFIGURE_ARGS+=--disable-nls
-.endif
+OPTIONS_SUB= NLS
+NLS_USES= gettext
+NLS_CONFIGURE_ON= --with-libintl-prefix="${LOCALBASE}"
+NLS_CONFIGURE_OFF= --disable-nls
post-patch:
.for man in shar.1 unshar.1
@@ -52,4 +46,4 @@ post-patch:
${WRKSRC}/doc/${man}
.endfor
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
More information about the svn-ports-head
mailing list