summaryrefslogtreecommitdiff
path: root/audio/wsoundserver
diff options
context:
space:
mode:
authorjlam <jlam>2001-07-24 10:51:18 +0000
committerjlam <jlam>2001-07-24 10:51:18 +0000
commitdc99126daff57fceb243eb2778cc29f32f475420 (patch)
tree47815e9cd3f8828399ed84f97d59a23b6b4625a5 /audio/wsoundserver
parent86f849015d95772018e7a670b31cdbf12bb6d500 (diff)
downloadpkgsrc-dc99126daff57fceb243eb2778cc29f32f475420.tar.gz
Add buildlink.mk file for use by other package Makefiles.
Diffstat (limited to 'audio/wsoundserver')
-rw-r--r--audio/wsoundserver/buildlink.mk49
1 files changed, 49 insertions, 0 deletions
diff --git a/audio/wsoundserver/buildlink.mk b/audio/wsoundserver/buildlink.mk
new file mode 100644
index 00000000000..a6d5a3be8b0
--- /dev/null
+++ b/audio/wsoundserver/buildlink.mk
@@ -0,0 +1,49 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/07/24 10:51:18 jlam Exp $
+#
+# This Makefile fragment is included by packages that use wsound.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.wsound to the dependency pattern
+# for the version of wsound 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(WSOUND_BUILDLINK_MK)
+WSOUND_BUILDLINK_MK= # defined
+
+.include "../../mk/bsd.buildlink.mk"
+
+BUILDLINK_DEPENDS.wsound?= wsoundserver>=0.4.0
+DEPENDS+= ${BUILDLINK_DEPENDS.wsound}:../../audio/wsoundserver
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.wsound=wsoundserver
+BUILDLINK_FILES.wsound= include/wsound.h
+BUILDLINK_FILES.wsound+= lib/libwsound.*
+
+.include "../../audio/libaudiofile/buildlink.mk"
+.include "../../devel/libproplist/buildlink.mk"
+
+BUILDLINK_TARGETS.wsound= wsound-buildlink
+BUILDLINK_TARGETS.wsound+= wsound-buildlink-config-wrapper
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.wsound}
+
+BUILDLINK_CONFIG.wsound= \
+ ${BUILDLINK_PREFIX.wsound}/bin/get-wsound-flags
+BUILDLINK_CONFIG_WRAPPER.wsound= \
+ ${BUILDLINK_DIR}/bin/get-wsound-flags
+
+.if defined(USE_CONFIG_WRAPPER)
+GET_WSOUND_FLAGS?= ${BUILDLINK_CONFIG_WRAPPER.wsound}
+CONFIGURE_ENV+= GET_WSOUND_FLAGS="${GET_WSOUND_FLAGS}"
+MAKE_ENV+= GET_WSOUND_FLAGS="${GET_WSOUND_FLAGS}"
+.endif
+
+pre-configure: ${BUILDLINK_TARGETS.wsound}
+wsound-buildlink: _BUILDLINK_USE
+wsound-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE
+
+.endif # WSOUND_BUILDLINK_MK