summaryrefslogtreecommitdiff
path: root/audio/libsidplay
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-06-26 18:09:19 +0000
committerjlam <jlam@pkgsrc.org>2001-06-26 18:09:19 +0000
commitd29efbaceb4da17f8aa59e42d97d90201828465b (patch)
tree62c5007fa3a6a453cfdaa9765429be9b08142d7d /audio/libsidplay
parent966a6f281a6dd68854c2fc1874aaef270349f066 (diff)
downloadpkgsrc-d29efbaceb4da17f8aa59e42d97d90201828465b.tar.gz
Add buildlink.mk file for use by other package Makefiles.
Diffstat (limited to 'audio/libsidplay')
-rw-r--r--audio/libsidplay/buildlink.mk33
1 files changed, 33 insertions, 0 deletions
diff --git a/audio/libsidplay/buildlink.mk b/audio/libsidplay/buildlink.mk
new file mode 100644
index 00000000000..2964e7275e8
--- /dev/null
+++ b/audio/libsidplay/buildlink.mk
@@ -0,0 +1,33 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/06/26 18:09:19 jlam Exp $
+#
+# This Makefile fragment is included by packages that use libsidplay.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.libsidplay to the dependency pattern
+# for the version of libsidplay 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(LIBSIDPLAY_BUILDLINK_MK)
+LIBSIDPLAY_BUILDLINK_MK= # defined
+
+BUILDLINK_DEPENDS.libsidplay?= libsidplay>=1.36.38
+DEPENDS+= ${BUILDLINK_DEPENDS.libsidplay}:../../audio/libsidplay
+
+BUILDLINK_PREFIX.libsidplay= ${LOCALBASE}
+BUILDLINK_FILES.libsidplay= include/sidplay/*
+BUILDLINK_FILES.libsidplay+= lib/libsidplay.*
+
+BUILDLINK_TARGETS.libsidplay= libsidplay-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libsidplay}
+
+pre-configure: ${BUILDLINK_TARGETS.libsidplay}
+libsidplay-buildlink: _BUILDLINK_USE
+
+.include "../../mk/bsd.buildlink.mk"
+
+.endif # LIBSIDPLAY_BUILDLINK_MK