diff options
author | zuntum <zuntum@pkgsrc.org> | 2002-01-21 15:43:46 +0000 |
---|---|---|
committer | zuntum <zuntum@pkgsrc.org> | 2002-01-21 15:43:46 +0000 |
commit | 138efd0bc9114ffb863f402b83bcbc8b9688488e (patch) | |
tree | c3dc1a55790266372e9eb3073ad2249a6da75d31 /misc | |
parent | 90bce7a6d5cb9f9c4211efa9c3c1769d2f1c7da8 (diff) | |
download | pkgsrc-138efd0bc9114ffb863f402b83bcbc8b9688488e.tar.gz |
Add buildlink.mk file for use by other packages,
fixes pkg/15318 by David Sainty <dave@dtsp.co.nz>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/libdvdread/buildlink.mk | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/misc/libdvdread/buildlink.mk b/misc/libdvdread/buildlink.mk new file mode 100644 index 00000000000..1ab5ef92010 --- /dev/null +++ b/misc/libdvdread/buildlink.mk @@ -0,0 +1,34 @@ +# $NetBSD: buildlink.mk,v 1.1 2002/01/21 15:43:46 zuntum Exp $ +# +# This Makefile fragment is included by packages that use libdvdread. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.libdvdread to the dependency pattern +# for the version of libdvdread 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(LIBDVDREAD_BUILDLINK_MK) +LIBDVDREAD_BUILDLINK_MK= # defined + +.include "../../mk/bsd.buildlink.mk" + +BUILDLINK_DEPENDS.libdvdread?= libdvdread>=0.9.2 +DEPENDS+= ${BUILDLINK_DEPENDS.libdvdread}:../../misc/libdvdread + +EVAL_PREFIX+= BUILDLINK_PREFIX.libdvdread=libdvdread +BUILDLINK_PREFIX.libdvdread= ${LOCALBASE} +BUILDLINK_FILES.libdvdread= include/dvdread/* +BUILDLINK_FILES.libdvdread+= lib/libdvdread.* + +BUILDLINK_TARGETS.libdvdread= libdvdread-buildlink +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libdvdread} + +pre-configure: ${BUILDLINK_TARGETS.libdvdread} +libdvdread-buildlink: _BUILDLINK_USE + +.endif # LIBDVDREAD_BUILDLINK_MK |