aboutsummaryrefslogtreecommitdiffstats
path: root/www/snownews
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2013-03-06 01:07:43 +0800
committermiwi <miwi@FreeBSD.org>2013-03-06 01:07:43 +0800
commitb5e88d7789bddf1e308d47c8c5b81b8d3f0c31d7 (patch)
tree268d74f9d8738f78b0c895672044611aa6343387 /www/snownews
parent4c148339a17778393b116c6e7051a9bc484e786a (diff)
downloadfreebsd-ports-gnome-b5e88d7789bddf1e308d47c8c5b81b8d3f0c31d7.tar.gz
freebsd-ports-gnome-b5e88d7789bddf1e308d47c8c5b81b8d3f0c31d7.tar.zst
freebsd-ports-gnome-b5e88d7789bddf1e308d47c8c5b81b8d3f0c31d7.zip
- Convert to OptionsNG
- Trim header Reviewed by: beat, bapt, kwm
Diffstat (limited to 'www/snownews')
-rw-r--r--www/snownews/Makefile17
1 files changed, 7 insertions, 10 deletions
diff --git a/www/snownews/Makefile b/www/snownews/Makefile
index 0418318c153a..c14463acb802 100644
--- a/www/snownews/Makefile
+++ b/www/snownews/Makefile
@@ -1,10 +1,5 @@
-# ex:ts=8
-# New ports collection makefile for: snownews
-# Date created: Nov 3 2003
-# Whom: Cheng-Lung Sung <clsung@dragon2.net>
-#
+# Created by: Cheng-Lung Sung <clsung@dragon2.net>
# $FreeBSD$
-#
PORTNAME= snownews
PORTVERSION= 1.5.12
@@ -20,16 +15,18 @@ USE_GMAKE= yes
USE_GNOME= libxml2
HAS_CONFIGURE= yes
-OPTIONS= OPML "Outline Processor Markup Support" on
+OPTIONS_DEFINE= OPML NLS
+OPTIONS_DEFAULT= OPML
+OPML_DESC= Outline Processor Markup Support
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
-.if defined(WITHOUT_OPML)
+.if ! ${PORT_OPTIONS:MOPML}
EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile
PLIST_SUB+= OPML="@comment "
.else
@@ -48,7 +45,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|make|${GMAKE}|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|share/man|man|' ${WRKSRC}/Makefile
-.if defined(WITHOUT_NLS)
+.if ! ${PORT_OPTIONS:MNLS}
${REINPLACE_CMD} -e 's/ install-locales / /g' ${WRKSRC}/Makefile
${REINPLACE_CMD} -e 's/ locales$$//g' ${WRKSRC}/Makefile
.endif