diff --git a/lang/gawk/Makefile b/lang/gawk/Makefile index b27d8f85dc81..70849231e424 100644 --- a/lang/gawk/Makefile +++ b/lang/gawk/Makefile @@ -14,6 +14,8 @@ MASTER_SITE_SUBDIR= gawk MAINTAINER= dd@FreeBSD.org COMMENT= The GNU version of Awk +INFO= gawk gawkinet + .include .if ${OSVERSION} >= 500039 @@ -26,6 +28,13 @@ CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \ MAN1= gawk.1 igawk.1 PLIST_SUB= VERSION=${PORTVERSION} + +.if !defined(WITHOUT_NLS) USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+=--disable-nls +PLIST_SUB+= NLS="@comment " +.endif .include diff --git a/lang/gawk/pkg-plist b/lang/gawk/pkg-plist index a1001b85d5f0..e861abb344d4 100644 --- a/lang/gawk/pkg-plist +++ b/lang/gawk/pkg-plist @@ -3,12 +3,6 @@ bin/gawk-%%VERSION%% bin/igawk bin/pgawk bin/pgawk-%%VERSION%% -@unexec install-info --delete %D/info/gawk.info %D/info/dir -info/gawk.info -@exec install-info %D/info/gawk.info %D/info/dir -@unexec install-info --delete %D/info/gawkinet.info %D/info/dir -info/gawkinet.info -@exec install-info %D/info/gawkinet.info %D/info/dir libexec/awk/grcat libexec/awk/pwcat share/awk/assert.awk @@ -28,12 +22,12 @@ share/awk/passwd.awk share/awk/readable.awk share/awk/rewind.awk share/awk/round.awk -share/locale/de/LC_MESSAGES/gawk.mo -share/locale/es/LC_MESSAGES/gawk.mo -share/locale/fr/LC_MESSAGES/gawk.mo -share/locale/he/LC_MESSAGES/gawk.mo -share/locale/it/LC_MESSAGES/gawk.mo -share/locale/sv/LC_MESSAGES/gawk.mo -share/locale/tr/LC_MESSAGES/gawk.mo +%%NLS%%share/locale/de/LC_MESSAGES/gawk.mo +%%NLS%%share/locale/es/LC_MESSAGES/gawk.mo +%%NLS%%share/locale/fr/LC_MESSAGES/gawk.mo +%%NLS%%share/locale/he/LC_MESSAGES/gawk.mo +%%NLS%%share/locale/it/LC_MESSAGES/gawk.mo +%%NLS%%share/locale/sv/LC_MESSAGES/gawk.mo +%%NLS%%share/locale/tr/LC_MESSAGES/gawk.mo @dirrm share/awk @dirrm libexec/awk