diff options
author | fredb <fredb@pkgsrc.org> | 2002-05-28 00:05:08 +0000 |
---|---|---|
committer | fredb <fredb@pkgsrc.org> | 2002-05-28 00:05:08 +0000 |
commit | 9201eb9bc0705f81e8f15aed73b593e08596df96 (patch) | |
tree | 08d847dfb9a87b717d16117ccfb86aa79362e970 /audio/mad | |
parent | 95845032e3cc8615b20282ea856f348ce744fb6e (diff) | |
download | pkgsrc-9201eb9bc0705f81e8f15aed73b593e08596df96.tar.gz |
Add mad/buildlink.mk, for programs that wish to use "libmad".
Diffstat (limited to 'audio/mad')
-rw-r--r-- | audio/mad/buildlink.mk | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/audio/mad/buildlink.mk b/audio/mad/buildlink.mk new file mode 100644 index 00000000000..8423d9ad218 --- /dev/null +++ b/audio/mad/buildlink.mk @@ -0,0 +1,39 @@ +# $NetBSD: buildlink.mk,v 1.1 2002/05/28 00:05:08 fredb Exp $ +# +# This Makefile fragment is included by packages that use mad. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.mad to the dependency pattern +# for the version of mad 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(MAD_BUILDLINK_MK) +MAD_BUILDLINK_MK= # defined + +.include "../../mk/bsd.buildlink.mk" + +BUILDLINK_DEPENDS.mad?= mad>=0.14.2b +DEPENDS+= ${BUILDLINK_DEPENDS.mad}:../../audio/mad + +BUILDLINK_PREFIX.mad= ${LOCALBASE} +BUILDLINK_FILES.mad= include/id3tag.h +BUILDLINK_FILES.mad+= include/mad.h +BUILDLINK_FILES.mad+= lib/libid3tag.* +BUILDLINK_FILES.mad+= lib/libmad.* + +#.include "../../audio/libaudiofile/buildlink.mk" +.include "../../audio/esound/buildlink.mk" +.include "../../devel/gettext-lib/buildlink.mk" + +BUILDLINK_TARGETS.mad= mad-buildlink +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.mad} + +pre-configure: ${BUILDLINK_TARGETS.mad} +mad-buildlink: _BUILDLINK_USE + +.endif # MAD_BUILDLINK_MK |