diff options
author | zuntum <zuntum@pkgsrc.org> | 2001-06-26 22:02:26 +0000 |
---|---|---|
committer | zuntum <zuntum@pkgsrc.org> | 2001-06-26 22:02:26 +0000 |
commit | bbc0369e36adf69aba7fa7c3a5c9d75210d5ec4a (patch) | |
tree | 3319fa214e661d7fa54324b2da4f61101f532756 /graphics | |
parent | 7bd7092570fc2736d5764e486306c9ffc557c787 (diff) | |
download | pkgsrc-bbc0369e36adf69aba7fa7c3a5c9d75210d5ec4a.tar.gz |
o convert build to use buildlink.mk files, set USE_BUILDLINK_ONLY
o fix BUILDLINK_FILES.freetype2 in buildlink.mk, so it now works properly
o provide freetype-config config wrapper
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/freetype2/Makefile | 5 | ||||
-rw-r--r-- | graphics/freetype2/buildlink.mk | 16 |
2 files changed, 18 insertions, 3 deletions
diff --git a/graphics/freetype2/Makefile b/graphics/freetype2/Makefile index 5c452211d8b..2259105aeb8 100644 --- a/graphics/freetype2/Makefile +++ b/graphics/freetype2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2001/06/26 21:30:13 zuntum Exp $ +# $NetBSD: Makefile,v 1.7 2001/06/26 22:02:26 zuntum Exp $ # DISTNAME= freetype-2.0.3 @@ -15,6 +15,9 @@ MAINTAINER= rh@netbsd.org HOMEPAGE= http://www.freetype.org/ COMMENT= font rendering engine and library API +USE_BUILDLINK_ONLY= YES +USE_CONFIG_WRAPPER= YES +REPLACE_BUILDLINK= freetype-config CHECK_FREETYPE2= YES USE_GMAKE= YES GNU_CONFIGURE= YES diff --git a/graphics/freetype2/buildlink.mk b/graphics/freetype2/buildlink.mk index d39e313b52f..881b71f9cd2 100644 --- a/graphics/freetype2/buildlink.mk +++ b/graphics/freetype2/buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink.mk,v 1.1 2001/06/26 21:39:30 zuntum Exp $ +# $NetBSD: buildlink.mk,v 1.2 2001/06/26 22:02:26 zuntum Exp $ # # This Makefile fragment is included by packages that use freetype2. # @@ -20,16 +20,28 @@ DEPENDS+= ${BUILDLINK_DEPENDS.freetype2}:../../graphics/freetype2 BUILDLINK_PREFIX.freetype2= ${LOCALBASE} BUILDLINK_FILES.freetype2= include/ft2build.h -BUILDLINK_FILES.freetype2+= include/freetype2/freetype/*/* +BUILDLINK_FILES.freetype2+= include/freetype2/freetype/* +BUILDLINK_FILES.freetype2+= include/freetype2/freetype/cache/* +BUILDLINK_FILES.freetype2+= include/freetype2/freetype/config/* +BUILDLINK_FILES.freetype2+= include/freetype2/freetype/internal/* BUILDLINK_FILES.freetype2+= lib/libfreetype.* .include "../../devel/gettext-lib/buildlink.mk" BUILDLINK_TARGETS.freetype2= freetype2-buildlink +BUILDLINK_TARGETS.freetype2+= freetype2-buildlink-config-wrapper BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.freetype2} +BUILDLINK_CONFIG.freetype2= ${LOCALBASE}/bin/freetype-config +BUILDLINK_CONFIG_WRAPPER.freetype2= ${BUILDLINK_DIR}/bin/freetype-config + +.if defined(USE_CONFIG_WRAPPER) && defined(GNU_CONFIGURE) +CONFIGURE_ENV+= FREETYPE_CONFIG="${BUILDLINK_CONFIG_WRAPPER.freetype2}" +.endif + pre-configure: ${BUILDLINK_TARGETS.freetype2} freetype2-buildlink: _BUILDLINK_USE +freetype2-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE .include "../../mk/bsd.buildlink.mk" |