tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
SunOS with no audio installed
Hi all,
Is a similar patch a valid way to fix things in pkgsrc? Solaris may
not have audio support installed (essentially sys/audioio.h), because
it makes little sense (on a server). A few packages sense that and do
not build related parts which is fine, but it breaks with PLIST checks
futher on.
--
Filip Hajny
Joyent Inc.
diff --git audio/libsndfile/Makefile audio/libsndfile/Makefile
index 34b0691..2ed53a1 100644
--- audio/libsndfile/Makefile
+++ audio/libsndfile/Makefile
@@ -42,6 +42,11 @@ BUILDLINK_PASSTHRU_DIRS+= /Developer
CXXFLAGS+= -features=extensions
.endif
+PLIST_VARS+= sunaudio
+.if ${OPSYS} == "SunOS" && exists(/usr/include/sys/audioio.h)
+PLIST.sunaudio= yes
+.endif
+
.include "../../audio/flac/buildlink3.mk"
#BUILDLINK_API_DEPENDS.libvorbis+= libvorbis>=1.2.1
.include "../../audio/libvorbis/buildlink3.mk"
diff --git audio/libsndfile/PLIST audio/libsndfile/PLIST
index 1796c1c..82c6c57 100644
--- audio/libsndfile/PLIST
+++ audio/libsndfile/PLIST
@@ -5,7 +5,7 @@ bin/sndfile-info
bin/sndfile-jackplay
bin/sndfile-metadata-get
bin/sndfile-metadata-set
-bin/sndfile-play
+${PLIST.sunaudio}bin/sndfile-play
bin/sndfile-regtest
include/sndfile.h
include/sndfile.hh
Home |
Main Index |
Thread Index |
Old Index