diff options
author | rh <rh@pkgsrc.org> | 2001-10-01 13:34:49 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 2001-10-01 13:34:49 +0000 |
commit | 98ee18b0e2f3c676fa5da65ed65602a705f4af8b (patch) | |
tree | 2e5974f395bff2d84d7ad427424cbb6391c701cf /devel | |
parent | c01da1bf2aab0979263d2c819684640062270fb4 (diff) | |
download | pkgsrc-98ee18b0e2f3c676fa5da65ed65602a705f4af8b.tar.gz |
buildlinkify
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libole2/Makefile | 21 | ||||
-rw-r--r-- | devel/libole2/buildlink.mk | 47 |
2 files changed, 57 insertions, 11 deletions
diff --git a/devel/libole2/Makefile b/devel/libole2/Makefile index 2b35516780f..12808de95bd 100644 --- a/devel/libole2/Makefile +++ b/devel/libole2/Makefile @@ -1,19 +1,18 @@ -# $NetBSD: Makefile,v 1.7 2001/05/22 06:05:41 rh Exp $ +# $NetBSD: Makefile,v 1.8 2001/10/01 13:34:49 rh Exp $ # -DISTNAME= libole2-0.2.3 -CATEGORIES= devel gnome -MASTER_SITES= ${MASTER_SITE_GNOME:=unstable/sources/libole2/} +DISTNAME= libole2-0.2.3 +CATEGORIES= devel gnome +MASTER_SITES= ${MASTER_SITE_GNOME:=unstable/sources/libole2/} -MAINTAINER= rh@netbsd.org -HOMEPAGE= http://www.gnome.org/ -COMMENT= OLE2 streams parsing library for GNOME +MAINTAINER= rh@netbsd.org +HOMEPAGE= http://www.gnome.org/ +COMMENT= OLE2 streams parsing library for GNOME -DEPENDS+= glib>=1.2.8:../../devel/glib - -GNU_CONFIGURE= YES -USE_LIBTOOL= YES +GNU_CONFIGURE= YES +USE_LIBTOOL= YES LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig +.include "../../devel/glib/buildlink.mk" .include "../../mk/bsd.pkg.mk" diff --git a/devel/libole2/buildlink.mk b/devel/libole2/buildlink.mk new file mode 100644 index 00000000000..eb776303627 --- /dev/null +++ b/devel/libole2/buildlink.mk @@ -0,0 +1,47 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/10/01 13:34:49 rh Exp $ +# +# This Makefile fragment is included by packages that use libole2. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.libole2 to the dependency pattern +# for the version of libole2 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(LIBOLE2_BUILDLINK_MK) +LIBOLE2_BUILDLINK_MK= # defined + +.include "../../mk/bsd.buildlink.mk" + +BUILDLINK_DEPENDS.libole2?= libole2>=0.2.3 +DEPENDS+= ${BUILDLINK_DEPENDS.libole2}:../../devel/libole2 + +EVAL_PREFIX+= BUILDLINK_PREFIX.libole2=libole2 +BUILDLINK_PREFIX.libole2_DEFAULT= ${LOCALBASE} +BUILDLINK_FILES.libole2+= include/libole2/* +BUILDLINK_FILES.libole2+= lib/libgnomeole2.* + +.include "../../devel/glib/buildlink.mk" + +BUILDLINK_TARGETS.libole2= libole2-buildlink +BUILDLINK_TARGETS.libole2+= libole2-buildlink-config-wrapper +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libole2} + +BUILDLINK_CONFIG.libole2= ${BUILDLINK_PREFIX.libole2}/lib/libole2Conf.sh +BUILDLINK_CONFIG_WRAPPER.libole2= ${BUILDLINK_DIR}/lib/libole2Conf.sh + +.if defined(USE_CONFIG_WRAPPER) +LIBOLE2_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.libole2} +CONFIGURE_ENV+= LIBOLE2_CONFIG="${LIBOLE2_CONFIG}" +MAKE_ENV+= LIBOLE2_CONFIG="${LIBOLE2_CONFIG}" +.endif + +pre-configure: ${BUILDLINK_TARGETS.libole2} +libole2-buildlink: _BUILDLINK_USE +libole2-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE + +.endif # LIBOLE2_BUILDLINK_MK |