diff options
author | rh <rh@pkgsrc.org> | 2002-09-27 15:17:18 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 2002-09-27 15:17:18 +0000 |
commit | 8c9edc8e2ec7580a3bf2d9c32498a5f4bf6f4ba6 (patch) | |
tree | 67c9a78739aac8a060df848813178a5ae31c8d67 /mk/ossaudio.buildlink2.mk | |
parent | 157d169588f9ac43c63a06d19d65f6c75abb2256 (diff) | |
download | pkgsrc-8c9edc8e2ec7580a3bf2d9c32498a5f4bf6f4ba6.tar.gz |
Make machine/soundcard.h an alias for sys/soundcard.h if non-existent
Diffstat (limited to 'mk/ossaudio.buildlink2.mk')
-rw-r--r-- | mk/ossaudio.buildlink2.mk | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mk/ossaudio.buildlink2.mk b/mk/ossaudio.buildlink2.mk index b7b56198648..956ee375cba 100644 --- a/mk/ossaudio.buildlink2.mk +++ b/mk/ossaudio.buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: ossaudio.buildlink2.mk,v 1.3 2002/09/26 12:31:08 jlam Exp $ +# $NetBSD: ossaudio.buildlink2.mk,v 1.4 2002/09/27 15:17:18 rh Exp $ .if !defined(OSSAUDIO_BUILDLINK2_MK) OSSAUDIO_BUILDLINK2_MK= # defined @@ -7,6 +7,7 @@ OSSAUDIO_BUILDLINK2_MK= # defined BUILDLINK_PREFIX.ossaudio= /usr BUILDLINK_FILES.ossaudio= include/sys/soundcard.h +BUILDLINK_FILES.ossaudio+= include/machine/soundcard.h BUILDLINK_FILES.ossaudio+= lib/libossaudio.* BUILDLINK_TARGETS+= ossaudio-buildlink @@ -37,7 +38,7 @@ ossaudio-buildlink-soundcard-h: sys_soundcard_h=${BUILDLINK_DIR}/include/sys/soundcard.h; \ if [ ! -f $${sys_soundcard_h} -a \ -f ${BUILDLINK_PREFIX.ossaudio}/include/soundcard.h ]; then \ - ${ECHO_BUILDLINK_MSG} "Creating $${sys_soundcard_h}."; \ + ${ECHO_BUILDLINK_MSG} "Creating $${sys_soundcard_h}."; \ ${MKDIR} `${DIRNAME} $${sys_soundcard_h}`; \ ( ${ECHO} "#ifndef BUILDLINK_SYS_SOUNDCARD_H"; \ ${ECHO} "#define BUILDLINK_SYS_SOUNDCARD_H"; \ @@ -45,6 +46,12 @@ ossaudio-buildlink-soundcard-h: ${ECHO} "#include <soundcard.h>"; \ ${ECHO} "#endif"; \ ) > $${sys_soundcard_h}; \ + fi; \ + mach_soundcard_h=${BUILDLINK_DIR}/include/machine/soundcard.h; \ + if [ ! -f $${mach_soundcard_h} -a -f $${sys_soundcard_h} ]; then \ + ${ECHO_BUILDLINK_MSG} "Creating $${mach_soundcard_h}."; \ + ${MKDIR} `${DIRNAME} $${mach_soundcard_h}`; \ + ${LN} $${sys_soundcard_h} $${mach_soundcard_h}; \ fi .endif # OSSAUDIO_BUILDLINK2_MK |