summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-06-16 19:50:57 +0000
committerjlam <jlam@pkgsrc.org>2001-06-16 19:50:57 +0000
commit0f5b5101f41b5f885ac5df67cd3264f2b7708f76 (patch)
tree99320549cecfb7f8c85c874987b3ac016e76f4b9 /x11
parent35b12a3c8030bff3dc854236a2c67bb5afc570cb (diff)
downloadpkgsrc-0f5b5101f41b5f885ac5df67cd3264f2b7708f76.tar.gz
Convrt to use buildlink.mk.
Diffstat (limited to 'x11')
-rw-r--r--x11/gtk/Makefile21
1 files changed, 16 insertions, 5 deletions
diff --git a/x11/gtk/Makefile b/x11/gtk/Makefile
index 90151661559..0d82c6e4dfc 100644
--- a/x11/gtk/Makefile
+++ b/x11/gtk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.58 2001/06/11 06:34:58 jlam Exp $
+# $NetBSD: Makefile,v 1.59 2001/06/16 19:50:58 jlam Exp $
DISTNAME= gtk+-1.2.10
CATEGORIES= x11
@@ -11,15 +11,15 @@ MAINTAINER= tron@netbsd.org
HOMEPAGE= http://www.gtk.org/
COMMENT= Gimp toolkit. Libraries for building X11 user interfaces
-DEPENDS+= glib>=1.2.8:../../devel/glib
BUILD_DEPENDS+= perl>=${PERL5_REQD}:../../lang/perl5
BUILD_USES_MSGFMT= yes
-USE_LIBINTL= yes
+#USE_LIBINTL= yes
USE_LIBTOOL= yes
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
USE_X11BASE= yes
USE_GMAKE= yes
+USE_CONFIG_WRAPPER= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-xinput=xfree
@@ -27,8 +27,9 @@ CONFIGURE_ENV+= X_LDFLAGS="${X_LDFLAGS}"
INFO_FILES= gdk.info gtk.info
-CPPFLAGS= -I${LOCALBASE}/include # libintl.h
-LDFLAGS= -Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib # -lintl
+.include "../../devel/gettext-lib/buildlink.mk"
+.include "../../devel/glib/buildlink.mk"
+
MAKE_ENV+= PKGLOCALEDIR="${PKGLOCALEDIR}"
PLIST_SUBST+= LOCALBASE=${LOCALBASE}
@@ -37,6 +38,16 @@ PLIST_SUBST+= LOCALBASE=${LOCALBASE}
#
X_LDFLAGS= -Wl,-R${X11BASE}/lib -L${X11BASE}/lib
+# Fix gtk-config by removing buildlink directory references.
+post-build:
+ @cd ${WRKSRC}; \
+ ${MV} -f gtk-config gtk-config.fixme; \
+ ${SED} -e "/^glib/s|-I${BUILDLINK_DIR}/|-I${LOCALBASE}/|g" \
+ -e "/^glib/s|-L${BUILDLINK_DIR}/|-L${LOCALBASE}/|g" \
+ gtk-config.fixme > gtk-config; \
+ ${RM} -f gtk-config.fixme; \
+ ${CHMOD} +x gtk-config
+
post-install:
${TEST} ${PREFIX} = ${LOCALBASE} || \
${LN} -fs ${PREFIX}/share/aclocal/gtk.m4 \