summaryrefslogtreecommitdiff
path: root/devel/glade/Makefile
diff options
context:
space:
mode:
authormycroft <mycroft@pkgsrc.org>2000-11-09 17:59:51 +0000
committermycroft <mycroft@pkgsrc.org>2000-11-09 17:59:51 +0000
commited516f285a5ea40b559a3c4c0d2479f0d70cc563 (patch)
tree5f25acdef054f991cf36f74e0cbec75b3ddb6056 /devel/glade/Makefile
parent4a2ade2d92f01ef5a56e82e779784a180a85975b (diff)
downloadpkgsrc-ed516f285a5ea40b559a3c4c0d2479f0d70cc563.tar.gz
Use the same method as devel/ee to get the locale files in the right place.
Diffstat (limited to 'devel/glade/Makefile')
-rw-r--r--devel/glade/Makefile20
1 files changed, 18 insertions, 2 deletions
diff --git a/devel/glade/Makefile b/devel/glade/Makefile
index 90aafb50874..99e186d26bd 100644
--- a/devel/glade/Makefile
+++ b/devel/glade/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2000/10/15 17:20:44 rh Exp $
+# $NetBSD: Makefile,v 1.18 2000/11/09 17:59:51 mycroft Exp $
# FreeBSD Id: Makefile,v 1.10 1998/11/18 17:35:16 vanilla Exp
#
@@ -13,9 +13,13 @@ HOMEPAGE= http://glade.pn.org/
DEPENDS+= gnome-core>=1.2.0:../../x11/gnome-core
GNU_CONFIGURE= yes
-CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
USE_X11BASE= yes
+CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
+CONFIGURE_ENV+= LOCALEBASE=${LOCALEBASE}
+
+PLIST_SUBST+= LOCALEBASE=${LOCALEBASE}
+
post-install:
${MKDIR} ${PREFIX}/share/doc/glade
${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/glade
@@ -28,4 +32,16 @@ post-install:
${INSTALL_MAN} ${WRKSRC}/doc/portability.txt ${PREFIX}/share/doc/glade
${INSTALL_MAN} ${WRKSRC}/doc/source_code.txt ${PREFIX}/share/doc/glade
+.include "../../mk/bsd.prefs.mk"
+
+# The directory in which locale files are found is:
+#
+# ${PREFIX}/${LOCALEBASE}/locale/<lang>/LC_MESSAGES
+#
+.if ${OPSYS} == "SunOS"
+LOCALEBASE= lib
+.else
+LOCALEBASE= share
+.endif
+
.include "../../mk/bsd.pkg.mk"