diff options
author | zuntum <zuntum@pkgsrc.org> | 2001-06-26 09:54:07 +0000 |
---|---|---|
committer | zuntum <zuntum@pkgsrc.org> | 2001-06-26 09:54:07 +0000 |
commit | f225ec694486a936fa0f41431e8e89aa544e33e4 (patch) | |
tree | 8eb98e2c386de73fe04f42f9ffb6026b77a2ace3 /devel/SDL_ttf | |
parent | 79109b471085156ec66ead0875e94588cd530728 (diff) | |
download | pkgsrc-f225ec694486a936fa0f41431e8e89aa544e33e4.tar.gz |
o add buildlink.mk file for use by other packages
o convert build process to use buildlink.mk files
Diffstat (limited to 'devel/SDL_ttf')
-rw-r--r-- | devel/SDL_ttf/Makefile | 13 | ||||
-rw-r--r-- | devel/SDL_ttf/buildlink.mk | 35 |
2 files changed, 42 insertions, 6 deletions
diff --git a/devel/SDL_ttf/Makefile b/devel/SDL_ttf/Makefile index 937793a63f7..1b6ca94ddf5 100644 --- a/devel/SDL_ttf/Makefile +++ b/devel/SDL_ttf/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2001/06/25 22:47:18 zuntum Exp $ +# $NetBSD: Makefile,v 1.4 2001/06/26 09:54:07 zuntum Exp $ # DISTNAME= SDL_ttf-1.2.2 @@ -9,13 +9,14 @@ MAINTAINER= zuntum@netbsd.org HOMEPAGE= http://www.libsdl.org/projects/SDL_ttf/ COMMENT= use TrueType fonts in your SDL applications -DEPENDS+= SDL>=1.0.1:../../devel/SDL - -GNU_CONFIGURE= YES -USE_LIBTOOL= YES +USE_BUILDLINK_ONLY= YES +USE_CONFIG_WRAPPER= YES +GNU_CONFIGURE= YES +USE_LIBTOOL= YES LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig -CONFIGURE_ENV+= CFLAGS="-DFREETYPE_HDR_DIRECTORY" +CONFIGURE_ENV+= CFLAGS="-DFREETYPE_HDR_DIRECTORY" +.include "../../devel/SDL/buildlink.mk" .include "../../graphics/freetype-lib/buildlink.mk" .include "../../mk/bsd.pkg.mk" diff --git a/devel/SDL_ttf/buildlink.mk b/devel/SDL_ttf/buildlink.mk new file mode 100644 index 00000000000..6e5b1de95d5 --- /dev/null +++ b/devel/SDL_ttf/buildlink.mk @@ -0,0 +1,35 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/06/26 09:54:07 zuntum Exp $ +# +# This Makefile fragment is included by packages that use SDL_ttf. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.SDL_ttf to the dependency pattern +# for the version of SDL_ttf 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(SDL_ttf_BUILDLINK_MK) +SDL_ttf_BUILDLINK_MK= # defined + +BUILDLINK_DEPENDS.SDL_ttf?= SDL_ttf>=1.2.2 +DEPENDS+= ${BUILDLINK_DEPENDS.SDL_ttf}:../../devel/SDL_ttf + +BUILDLINK_PREFIX.SDL_ttf= ${LOCALBASE} +BUILDLINK_FILES.SDL_ttf= include/SDL/SDL_ttf.h +BUILDLINK_FILES.SDL_ttf+= lib/libSDL_ttf.* + +.include "../../devel/SDL/buildlink.mk" + +BUILDLINK_TARGETS.SDL_ttf= SDL_ttf-buildlink +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.SDL_ttf} + +pre-configure: ${BUILDLINK_TARGETS.SDL_ttf} +SDL_ttf-buildlink: _BUILDLINK_USE + +.include "../../mk/bsd.buildlink.mk" + +.endif # SDL_ttf_BUILDLINK_MK |