diff options
author | jlam <jlam> | 2001-07-02 08:06:16 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-07-02 08:06:16 +0000 |
commit | 36f6f2def98e538e9e4ca890ddd3c44f88967ee9 (patch) | |
tree | 5d9871bc71ceb5c5868ac86e9964f7395de18e8b /graphics/freetype2 | |
parent | 9dfd4d11473af464ccb1d7720252bfe42e2ecc43 (diff) | |
download | pkgsrc-36f6f2def98e538e9e4ca890ddd3c44f88967ee9.tar.gz |
Handle case where freetype2 is installed as part of XFree86. Also remove
unnecessary inclusion of gettext-lib/buildlink.mk.
Diffstat (limited to 'graphics/freetype2')
-rw-r--r-- | graphics/freetype2/buildlink.mk | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/graphics/freetype2/buildlink.mk b/graphics/freetype2/buildlink.mk index 825cd728825..a2ae6ca7a25 100644 --- a/graphics/freetype2/buildlink.mk +++ b/graphics/freetype2/buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink.mk,v 1.4 2001/07/02 05:33:59 jlam Exp $ +# $NetBSD: buildlink.mk,v 1.5 2001/07/02 08:06:16 jlam Exp $ # # This Makefile fragment is included by packages that use freetype2. # @@ -17,10 +17,18 @@ FREETYPE2_BUILDLINK_MK= # defined .include "../../mk/bsd.buildlink.mk" -BUILDLINK_DEPENDS.freetype2?= freetype2>=2.0.3 -DEPENDS+= ${BUILDLINK_DEPENDS.freetype2}:../../graphics/freetype2 +BUILDLINK_DEPENDS.freetype2?= freetype2>=2.0.1 +CHECK_FREETYPE2= # defined + +.include "../../mk/bsd.prefs.mk" +.if ${HAVE_BUILTIN_FREETYPE2} == "NO" +DEPENDS+= ${BUILDLINK_DEPENDS.freetype2}:../../graphics/freetype2 BUILDLINK_PREFIX.freetype2= ${LOCALBASE} +.else +BUILDLINK_PREFIX.freetype2= ${X11BASE} +.endif + BUILDLINK_FILES.freetype2= include/ft2build.h BUILDLINK_FILES.freetype2+= include/freetype2/freetype/* BUILDLINK_FILES.freetype2+= include/freetype2/freetype/cache/* @@ -28,13 +36,13 @@ 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+= ${BUILDLINK_TARGETS.freetype2} BUILDLINK_TARGETS.freetype2= freetype2-buildlink + +.if ${HAVE_BUILTIN_FREETYPE2} == "NO" BUILDLINK_TARGETS.freetype2+= freetype2-buildlink-config-wrapper -BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.freetype2} -BUILDLINK_CONFIG.freetype2= ${LOCALBASE}/bin/freetype-config +BUILDLINK_CONFIG.freetype2= ${LOCALBASE}/bin/freetype-config BUILDLINK_CONFIG_WRAPPER.freetype2= ${BUILDLINK_DIR}/bin/freetype-config .if defined(USE_CONFIG_WRAPPER) && defined(GNU_CONFIGURE) @@ -42,8 +50,10 @@ FREETYPE_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.freetype2} CONFIGURE_ENV+= FREETYPE_CONFIG="${FREETYPE_CONFIG}" .endif +freetype2-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE +.endif # HAVE_BUILTIN_FREETYPE + pre-configure: ${BUILDLINK_TARGETS.freetype2} freetype2-buildlink: _BUILDLINK_USE -freetype2-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE .endif # FREETYPE2_BUILDLINK_MK |