From 526c52d08f67c85a160452a3f2d73702624e4f93 Mon Sep 17 00:00:00 2001 From: krion Date: Sun, 11 Jul 2004 11:23:40 +0000 Subject: Support WITHOUT_NLS --- x11-wm/ude/Makefile | 9 ++++++++- x11-wm/ude/pkg-plist | 12 ++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) (limited to 'x11-wm') diff --git a/x11-wm/ude/Makefile b/x11-wm/ude/Makefile index bd945030c541..9628b25d23b6 100644 --- a/x11-wm/ude/Makefile +++ b/x11-wm/ude/Makefile @@ -18,12 +18,19 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg USE_X_PREFIX= yes USE_XPM= yes -USE_GETTEXT= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+=--disable-nls +PLIST_SUB+= NLS="@comment " +.endif + post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR}/html diff --git a/x11-wm/ude/pkg-plist b/x11-wm/ude/pkg-plist index 7de906ab7b5f..1733fadc10f2 100644 --- a/x11-wm/ude/pkg-plist +++ b/x11-wm/ude/pkg-plist @@ -25,12 +25,12 @@ bin/uwm %%PORTDOCS%%%%DOCSDIR%%/html/prev_g.gif %%PORTDOCS%%%%DOCSDIR%%/html/up.gif %%PORTDOCS%%%%DOCSDIR%%/html/up_g.gif -share/locale/de/LC_MESSAGES/ude.mo -share/locale/es/LC_MESSAGES/ude.mo -share/locale/pt_BR/LC_MESSAGES/ude.mo -share/locale/sk/LC_MESSAGES/ude.mo -share/locale/sv/LC_MESSAGES/ude.mo -share/locale/tr/LC_MESSAGES/ude.mo +%%NLS%%share/locale/de/LC_MESSAGES/ude.mo +%%NLS%%share/locale/es/LC_MESSAGES/ude.mo +%%NLS%%share/locale/pt_BR/LC_MESSAGES/ude.mo +%%NLS%%share/locale/sk/LC_MESSAGES/ude.mo +%%NLS%%share/locale/sv/LC_MESSAGES/ude.mo +%%NLS%%share/locale/tr/LC_MESSAGES/ude.mo %%DATADIR%%/config/StartScript %%DATADIR%%/config/StopScript %%DATADIR%%/config/appmenu -- cgit