diff options
author | rh <rh@pkgsrc.org> | 2001-10-06 12:43:08 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 2001-10-06 12:43:08 +0000 |
commit | 46204338b7723be7f70a3739cbfb6bbd1ad16939 (patch) | |
tree | 49885456e6e5aae6d1f6b3e8127e21be0f316031 /textproc | |
parent | 7f74d5499e1774ba47ebfc7d769a7594a868d0de (diff) | |
download | pkgsrc-46204338b7723be7f70a3739cbfb6bbd1ad16939.tar.gz |
Buildlinkify. Patches provided in private mail by Eric Gillespie
<epg@pretzelnet.org>
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/libunicode/Makefile | 19 | ||||
-rw-r--r-- | textproc/libunicode/buildlink.mk | 49 |
2 files changed, 59 insertions, 9 deletions
diff --git a/textproc/libunicode/Makefile b/textproc/libunicode/Makefile index e88ef2fe3ec..76d296615c7 100644 --- a/textproc/libunicode/Makefile +++ b/textproc/libunicode/Makefile @@ -1,16 +1,17 @@ -# $NetBSD: Makefile,v 1.2 2001/02/17 17:37:32 wiz Exp $ +# $NetBSD: Makefile,v 1.3 2001/10/06 12:43:08 rh Exp $ # -DISTNAME= libunicode-0.4 -CATEGORIES= textproc devel -MASTER_SITES= ${MASTER_SITE_GNOME:=unstable/sources/libunicode/} +DISTNAME= libunicode-0.4 +CATEGORIES= textproc devel +MASTER_SITES= ${MASTER_SITE_GNOME:=unstable/sources/libunicode/} -MAINTAINER= rh@netbsd.org -HOMEPAGE= http://www.pango.org/ -COMMENT= library for manipulating Unicode characters and strings +MAINTAINER= rh@netbsd.org +HOMEPAGE= http://www.pango.org/ +COMMENT= library for manipulating Unicode characters and strings -GNU_CONFIGURE= YES -USE_LIBTOOL= YES +USE_BUILDLINK_ONLY= YES +GNU_CONFIGURE= YES +USE_LIBTOOL= YES LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig diff --git a/textproc/libunicode/buildlink.mk b/textproc/libunicode/buildlink.mk new file mode 100644 index 00000000000..66d9af27617 --- /dev/null +++ b/textproc/libunicode/buildlink.mk @@ -0,0 +1,49 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/10/06 12:43:08 rh Exp $ +# +# This Makefile fragment is included by packages that use libunicode. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.gkd-pixbuf to the dependency version +# for the version of libunicode 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(LIBUNICODE_BUILDLINK_MK) +LIBUNICODE_BUILDLINK_MK= # defined + +.include "../../mk/bsd.buildlink.mk" + +BUILDLINK_DEPENDS.libunicode?= libunicode>=0.4 +DEPENDS+= ${BUILDLINK_DEPENDS.libunicode}:../../textproc/libunicode + +EVAL_PREFIX+= BUILDLINK_PREFIX.libunicode=libunicode +BUILDLINK_PREFIX.libunicode_DEFAULT= ${LOCALBASE} +BUILDLINK_FILES.libunicode= include/unicode.h +BUILDLINK_FILES.libunicode+= lib/libunicode.* + +BUILDLINK_TARGETS.libunicode= libunicode-buildlink +BUILDLINK_TARGETS.libunicode+= libunicode-buildlink-config-wrapper +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libunicode} + +BUILDLINK_CONFIG.libunicode= \ + ${BUILDLINK_PREFIX.libunicode}/bin/unicode-config +BUILDLINK_CONFIG_WRAPPER.libunicode= \ + ${BUILDLINK_DIR}/bin/unicode-config +REPLACE_BUILDLINK_SED+= \ + -e "s|${BUILDLINK_CONFIG_WRAPPER.libunicode}|${BUILDLINK_CONFIG.libunicode}|g" + +.if defined(USE_CONFIG_WRAPPER) +LIBUNICODE_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.libunicode} +CONFIGURE_ENV+= LIBUNICODE_CONFIG="${LIBUNICODE_CONFIG}" +MAKE_ENV+= LIBUNICODE_CONFIG="${LIBUNICODE_CONFIG}" +.endif + +pre-configure: ${BUILDLINK_TARGETS.libunicode} +libunicode-buildlink: _BUILDLINK_USE +libunicode-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE + +.endif # LIBUNICODE_BUILDLINK_MK |