diff options
author | bapt <bapt@FreeBSD.org> | 2013-05-06 23:18:38 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-05-06 23:18:38 +0800 |
commit | 1a690bacd9585a99a155a2f741cff79b443b6523 (patch) | |
tree | c7e91489b0dba2b35a29ac169022f6d1f2d0ecb0 | |
parent | d7700830d846aa135f6cc2d27c2ad15d2c795b13 (diff) | |
download | freebsd-ports-gnome-1a690bacd9585a99a155a2f741cff79b443b6523.tar.gz freebsd-ports-gnome-1a690bacd9585a99a155a2f741cff79b443b6523.tar.zst freebsd-ports-gnome-1a690bacd9585a99a155a2f741cff79b443b6523.zip |
Convert from WITHOUT_NLS to PORT_OPTIONS:MNLS
-rw-r--r-- | devel/popt/Makefile | 16 | ||||
-rw-r--r-- | games/enigma/Makefile | 12 | ||||
-rw-r--r-- | games/xblast/Makefile | 17 | ||||
-rw-r--r-- | graphics/geomorph/Makefile | 10 | ||||
-rw-r--r-- | graphics/ocrfeeder/Makefile | 16 | ||||
-rw-r--r-- | irc/smuxi/Makefile | 10 | ||||
-rw-r--r-- | japanese/kasumi/Makefile | 16 | ||||
-rw-r--r-- | korean/ami/Makefile | 12 | ||||
-rw-r--r-- | korean/imhangul/Makefile | 10 | ||||
-rw-r--r-- | korean/libhangul/Makefile | 10 | ||||
-rw-r--r-- | korean/nabi/Makefile | 10 |
11 files changed, 58 insertions, 81 deletions
diff --git a/devel/popt/Makefile b/devel/popt/Makefile index fa57e4927f4a..8d48c0653218 100644 --- a/devel/popt/Makefile +++ b/devel/popt/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: popt -# Date Created: 29 Dec 1999 -# Whom: Yuan-Chen Cheng <ycheng@sinica.edu.tw> -# +# Created by: Yuan-Chen Cheng <ycheng@sinica.edu.tw> # $FreeBSD$ -# PORTNAME= popt PORTVERSION= 1.16 @@ -24,13 +20,15 @@ USE_LDCONFIG= yes MAN3= popt.3 -.if defined(WITHOUT_NLS) -CONFIGURE_ARGS+=--disable-nls -PLIST_SUB+= NLS="@comment " -.else +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} CONFIGURE_ARGS+=--enable-nls PLIST_SUB+= NLS="" USES+= gettext +.else +CONFIGURE_ARGS+=--disable-nls +PLIST_SUB+= NLS="@comment " .endif .include <bsd.port.mk> diff --git a/games/enigma/Makefile b/games/enigma/Makefile index ecb42e2505f4..e3e0c3cea9b9 100644 --- a/games/enigma/Makefile +++ b/games/enigma/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: enigma -# Date created: 25 July 2002 -# Whom: Edwin Groothuis -# +# Created by: Edwin Groothuis # $FreeBSD$ -# PORTNAME= enigma PORTVERSION= 1.01 @@ -39,7 +35,9 @@ SUB_FILES= pkg-message PORTDOCS= * -.if !defined(WITHOUT_NLS) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} PLIST_SUB+= NLS="" USES+= gettext .else @@ -54,7 +52,7 @@ post-extract: post-patch: @${REINPLACE_CMD} -e '/Exec=/s,enigma,${PREFIX}/bin/enigma,g' \ ${WRKSRC}/etc/enigma.desktop -.if defined(NOPORTDOCS) +.if ! ${PORT_OPTIONS:MDOCS} @${REINPLACE_CMD} -E -e '/install-data-am/ s,install-(doc|index)DATA,,g' \ ${WRKSRC}/Makefile.in ${WRKSRC}/doc/Makefile.in @${REINPLACE_CMD} -e '/^SUBDIRS/ s|=.*|=|' ${WRKSRC}/doc/Makefile.in diff --git a/games/xblast/Makefile b/games/xblast/Makefile index 33524ea13b89..8ea1a4ddaa84 100644 --- a/games/xblast/Makefile +++ b/games/xblast/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: xblast -# Date created: Sat Nov 08 09:47:12 CET 1997 -# Whom: se -# +# Created by: se # $FreeBSD$ -# PORTNAME= xblast PORTVERSION= 2.10.4 @@ -63,12 +59,13 @@ MODELS_DATE= 2005-01-06 MUSICS_DATE= 2005-01-06 SOUNDS_DATE= 2004-04-29 -.if defined(WITHOUT_NLS) -CONFIGURE_ARGS+= --disable-nls -PLIST_SUB+= NLS="@comment " -.else +.include <bsd.port.options.mk> +.if ${PORT_OPTIONS:MNLS} USES+= gettext PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+= --disable-nls +PLIST_SUB+= NLS="@comment " .endif .if defined(WITHOUT_SDL) @@ -111,7 +108,7 @@ do-install: cd ${WRKSRC} && ${INSTALL_PROGRAM} xbsndsrv ${PREFIX}/bin/xbsndsrv .endif cd ${WRKSRC} && ${INSTALL_MAN} xblast.man ${MAN6PREFIX}/man/man6/xblast.6 -.if !defined(WITHOUT_NLS) +.if ${PORT_OPTIONS:MNLS} .for lang in de fr @${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES cd ${WRKSRC}/po && ${INSTALL_DATA} ${lang}.gmo \ diff --git a/graphics/geomorph/Makefile b/graphics/geomorph/Makefile index 48022cde2b95..19a325d05e59 100644 --- a/graphics/geomorph/Makefile +++ b/graphics/geomorph/Makefile @@ -1,9 +1,5 @@ -# ports collection makefile for: geomorph -# Date created: 24 Feb 2006 -# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru> -# +# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru> # $FreeBSD$ -# PORTNAME= geomorph PORTVERSION= 0.50 @@ -25,7 +21,9 @@ CONFIGURE_ARGS= --with-libintl-prefix="${LOCALBASE}" PLIST_SUB= PORTVERSION=${PORTVERSION} -.if !defined(WITHOUT_NLS) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} USES+= gettext PLIST_SUB+= NLS="" .else diff --git a/graphics/ocrfeeder/Makefile b/graphics/ocrfeeder/Makefile index ee0faac9437e..76ac9de63aaa 100644 --- a/graphics/ocrfeeder/Makefile +++ b/graphics/ocrfeeder/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: ocrfeeder -# Date created: 5 August 2011 -# Whom: buganini@gmail.com -# +# Created by: buganini@gmail.com # $FreeBSD$ -# PORTNAME= ocrfeeder PORTVERSION= 0.7.7 @@ -35,12 +31,14 @@ USE_GNOME= pygtk2 pygnomeextras USES= gettext USE_GHOSTSCRIPT=yes -.if defined(WITHOUT_NLS) -PLIST_SUB+= NLS="@comment " -CONFIGURE_ARGS+= --disable-nls -.else +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} USES+= gettext PLIST_SUB+= NLS="" +.else +PLIST_SUB+= NLS="@comment " +CONFIGURE_ARGS+= --disable-nls .endif post-install: diff --git a/irc/smuxi/Makefile b/irc/smuxi/Makefile index ec7524809f44..0dda7f671dd3 100644 --- a/irc/smuxi/Makefile +++ b/irc/smuxi/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: smuxi -# Date created: 2009-04-27 -# Whom: Romain Tartiere <romain@blogreen.org> -# +# Created by: Romain Tartiere <romain@blogreen.org> # $FreeBSD$ -# PORTNAME= smuxi PORTVERSION= 0.8 @@ -29,7 +25,9 @@ post-patch: 's|@libdir@/pkgconfig|@prefix@/libdata/pkgconfig|g ; \ s|@libdir@/locale|@prefix@/share/locale|g' -.if !defined(WITHOUT_NLS) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} USES+= gettext PLIST_SUB+= NLS="" .else diff --git a/japanese/kasumi/Makefile b/japanese/kasumi/Makefile index f942f0550a88..df7d09fb446b 100644 --- a/japanese/kasumi/Makefile +++ b/japanese/kasumi/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: kasumi -# Date Created: 10 January 2005 -# Whom: MANTANI Nobutaka <nobutaka@FreeBSD.org> -# +# Created by: MANTANI Nobutaka <nobutaka@FreeBSD.org> # $FreeBSD$ -# PORTNAME= kasumi PORTVERSION= 2.5 @@ -26,12 +22,14 @@ LDFLAGS+= -L${LOCALBASE}/lib MAN1= kasumi.1 -.if defined(WITHOUT_NLS) -CONFIGURE_ARGS+=--disable-nls -PLIST_SUB+= NLS="@comment " -.else +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} USES+= gettext PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+=--disable-nls +PLIST_SUB+= NLS="@comment " .endif .include <bsd.port.mk> diff --git a/korean/ami/Makefile b/korean/ami/Makefile index e392cfb152d2..756531b58e88 100644 --- a/korean/ami/Makefile +++ b/korean/ami/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: ami -# Date created: 05 Jun 1999 -# Whom: CHOI Junho <cjh@kr.freebsd.org> -# +# Created by: CHOI Junho <cjh@kr.freebsd.org> # $FreeBSD$ -# PORTNAME= ami PORTVERSION= 1.2.3 @@ -26,7 +22,9 @@ USE_GNOME= gtk12 gdkpixbuf WANT_GNOME= yes GNU_CONFIGURE= yes -.if !defined(WITHOUT_NLS) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} USES+= gettext LDFLAGS+= -L${LOCALBASE}/lib CPPFLAGS+= -I${LOCALBASE}/include @@ -46,7 +44,7 @@ post-build: ${CAT} ${DISTDIR}/ami.dic >> ${WRKDIR}/hanja.dic post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${PREFIX}/share/doc/ami ( cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} ) .endif diff --git a/korean/imhangul/Makefile b/korean/imhangul/Makefile index 3696df45cdf3..5fd7208e0af6 100644 --- a/korean/imhangul/Makefile +++ b/korean/imhangul/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: imhangul -# Date created: May 26 2003 -# Whom: CHOI Junho <cjh@kr.freebsd.org> -# +# Created by: CHOI Junho <cjh@kr.freebsd.org> # $FreeBSD$ -# PORTNAME= imhangul PORTVERSION= 2.1.0 @@ -24,7 +20,9 @@ USE_GMAKE= yes USE_GNOME= gtk20 GNU_CONFIGURE= yes -.if !defined(WITHOUT_NLS) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} USES+= gettext LDFLAGS+= -L${LOCALBASE}/lib CPPFLAGS+= -I${LOCALBASE}/include diff --git a/korean/libhangul/Makefile b/korean/libhangul/Makefile index 8f757045d4ab..a60995703297 100644 --- a/korean/libhangul/Makefile +++ b/korean/libhangul/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: libhangul -# Date created: 31 January 2007 -# Whom: Hyogeol, Lee <hyogeollee@gmail.com> -# +# Created by: Hyogeol, Lee <hyogeollee@gmail.com> # $FreeBSD$ -# PORTNAME= libhangul PORTVERSION= 0.1.0 @@ -19,7 +15,9 @@ USES= iconv USE_LDCONFIG= yes GNU_CONFIGURE= yes -.if !defined(WITHOUT_NLS) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} USES+= gettext LDFLAGS+= -L${LOCALBASE}/lib CPPFLAGS+= -I${LOCALBASE}/include diff --git a/korean/nabi/Makefile b/korean/nabi/Makefile index 32e47ee33b52..0615dc878ca3 100644 --- a/korean/nabi/Makefile +++ b/korean/nabi/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: nabi -# Date created: 5 August 2003 -# Whom: Hye-Shik Chang <perky@FreeBSD.org> -# +# Created by: Hye-Shik Chang <perky@FreeBSD.org> # $FreeBSD$ -# PORTNAME= nabi PORTVERSION= 0.99.11 @@ -22,7 +18,9 @@ USE_GMAKE= yes USE_GNOME= gnomeprefix gnomehack gtk20 GNU_CONFIGURE= yes -.if !defined(WITHOUT_NLS) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} USES+= gettext LDFLAGS+= -L${LOCALBASE}/lib CPPFLAGS+= -I${LOCALBASE}/include |