aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-03-26 22:43:01 +0800
committerkrion <krion@FreeBSD.org>2004-03-26 22:43:01 +0800
commitad39541fafc35e0cb004e77a683e4305011f8875 (patch)
tree651e000812537b31322f54c91e4750295240a28a /graphics
parent6a51c00002337ed19ce074821121ac5788ca6b92 (diff)
downloadfreebsd-ports-gnome-ad39541fafc35e0cb004e77a683e4305011f8875.tar.gz
freebsd-ports-gnome-ad39541fafc35e0cb004e77a683e4305011f8875.tar.zst
freebsd-ports-gnome-ad39541fafc35e0cb004e77a683e4305011f8875.zip
- Support WITHOUT_NLS
PR: ports/64764 Submitted by: Ports Fury
Diffstat (limited to 'graphics')
-rw-r--r--graphics/xmorph/Makefile12
-rw-r--r--graphics/xmorph/pkg-plist2
2 files changed, 11 insertions, 3 deletions
diff --git a/graphics/xmorph/Makefile b/graphics/xmorph/Makefile
index 309bd9521917..2374d1042041 100644
--- a/graphics/xmorph/Makefile
+++ b/graphics/xmorph/Makefile
@@ -22,7 +22,7 @@ CONFLICTS= libmorph*
USE_X_PREFIX= yes
WANT_GNOME= yes
USE_GNOME= gnometarget lthack
-USE_LIBTOOL_VER=13
+USE_LIBTOOL_VER= 13
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
INSTALLS_SHLIB= yes
@@ -33,13 +33,21 @@ INFO= xmorph
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mgtk20}!=""
-USE_GNOME+= gtk20
+USE_GNOME+= gtk20
CONFIGURE_ARGS+= --with-gtk2
MAN1+= gtkmorph.1
.else
CONFIGURE_ARGS+= --without-gtkmorph
.endif
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.endif
+
post-extract:
@${RM} -f ${WRKSRC}/doc/*.info*
diff --git a/graphics/xmorph/pkg-plist b/graphics/xmorph/pkg-plist
index a0cdd8888186..d552365a37c0 100644
--- a/graphics/xmorph/pkg-plist
+++ b/graphics/xmorph/pkg-plist
@@ -48,7 +48,7 @@ lib/libmorph.so.1
%%PORTDOCS%%%%EXAMPLESDIR%%/AD_freeborder/image2.png
%%PORTDOCS%%%%EXAMPLESDIR%%/AD_freeborder/image2.png.mesh
%%PORTDOCS%%%%EXAMPLESDIR%%/AD_freeborder/image2.png.meshtmp
-share/locale/it/LC_MESSAGES/xmorph.mo
+%%NLS%%share/locale/it/LC_MESSAGES/xmorph.mo
%%GNOME:%%%%DATADIR%%/mpeg.param
%%DATADIR%%/pixmaps/cursor_left.xpm
%%DATADIR%%/pixmaps/eraser.xpm