From ad39541fafc35e0cb004e77a683e4305011f8875 Mon Sep 17 00:00:00 2001 From: krion Date: Fri, 26 Mar 2004 14:43:01 +0000 Subject: - Support WITHOUT_NLS PR: ports/64764 Submitted by: Ports Fury --- graphics/xmorph/Makefile | 12 ++++++++++-- graphics/xmorph/pkg-plist | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'graphics') 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 .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 -- cgit