summaryrefslogtreecommitdiff
path: root/x11/gtk/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2001-06-26 16:30:55 +0000
committerjlam <jlam>2001-06-26 16:30:55 +0000
commitb667122bb758741804d3b24a50d5dad9122b7acf (patch)
tree385aed669fbba2270d809f19c7a03a64c0a65323 /x11/gtk/Makefile
parent3f5299f7926923d81d1a5eccc00afdedba1928e1 (diff)
downloadpkgsrc-b667122bb758741804d3b24a50d5dad9122b7acf.tar.gz
Use REPLACE_BUILDLINK instead of repeating the post-build same code over
and over again in the pkgsrc tree.
Diffstat (limited to 'x11/gtk/Makefile')
-rw-r--r--x11/gtk/Makefile19
1 files changed, 4 insertions, 15 deletions
diff --git a/x11/gtk/Makefile b/x11/gtk/Makefile
index aa84e18abd7..641f32ab530 100644
--- a/x11/gtk/Makefile
+++ b/x11/gtk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.62 2001/06/19 06:52:10 jlam Exp $
+# $NetBSD: Makefile,v 1.63 2001/06/26 16:30:58 jlam Exp $
DISTNAME= gtk+-1.2.10
CATEGORIES= x11
@@ -15,12 +15,14 @@ BUILD_DEPENDS+= perl>=${PERL5_REQD}:../../lang/perl5
BUILD_USES_MSGFMT= yes
USE_BUILDLINK_ONLY= yes
+USE_CONFIG_WRAPPER= yes
+REPLACE_BUILDLINK= gtk-config
+
#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
@@ -62,19 +64,6 @@ pre-configure:
${RM} $${file}.fixme; \
done
-# Fix config scripts by removing buildlink directory references.
-post-build:
- @cd ${WRKSRC}; \
- config_scripts="gtk-config"; \
- for file in $${config_scripts}; do \
- ${MV} -f $${file} $${file}.fixme; \
- ${SED} -e "s|-I${BUILDLINK_DIR}/|-I${LOCALBASE}/|g" \
- -e "s|-L${BUILDLINK_DIR}/|-L${LOCALBASE}/|g" \
- $${file}.fixme > $${file}; \
- ${RM} -f $${file}.fixme; \
- ${CHMOD} +x $${file}; \
- done
-
post-install:
${TEST} ${PREFIX} = ${LOCALBASE} || \
${LN} -fs ${PREFIX}/share/aclocal/gtk.m4 \