diff options
author | rh <rh@pkgsrc.org> | 2001-10-06 14:30:05 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 2001-10-06 14:30:05 +0000 |
commit | faef83acd7c856928dbb77305567dc46c8bfa59e (patch) | |
tree | 78b484b91aee19aed3b8139918a25833b7b23641 /www | |
parent | 6ff926e635bee262a383ad1b35a845bd4c12b4da (diff) | |
download | pkgsrc-faef83acd7c856928dbb77305567dc46c8bfa59e.tar.gz |
Buildlinkify. Patches provided in private mail by Eric Gillespie
<epg@pretzelnet.org>
Diffstat (limited to 'www')
-rw-r--r-- | www/glibwww/Makefile | 26 | ||||
-rw-r--r-- | www/glibwww/buildlink.mk | 48 |
2 files changed, 63 insertions, 11 deletions
diff --git a/www/glibwww/Makefile b/www/glibwww/Makefile index 43eb4919138..75a0ddf3920 100644 --- a/www/glibwww/Makefile +++ b/www/glibwww/Makefile @@ -1,20 +1,24 @@ -# $NetBSD: Makefile,v 1.2 2001/02/17 17:22:04 wiz Exp $ +# $NetBSD: Makefile,v 1.3 2001/10/06 14:30:05 rh Exp $ # -DISTNAME= glibwww-0.2 -CATEGORIES= www gnome devel -MASTER_SITES= ${MASTER_SITE_GNOME:=unstable/sources/glibwww/} +DISTNAME= glibwww-0.2 +CATEGORIES= www gnome devel +MASTER_SITES= ${MASTER_SITE_GNOME:=unstable/sources/glibwww/} -MAINTAINER= rh@netbsd.org -HOMEPAGE= http://www.gnome.org/ -COMMENT= event register/unregister functions that use the glib event loop +MAINTAINER= rh@netbsd.org +HOMEPAGE= http://www.gnome.org/ +COMMENT= event register functions that use the glib event loop -DEPENDS+= libwww>=5.2.8:../../www/libwww -DEPENDS+= gnome-libs>=1.2.3:../../x11/gnome-libs +BUILDLINK_DEPENDS.gnome-libs= gnome-libs>=1.2.3 +BUILDLINK_DEPENDS.libwww= libwww>=5.2.8 -GNU_CONFIGURE= YES -USE_LIBTOOL= YES +USE_BUILDLINK_ONLY= YES + +GNU_CONFIGURE= YES +USE_LIBTOOL= YES LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig +.include "../../www/libwww/buildlink.mk" +.include "../../x11/gnome-libs/buildlink.mk" .include "../../mk/bsd.pkg.mk" diff --git a/www/glibwww/buildlink.mk b/www/glibwww/buildlink.mk new file mode 100644 index 00000000000..95e932b9ead --- /dev/null +++ b/www/glibwww/buildlink.mk @@ -0,0 +1,48 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/10/06 14:30:05 rh Exp $ +# +# This Makefile fragment is included by packages that use glibwww. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.glibwww to the dependency pattern +# for the version of glibwww 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(GLIBWWW_BUILDLINK_MK) +GLIBWWW_BUILDLINK_MK= # defined + +.include "../../mk/bsd.buildlink.mk" + +BUILDLINK_DEPENDS.glibwww?= glibwww>=0.2 +DEPENDS+= ${BUILDLINK_DEPENDS.glibwww}:../../www/glibwww + +EVAL_PREFIX+= BUILDLINK_PREFIX.glibwww=glibwww +BUILDLINK_PREFIX.glibwww_DEFAULTS= ${X11PREFIX} +BUILDLINK_FILES.glibwww= include/glibwww/glibwww.h +BUILDLINK_FILES.glibwww+= lib/libglibwww.* + +.include "../../www/libwww/buildlink.mk" +.include "../../x11/gnome-libs/buildlink.mk" + +BUILDLINK_TARGETS.glibwww= glibwww-buildlink +BUILDLINK_TARGETS.glibwww+= glibwww-buildlink-config-wrapper +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.glibwww} + +BUILDLINK_CONFIG.glibwww= ${BUILDLINK_PREFIX.glibwww}/bin/glibwww-config +BUILDLINK_CONFIG_WRAPPER.glibwww= ${BUILDLINK_DIR}/bin/glibwww-config + +.if defined(USE_CONFIG_WRAPPER) +GLIBWWW_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.glibwww} +CONFIGURE_ENV+= GLIBWWW_CONFIG="${GLIBWWW_CONFIG}" +MAKE_ENV+= GLIBWWW_CONFIG="${GLIBWWW_CONFIG}" +.endif + +pre-configure: ${BUILDLINK_TARGETS.glibwww} +glibwww-buildlink: _BUILDLINK_USE +glibwww-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE + +.endif # GLIBWWW_BUILDLINK_MK |