summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2001-07-24 10:13:38 +0000
committerjlam <jlam>2001-07-24 10:13:38 +0000
commit9aa6e16cc475e6f37f2b3d4089132ad6a4a0724b (patch)
treedf4a06c2f24d0a4276e03d791953a32c9abe3c55 /mk
parent1f6d2dfa7cd62f08a8a1aa31f9468c2ac58d02c8 (diff)
downloadpkgsrc-9aa6e16cc475e6f37f2b3d4089132ad6a4a0724b.tar.gz
Only create <sys/soundcard.h> if <soundcard.h> exists.
Diffstat (limited to 'mk')
-rw-r--r--mk/ossaudio.buildlink.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/ossaudio.buildlink.mk b/mk/ossaudio.buildlink.mk
index eca3ce831c3..c4931353532 100644
--- a/mk/ossaudio.buildlink.mk
+++ b/mk/ossaudio.buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: ossaudio.buildlink.mk,v 1.1 2001/07/14 15:43:18 jlam Exp $
+# $NetBSD: ossaudio.buildlink.mk,v 1.2 2001/07/24 10:13:38 jlam Exp $
#
# This Makefile fragment is included by packages that use OSS audio.
#
@@ -32,7 +32,8 @@ ossaudio-buildlink: _BUILDLINK_USE
ossaudio-buildlink-soundcard-h:
${_PKG_SILENT}${_PKG_DEBUG} \
sys_soundcard_h=${BUILDLINK_DIR}/include/sys/soundcard.h; \
- if [ ! -f $${sys_soundcard_h} ]; then \
+ if [ ! -f $${sys_soundcard_h} -a \
+ -f ${BUILDLINK_PREFIX.ossaudio}/include/soundcard.h ]; then \
${ECHO_MSG} "Creating $${sys_soundcard_h}."; \
${MKDIR} `${DIRNAME} $${sys_soundcard_h}`; \
( ${ECHO} "#ifndef BUILDLINK_SYS_SOUNDCARD_H"; \