Subject: pkg/14203: Buildlinkify libsigc++
To: None <gnats-bugs@gnats.netbsd.org>
From: Eric Gillespie, Jr. <epg@pretzelnet.org>
List: netbsd-bugs
Date: 10/09/2001 23:03:13
>Number: 14203
>Category: pkg
>Synopsis: Buildlinkify libsigc++
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Oct 09 21:02: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:
Here is a patch and buildlink.mk for libsigc++.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/libsigc++/Makefile,v
retrieving revision 1.5
diff -a -u -r1.5 Makefile
--- Makefile 2001/04/24 19:36:23 1.5
+++ Makefile 2001/10/10 03:51:05
@@ -11,6 +11,7 @@
GNU_CONFIGURE= YES
CONFIGURE_ARG= --disable-threads
+USE_BUILDLINK_ONLY= YES
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/scripts/ltconfig
*******************************************************************************
# $NetBSD$
#
# This Makefile fragment is included by packages that use libsigc++.
#
# To use this Makefile fragment, simply:
#
# (1) Optionally define BUILDLINK_DEPENDS.gkd-pixbuf to the dependency version
# for the version of libsigc++ 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(LIBSIGCXX_BUILDLINK_MK)
LIBSIGCXX_BUILDLINK_MK= # defined
.include "../../mk/bsd.buildlink.mk"
BUILDLINK_DEPENDS.libsigcxx?= libsigc++>=0.4
DEPENDS+= ${BUILDLINK_DEPENDS.libsigcxx}:../../textproc/libsigc++
EVAL_PREFIX+= BUILDLINK_PREFIX.libsigcxx=libsigc++
BUILDLINK_PREFIX.libsigcxx_DEFAULT= ${LOCALBASE}
BUILDLINK_FILES.libsigcxx= include/sigc++/*
BUILDLINK_FILES.libsigcxx+= lib/sigc++/include/sigc++config.h
BUILDLINK_FILES.libsigcxx+= lib/libsigc.*
BUILDLINK_TARGETS.libsigcxx= libsigcxx-buildlink
BUILDLINK_TARGETS.libsigcxx+= libsigcxx-buildlink-config-wrapper
BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libsigcxx}
BUILDLINK_CONFIG.libsigcxx= \
${BUILDLINK_PREFIX.libsigcxx}/bin/sigc-config
BUILDLINK_CONFIG_WRAPPER.libsigcxx= \
${BUILDLINK_DIR}/bin/sigc-config
REPLACE_BUILDLINK_SED+= \
-e "s|${BUILDLINK_CONFIG_WRAPPER.libsigcxx}|${BUILDLINK_CONFIG.libsigcxx}|g"
.if defined(USE_CONFIG_WRAPPER)
SIGC_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.libsigcxx}
CONFIGURE_ENV+= SIGC_CONFIG="${SIGC_CONFIG}"
MAKE_ENV+= SIGC_CONFIG="${SIGC_CONFIG}"
.endif
pre-configure: ${BUILDLINK_TARGETS.libsigcxx}
libsigcxx-buildlink: _BUILDLINK_USE
libsigcxx-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE
.endif # LIBSIGCXX_BUILDLINK_MK
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: