diff options
author | jlam <jlam> | 2001-10-23 03:13:28 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-10-23 03:13:28 +0000 |
commit | 7a4a036477cc362946133aa1bc81964403d8e6b3 (patch) | |
tree | 16848905f26dcc9d17006b649b127963084dcc40 /x11 | |
parent | 3634f36e533b72080b4779b59c1ec711bafe3563 (diff) | |
download | pkgsrc-7a4a036477cc362946133aa1bc81964403d8e6b3.tar.gz |
Buildlinkify x11/gtk--. Changes come from patch provided by Eric
Gillespie, Jr.in pkg/14204, which minor updates by me.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/gtk--/Makefile | 12 | ||||
-rw-r--r-- | x11/gtk--/buildlink.mk | 56 |
2 files changed, 63 insertions, 5 deletions
diff --git a/x11/gtk--/Makefile b/x11/gtk--/Makefile index 2859811e2c9..c7050881c16 100644 --- a/x11/gtk--/Makefile +++ b/x11/gtk--/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2001/04/24 17:27:57 rh Exp $ +# $NetBSD: Makefile,v 1.18 2001/10/23 03:13:28 jlam Exp $ # FreeBSD Id: Makefile,v 1.6 1999/01/12 16:50:43 vanilla Exp # @@ -10,14 +10,13 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gtkmm/} \ MAINTAINER= bsieker@freenet.de HOMEPAGE= http://gtkmm.sourceforge.net/ -COMMENT= C++ wrapper for the gimp toolkit (gtk++) +COMMENT= C++ wrapper for GTK+ -BUILD_DEPENDS+= m4-1.4:../../devel/m4 -DEPENDS+= gtk+>=1.2.7:../../x11/gtk -DEPENDS+= libsigc++>=1.0.1:../../devel/libsigc++ +BUILD_DEPENDS+= m4>=1.4:../../devel/m4 USE_X11BASE= YES +USE_BUILDLINK_ONLY= YES GNU_CONFIGURE= YES USE_GMAKE= YES USE_PERL5= YES @@ -32,4 +31,7 @@ post-install: ${LN} -fs ${PREFIX}/share/aclocal/gtk--.m4 \ ${LOCALBASE}/share/aclocal/gtk--.m4 +.include "../../devel/libsigc++/buildlink.mk" +.include "../../x11/gtk/buildlink.mk" +.include "../../mk/x11.buildlink.mk" .include "../../mk/bsd.pkg.mk" diff --git a/x11/gtk--/buildlink.mk b/x11/gtk--/buildlink.mk new file mode 100644 index 00000000000..1ae874e0bac --- /dev/null +++ b/x11/gtk--/buildlink.mk @@ -0,0 +1,56 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/10/23 03:13:29 jlam Exp $ +# +# This Makefile fragment is included by packages that use gtk--. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.gtkmm to the dependency pattern +# for the version of gtkmm desired. +# (2) Include this Makefile fragment in the package Makefile, +# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header +# search path, and +# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search +# path. + +.if !defined(GTKMM_BUILDLINK_MK) +GTKMM_BUILDLINK_MK= # defined + +.include "../../mk/bsd.buildlink.mk" + +BUILDLINK_DEPENDS.gtkmm?= gtk-->=1.2.5 +DEPENDS+= ${BUILDLINK_DEPENDS.gtkmm}:../../x11/gtk-- + +EVAL_PREFIX+= BUILDLINK_PREFIX.gtkmm=gtkmm +BUILDLINK_PREFIX.gtkmm_DEFAULT= ${X11PREFIX} +BUILDLINK_FILES.gtkmm= include/gdk--.h +BUILDLINK_FILES.gtkmm+= include/gdk--/* +BUILDLINK_FILES.gtkmm+= include/glib--.h +BUILDLINK_FILES.gtkmm+= include/gtk--.h +BUILDLINK_FILES.gtkmm+= include/gtk--/* +BUILDLINK_FILES.gtkmm+= lib/gtkmm/include/* +BUILDLINK_FILES.gtkmm+= lib/libgdkmm.* +BUILDLINK_FILES.gtkmm+= lib/libgtkmm.* + +.include "../../devel/libsigc++/buildlink.mk" +.include "../../x11/gtk/buildlink.mk" + +BUILDLINK_TARGETS.gtkmm= gtkmm-buildlink +BUILDLINK_TARGETS.gtkmm+= gtkmm-buildlink-config-wrapper +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.gtkmm} + +BUILDLINK_CONFIG.gtkmm= ${BUILDLINK_PREFIX.gtkmm}/bin/gtkmm-config +BUILDLINK_CONFIG_WRAPPER.gtkmm= ${BUILDLINK_DIR}/bin/gtkmm-config +REPLACE_BUILDLINK_SED+= \ + -e "s|${BUILDLINK_CONFIG_WRAPPER.gtkmm}|${BUILDLINK_CONFIG.gtkmm}|g" + +.if defined(USE_CONFIG_WRAPPER) +GTKMM_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.gtkmm} +CONFIGURE_ENV+= GTKMM_CONFIG="${GTKMM_CONFIG}" +MAKE_ENV+= GTKMM_CONFIG="${GTKMM_CONFIG}" +.endif + +pre-configure: ${BUILDLINK_TARGETS.gtkmm} +gtkmm-buildlink: _BUILDLINK_USE +gtkmm-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE + +.endif # GTKMM_BUILDLINK_MK |