aboutsummaryrefslogtreecommitdiffstats
path: root/www/snownews/Makefile
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2005-10-21 12:57:21 +0800
committerclsung <clsung@FreeBSD.org>2005-10-21 12:57:21 +0800
commit36550496fc9fd77ed4ba9c390362fbb24b178add (patch)
treee4a80a94609e7aced5b3ce643403b088c09c6a39 /www/snownews/Makefile
parent391486a5360f3f388ac186ca09dbf6a48b4c9b1e (diff)
downloadfreebsd-ports-gnome-36550496fc9fd77ed4ba9c390362fbb24b178add.tar.gz
freebsd-ports-gnome-36550496fc9fd77ed4ba9c390362fbb24b178add.tar.zst
freebsd-ports-gnome-36550496fc9fd77ed4ba9c390362fbb24b178add.zip
- port misses to install XML::LibXML perl module (when opml2snow installed)
- add OPTIONS for OPML PR: 86882 Submitted by: Parv <parv AT pair dot com>
Diffstat (limited to 'www/snownews/Makefile')
-rw-r--r--www/snownews/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/www/snownews/Makefile b/www/snownews/Makefile
index a574b1d46ffa..503af0191792 100644
--- a/www/snownews/Makefile
+++ b/www/snownews/Makefile
@@ -8,6 +8,7 @@
PORTNAME= snownews
PORTVERSION= 1.5.7
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://kiza.kcore.de/software/snownews/download/
@@ -20,6 +21,8 @@ USE_GNOME= libxml2
USE_REINPLACE= yes
HAS_CONFIGURE= yes
+OPTIONS= OPML "Outline Processor Markup Support" on
+
.if defined(CHARSET)
CONFIGURE_ARGS= --charset=${CHARSET}
.if ${CHARSET} == "UTF-8"
@@ -35,6 +38,16 @@ PLIST_SUB+= NLS=""
PLIST_SUB+= NLS="@comment "
.endif
+.if defined(WITHOUT_OPML)
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile
+PLIST_SUB+= OPML="@comment "
+.else
+RUN_DEPENDS= ${SITE_PERL}/XML/LibXML.pm:${PORTSDIR}/textproc/p5-XML-LibXML
+PLIST_SUB+= OPML=""
+# opml2snow only have "" manpage
+_MANPAGES+= ${PREFIX}/man/man1/opml2snow.1
+.endif
+
MAN1= snownews.1
MANLANG= "" de nl fr it ru_RU.KOI8-R
@@ -50,6 +63,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS+=|g' ${WRKSRC}/platform_settings
@${REINPLACE_CMD} -e 's|^PREFIX|#PREFIX|' ${WRKSRC}/platform_settings
@${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's|make|${GMAKE}|' ${WRKSRC}/Makefile
.if defined(WITHOUT_NLS)
${REINPLACE_CMD} -e 's/ install-locales / /g' ${WRKSRC}/Makefile
${REINPLACE_CMD} -e 's/ locales$$//g' ${WRKSRC}/Makefile