summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-03-26 14:43:01 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-03-26 14:43:01 +0000
commitb1e24043d2aabd989fd3f559481d58a9d9e3aede (patch)
treed99f098842ecd77658781c52ad5af9742c4f3313 /graphics
parent- Fix build with gimp-2.0.0 (diff)
- Support WITHOUT_NLS
PR: ports/64764 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=105336
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