Subject: pkg/14204: Buildlinkify x11/gtk--
To: None <gnats-bugs@gnats.netbsd.org>
From: Eric Gillespie, Jr. <epg@pretzelnet.org>
List: netbsd-bugs
Date: 10/09/2001 23:12:16
>Number: 14204
>Category: pkg
>Synopsis: Buildlinkify x11/gtk--
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Oct 09 21:11:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Eric Gillespie Jr.
>Release: NetBSD 1.5.1
>Organization:
>Environment:
System: NetBSD trantor.pretzelnet.org 1.5.2 NetBSD 1.5.2 (TRANTOR) #0: Sun Sep 23 03:08:13 EST 2001 epg@trantor.pretzelnet.org:/u/src/sys/arch/i386/compile/TRANTOR i386
>Description:
This depends on PR14203 (Buildlinkify libsigc++).
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/x11/gtk--/Makefile,v
retrieving revision 1.17
diff -a -u -r1.17 Makefile
--- Makefile 2001/04/24 17:27:57 1.17
+++ Makefile 2001/10/10 03:51:49
@@ -13,9 +13,10 @@
COMMENT= C++ wrapper for the gimp toolkit (gtk++)
BUILD_DEPENDS+= m4-1.4:../../devel/m4
-DEPENDS+= gtk+>=1.2.7:../../x11/gtk
-DEPENDS+= libsigc++>=1.0.1:../../devel/libsigc++
+USE_BUILDLINK_ONLY= YES
+REPLACE_BUILDLINK= gtkmm-config
+
USE_X11BASE= YES
GNU_CONFIGURE= YES
@@ -32,4 +33,7 @@
${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"
*******************************************************************************
# $NetBSD$
#
# This Makefile fragment is included by packages that use gtk--.
#
# To use this Makefile fragment, simply:
#
# (1) Optionally define BUILDLINK_DEPENDS.gtk-- to the dependency
# pattern for the version of gtk-- 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=gtk--
BUILDLINK_PREFIX.gtkmm_DEFAULTS= ${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
.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
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: