Subject: pkg/15318: misc/libdvdread doesn't support buildlink.mk
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dave@dtsp.co.nz>
List: netbsd-bugs
Date: 01/21/2002 01:31:03
>Number: 15318
>Category: pkg
>Synopsis: misc/libdvdread doesn't support buildlink.mk
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 20 17:20:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: David Sainty
>Release: NetBSD 1.5X
>Organization:
Dynamic Technology Services and Products Ltd (NZ)
>Environment:
System: NetBSD tequila.dave.dtsp.co.nz 1.5X NetBSD 1.5X (TEQUILA) #0: Sat Dec 1 17:24:03 NZDT 2001 dave@tequila.dave.dtsp.co.nz:/vol/tequila/userD/NetBSD-tequila/src/sys/arch/i386/compile/TEQUILA i386
Architecture: i386
Machine: i386
>Description:
There is no buildlink.mk file for misc/libdvdread, but it is useful to
have one...
>How-To-Repeat:
Attempt to link in libdvdread into a package that prefers to use
buildlink.mk files.
>Fix:
--- /dev/null Mon Jan 21 01:21:49 2002
+++ misc/libdvdread/buildlink.mk Mon Jan 21 01:17:38 2002
@@ -0,0 +1,34 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/12/26 00:32:01 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
>Release-Note:
>Audit-Trail:
>Unformatted: