diff options
author | leeym <leeym@FreeBSD.org> | 2005-05-27 02:25:18 +0000 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2005-05-27 02:25:18 +0000 |
commit | 8017f6fc760312103abd4b45b2f208db3e6f58b1 (patch) | |
tree | 4a503e36e17c190232ab884dc2e2bfc491f3dd33 /www/snownews/Makefile | |
parent | 2d1b06a0bee0d6fc57f973ddfea5283b5d380db1 (diff) | |
download | FreeBSD-ports-8017f6fc760312103abd4b45b2f208db3e6f58b1.zip FreeBSD-ports-8017f6fc760312103abd4b45b2f208db3e6f58b1.tar.gz |
- relocate all REINPLACE stuff to post-patch target
- respect WITHOUT_NLS
PR: 79906
Submitted by: leeym
Approved by: maintainer-timeout
Diffstat (limited to 'www/snownews/Makefile')
-rw-r--r-- | www/snownews/Makefile | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/www/snownews/Makefile b/www/snownews/Makefile index 94c5870..54c3f2c 100644 --- a/www/snownews/Makefile +++ b/www/snownews/Makefile @@ -16,7 +16,6 @@ MAINTAINER= clsung@FreeBSD.org COMMENT= A text mode RSS newsreader USE_PERL5_BUILD=yes -USE_GETTEXT= yes USE_GMAKE= yes USE_GNOME= libxml2 USE_REINPLACE= yes @@ -30,6 +29,13 @@ post-configure: .endif .endif +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.else +PLIST_SUB+= NLS="@comment " +.endif + MAN1= snownews.1 MANLANG= "" de nl fr it ru_RU.KOI8-R @@ -40,14 +46,14 @@ pre-everything:: @${ECHO_MSG} " Default is ISO-8859-1." @${ECHO_MSG} " " -pre-configure: - @${REINPLACE_CMD} -e 's|#!/usr/bin/perl|#!/usr/bin/env perl|g' ${WRKSRC}/configure - post-patch: + @${REINPLACE_CMD} -e 's|#!/usr/bin/perl|#!${PERL}|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS+=|g' ${WRKSRC}/platform_settings - @${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/Makefile - -pre-build: @${REINPLACE_CMD} -e 's|^PREFIX|#PREFIX|' ${WRKSRC}/platform_settings + @${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/Makefile +.if defined(WITHOUT_NLS) + ${REINPLACE_CMD} -e 's/ install-locales / /g' ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e 's/ locales$$//g' ${WRKSRC}/Makefile +.endif .include <bsd.port.mk> |