diff options
author | jlam <jlam@pkgsrc.org> | 2001-07-24 10:13:38 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-07-24 10:13:38 +0000 |
commit | 081ae6de6b4bbf22e9a9b0fdbf99d6ca7b56bece (patch) | |
tree | df4a06c2f24d0a4276e03d791953a32c9abe3c55 /mk/ossaudio.buildlink.mk | |
parent | 3adf490330d6a8d43702c4f95b2158fa85add67a (diff) | |
download | pkgsrc-081ae6de6b4bbf22e9a9b0fdbf99d6ca7b56bece.tar.gz |
Only create <sys/soundcard.h> if <soundcard.h> exists.
Diffstat (limited to 'mk/ossaudio.buildlink.mk')
-rw-r--r-- | mk/ossaudio.buildlink.mk | 5 |
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"; \ |