diff options
author | zuntum <zuntum> | 2002-01-21 15:43:46 +0000 |
---|---|---|
committer | zuntum <zuntum> | 2002-01-21 15:43:46 +0000 |
commit | c2b4b74c3f212144c7774f1f2441780eadcaea59 (patch) | |
tree | c3dc1a55790266372e9eb3073ad2249a6da75d31 /misc | |
parent | 910259fb38ee89d6ebdbba03d0a57ff4c62e2cc6 (diff) | |
download | pkgsrc-c2b4b74c3f212144c7774f1f2441780eadcaea59.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 |