From 39ec4cb80e8b33aa6216dfd5fc00924c9eeef535 Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 21 Jul 2005 10:43:23 +0000 Subject: The additional locale files only get installed on systems with a recent gettext version (e.g. NetBSD 3.99.7) but not systems with an older one (e.g. NetBSD 3.0_BETA). We must therefore adapt the package list dynamically. --- x11/xscreensaver/Makefile | 8 +++++++- x11/xscreensaver/PLIST | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'x11/xscreensaver') diff --git a/x11/xscreensaver/Makefile b/x11/xscreensaver/Makefile index b3d29cc7eb5..edb3f6db228 100644 --- a/x11/xscreensaver/Makefile +++ b/x11/xscreensaver/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.73 2005/07/21 06:41:12 hira Exp $ +# $NetBSD: Makefile,v 1.74 2005/07/21 10:43:23 tron Exp $ COMMENT= Screen saver and locker for the X window system PKGREVISION= 1 @@ -13,5 +13,11 @@ CONFIGURE_ARGS+= --without-gtk CONFIGURE_ARGS+= --with-xml=${BUILDLINK_PREFIX.libxml2} CONFIGURE_ARGS+= --with-configdir=${PREFIX}/libexec/xscreensaver/config +.if exists(${PREFIX}/${PKGLOCALEDIR}/locale/ca/LC_MESSAGES/xscreensaver.mo) +PLIST_SUBST+= OLD_GETTEXT= +.else +PLIST_SUBST+= OLD_GETTEXT="@comment " +.endif + .include "../../textproc/libxml2/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/x11/xscreensaver/PLIST b/x11/xscreensaver/PLIST index 950da75719d..07dc15263c9 100644 --- a/x11/xscreensaver/PLIST +++ b/x11/xscreensaver/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.25 2005/07/21 06:41:12 hira Exp $ +@comment $NetBSD: PLIST,v 1.26 2005/07/21 10:43:23 tron Exp $ bin/xscreensaver bin/xscreensaver-command bin/xscreensaver-getimage @@ -612,7 +612,7 @@ man/man1/xspirograph.1 man/man1/xsublim.1 man/man1/xteevee.1 man/man1/zoom.1 -${PKGLOCALEDIR}/locale/ca/LC_MESSAGES/xscreensaver.mo +${OLD_GETTEXT}${PKGLOCALEDIR}/locale/ca/LC_MESSAGES/xscreensaver.mo ${PKGLOCALEDIR}/locale/da/LC_MESSAGES/xscreensaver.mo ${PKGLOCALEDIR}/locale/de/LC_MESSAGES/xscreensaver.mo ${PKGLOCALEDIR}/locale/es/LC_MESSAGES/xscreensaver.mo @@ -628,7 +628,7 @@ ${PKGLOCALEDIR}/locale/nl/LC_MESSAGES/xscreensaver.mo ${PKGLOCALEDIR}/locale/no/LC_MESSAGES/xscreensaver.mo ${PKGLOCALEDIR}/locale/pl/LC_MESSAGES/xscreensaver.mo ${PKGLOCALEDIR}/locale/pt/LC_MESSAGES/xscreensaver.mo -${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/xscreensaver.mo +${OLD_GETTEXT}${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/xscreensaver.mo ${PKGLOCALEDIR}/locale/ru/LC_MESSAGES/xscreensaver.mo ${PKGLOCALEDIR}/locale/sk/LC_MESSAGES/xscreensaver.mo ${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/xscreensaver.mo -- cgit v1.2.3