diff options
author | tron <tron@pkgsrc.org> | 2005-07-21 10:43:23 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2005-07-21 10:43:23 +0000 |
commit | afc2d700b4a4f1312218bccf99b848415d82fc2d (patch) | |
tree | a0edcd7dfaeabb935da47bef79d9ec26bc254c90 /x11 | |
parent | daab9c952e7818188437bb780742a838248e83e3 (diff) | |
download | pkgsrc-afc2d700b4a4f1312218bccf99b848415d82fc2d.tar.gz |
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.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/xscreensaver/Makefile | 8 | ||||
-rw-r--r-- | x11/xscreensaver/PLIST | 6 |
2 files changed, 10 insertions, 4 deletions
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 |