diff options
author | wiz <wiz> | 2001-10-21 12:46:24 +0000 |
---|---|---|
committer | wiz <wiz> | 2001-10-21 12:46:24 +0000 |
commit | 1ef7077e961fccf98ee5943895ba648cbedb2a0f (patch) | |
tree | a6e9c9f462ae8d1b067de8d373412b18f6b2f486 /devel/libsigc++ | |
parent | ae824deb54365b842051b649e180ecee1eefdc8b (diff) | |
download | pkgsrc-1ef7077e961fccf98ee5943895ba648cbedb2a0f.tar.gz |
Mark USE_BUILDLINK_ONLY, and add buildlink.mk.
Nearly as in pkg/14203 by Eric Gillespie, Jr.
Diffstat (limited to 'devel/libsigc++')
-rw-r--r-- | devel/libsigc++/Makefile | 3 | ||||
-rw-r--r-- | devel/libsigc++/buildlink.mk | 50 |
2 files changed, 52 insertions, 1 deletions
diff --git a/devel/libsigc++/Makefile b/devel/libsigc++/Makefile index b0956874bec..a0ea3dccea8 100644 --- a/devel/libsigc++/Makefile +++ b/devel/libsigc++/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2001/04/24 19:36:23 rh Exp $ +# $NetBSD: Makefile,v 1.6 2001/10/21 12:46:24 wiz Exp $ DISTNAME= libsigc++-1.0.3 CATEGORIES= devel @@ -11,6 +11,7 @@ COMMENT= libsigc++ is provides a callback system for C++ programs GNU_CONFIGURE= YES CONFIGURE_ARG= --disable-threads +USE_BUILDLINK_ONLY= YES USE_LIBTOOL= YES LTCONFIG_OVERRIDE= ${WRKSRC}/scripts/ltconfig diff --git a/devel/libsigc++/buildlink.mk b/devel/libsigc++/buildlink.mk new file mode 100644 index 00000000000..bc25570d084 --- /dev/null +++ b/devel/libsigc++/buildlink.mk @@ -0,0 +1,50 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/10/21 12:46:24 wiz Exp $ +# +# This Makefile fragment is included by packages that use libsigc++. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.libsigc++ 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 |