diff options
author | jlam <jlam@pkgsrc.org> | 2004-01-03 23:06:43 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-01-03 23:06:43 +0000 |
commit | 339cd13cb2e6dedfb07f792d4748aad67fe2788b (patch) | |
tree | 7815453a8a5d5cc91288c15c8c52893726b1e2bc /audio | |
parent | 24f7929dc215b42dce86fc5cd36d848a3e54389c (diff) | |
download | pkgsrc-339cd13cb2e6dedfb07f792d4748aad67fe2788b.tar.gz |
Initial sprinkling of work-in-progress buildlink3.mk files for using the
buildlink3 framework.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/SDL_mixer/buildlink3.mk | 22 | ||||
-rw-r--r-- | audio/esound/buildlink3.mk | 21 | ||||
-rw-r--r-- | audio/libaudiofile/buildlink3.mk | 19 | ||||
-rw-r--r-- | audio/libogg/buildlink3.mk | 19 | ||||
-rw-r--r-- | audio/oss/buildlink3.mk | 49 |
5 files changed, 130 insertions, 0 deletions
diff --git a/audio/SDL_mixer/buildlink3.mk b/audio/SDL_mixer/buildlink3.mk new file mode 100644 index 00000000000..c2d217ddede --- /dev/null +++ b/audio/SDL_mixer/buildlink3.mk @@ -0,0 +1,22 @@ +# $NetBSD: buildlink3.mk,v 1.1 2004/01/03 23:06:43 jlam Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +SDL_MIXER_BUILDLINK3_MK:= ${SDL_MIXER_BUILDLINK3_MK}+ + +.if !empty(SDL_MIXER_BUILDLINK3_MK:M\+) +BUILDLINK_DEPENDS.SDL_mixer?= SDL_mixer>=1.2.5nb1 +BUILDLINK_PKGSRCDIR.SDL_mixer?= ../../audio/SDL_mixer +.endif # SDL_MIXER_BUILDLINK3_MK + +.if !empty(BUILDLINK_DEPTH:M\+) +BUILDLINK_DEPENDS+= SDL_mixer +.endif + +.if !empty(SDL_MIXER_BUILDLINK3_MK:M\+) +BUILDLINK_PACKAGES+= SDL_mixer +BUILDLINK_INCDIRS.SDL_mixer?= include/SDL + +. include "../../devel/SDL/buildlink3.mk" +.endif # SDL_MIXER_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:C/\+$//} diff --git a/audio/esound/buildlink3.mk b/audio/esound/buildlink3.mk new file mode 100644 index 00000000000..0b981268b0e --- /dev/null +++ b/audio/esound/buildlink3.mk @@ -0,0 +1,21 @@ +# $NetBSD: buildlink3.mk,v 1.1 2004/01/03 23:06:43 jlam Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +ESOUND_BUILDLINK3_MK:= ${ESOUND_BUILDLINK3_MK}+ + +.if !empty(ESOUND_BUILDLINK3_MK:M\+) +BUILDLINK_DEPENDS.esound?= esound>=0.2.18 +BUILDLINK_PKGSRCDIR.esound?= ../../audio/esound +.endif # ESOUND_BUILDLINK3_MK + +.if !empty(BUILDLINK_DEPTH:M\+) +BUILDLINK_DEPENDS+= esound +.endif + +.if !empty(ESOUND_BUILDLINK3_MK:M\+) +BUILDLINK_PACKAGES+= esound + +. include "../../audio/libaudiofile/buildlink3.mk" +.endif # ESOUND_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:C/\+$//} diff --git a/audio/libaudiofile/buildlink3.mk b/audio/libaudiofile/buildlink3.mk new file mode 100644 index 00000000000..d7cb8d0b478 --- /dev/null +++ b/audio/libaudiofile/buildlink3.mk @@ -0,0 +1,19 @@ +# $NetBSD: buildlink3.mk,v 1.1 2004/01/03 23:06:43 jlam Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +AUDIOFILE_BUILDLINK3_MK:= ${AUDIOFILE_BUILDLINK3_MK}+ + +.if !empty(AUDIOFILE_BUILDLINK3_MK:M\+) +BUILDLINK_DEPENDS.audiofile?= libaudiofile>=0.2.1 +BUILDLINK_PKGSRCDIR.audiofile?= ../../audio/libaudiofile +.endif # AUDIOFILE_BUILDLINK3_MK + +.if !empty(BUILDLINK_DEPTH:M\+) +BUILDLINK_DEPENDS+= audiofile +.endif + +.if !empty(AUDIOFILE_BUILDLINK3_MK:M\+) +BUILDLINK_PACKAGES+= audiofile +.endif # AUDIOFILE_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:C/\+$//} diff --git a/audio/libogg/buildlink3.mk b/audio/libogg/buildlink3.mk new file mode 100644 index 00000000000..ae252c23631 --- /dev/null +++ b/audio/libogg/buildlink3.mk @@ -0,0 +1,19 @@ +# $NetBSD: buildlink3.mk,v 1.1 2004/01/03 23:06:43 jlam Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +LIBOGG_BUILDLINK3_MK:= ${LIBOGG_BUILDLINK3_MK}+ + +.if !empty(LIBOGG_BUILDLINK3_MK:M\+) +BUILDLINK_DEPENDS.libogg?= libogg>=1.0.0.8 +BUILDLINK_PKGSRCDIR.libogg?= ../../audio/libogg +.endif # LIBOGG_BUILDLINK3_MK + +.if !empty(BUILDLINK_DEPTH:M\+) +BUILDLINK_DEPENDS+= libogg +.endif + +.if !empty(LIBOGG_BUILDLINK3_MK:M\+) +BUILDLINK_PACKAGES+= libogg +.endif # LIBOGG_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:C/\+$//} diff --git a/audio/oss/buildlink3.mk b/audio/oss/buildlink3.mk new file mode 100644 index 00000000000..9e00efe8f92 --- /dev/null +++ b/audio/oss/buildlink3.mk @@ -0,0 +1,49 @@ +# $NetBSD: buildlink3.mk,v 1.1 2004/01/03 23:06:43 jlam Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +OSS_BUILDLINK3_MK:= ${OSS_BUILDLINK3_MK}+ + +.if !empty(OSS_BUILDLINK3_MK:M\+) +BUILDLINK_DEPENDS.oss?= oss-[0-9]* +BUILDLINK_PKGSRCDIR.oss?= ../../audio/oss +.endif # OSS_BUILDLINK3_MK + +.if !empty(BUILDLINK_DEPTH:M\+) +BUILDLINK_DEPENDS+= oss +.endif + +.if !empty(OSS_BUILDLINK3_MK:M\+) +BUILDLINK_PACKAGES+= oss +BUILDLINK_INCDIRS.oss= include lib/oss/include + +# If we are using audio/oss, then we don't need the NetBSD OSS +# compatibility library. +# +BUILDLINK_TRANSFORM+= S:-lossaudio: + +BUILDLINK_TARGETS+= buildlink-oss-soundcard-h + +LIBOSSAUDIO= # empty +DEVOSSAUDIO= /dev/dsp +DEVOSSSOUND= ${DEVOSSAUDIO} + +# Many source files mistakenly include both <sys/soundcard.h> and +# <soundcard.h>, which causes errors since the definitions in the OSS +# sys/soundcard.h conflict with the definitions in the system soundcard.h. +# We fix this by making <sys/soundcard.h> and <soundcard.h> point to the +# same file and rely on multiple inclusion protection to prevent conflicts. +# +.PHONY: buildlink-oss-soundcard-h +buildlink-oss-soundcard-h: + ${_PKG_SILENT}${_PKG_DEBUG} \ + soundcard_h=${BUILDLINK_DIR}/include/soundcard.h; \ + sys_soundcard_h=${BUILDLINK_PREFIX.oss}/lib/oss/include/sys/soundcard.h; \ + if [ ! -f $${soundcard_h} -a -f $${sys_soundcard_h} ]; then \ + ${ECHO_BUILDLINK_MSG} \ + "Linking $${sys_soundcard_h} to $${soundcard_h}."; \ + ${MKDIR} `${DIRNAME} $${soundcard_h}`; \ + ${LN} -s $${sys_soundcard_h} $${soundcard_h}; \ + fi +.endif # OSS_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:C/\+$//} |