diff options
-rw-r--r-- | audio/swhplugins/Makefile | 9 | ||||
-rw-r--r-- | audio/swhplugins/pkg-plist | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/audio/swhplugins/Makefile b/audio/swhplugins/Makefile index 21d841d99731..81b129d8a6e5 100644 --- a/audio/swhplugins/Makefile +++ b/audio/swhplugins/Makefile @@ -20,7 +20,6 @@ LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw # includes assember code ONLY_FOR_ARCHS= i386 amd64 -USE_GETTEXT= yes USE_REINPLACE= yes USE_GMAKE= yes USE_LIBTOOL_VER= 13 @@ -31,6 +30,14 @@ CONFIGURE_ENV= CPPFLAGS="-fPIC -I${LOCALBASE}/include" \ CONFIGURE_ARGS+= --with-libintl-prefix=${LOCALBASE} INSTALLS_SHLIB= yes +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+=--disable-nls +PLIST_SUB+= NLS="@comment " +.endif + post-patch: @${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g ; \ s|INCLUDED_LIBINTL=yes|INCLUDED_LIBINTL=no|g ; \ diff --git a/audio/swhplugins/pkg-plist b/audio/swhplugins/pkg-plist index 5f45d6fa421f..94ec2a31e826 100644 --- a/audio/swhplugins/pkg-plist +++ b/audio/swhplugins/pkg-plist @@ -89,7 +89,7 @@ lib/ladspa/wave_terrain_1412.so lib/ladspa/zm1_1428.so share/ladspa/rdf/swh-aux.rdf share/ladspa/rdf/swh-plugins.rdf -share/locale/en_GB/LC_MESSAGES/swh-plugins.mo +%%NLS%%share/locale/en_GB/LC_MESSAGES/swh-plugins.mo @unexec rmdir %D/share/ladspa/rdf 2>/dev/null || true @unexec rmdir %D/share/ladspa 2>/dev/null || true @unexec rmdir %D/libladspa 2>/dev/null || true |