Hi,

naddy@ reported an hidden dependency for one binary, alsoft-config,
thus this small diff for who does not want to bear the qt4 compilation :-)

Hope it s ok.

Cheers.
Index: Makefile
===================================================================
RCS file: /cvs/ports/audio/openal/Makefile,v
retrieving revision 1.39
diff -u -p -r1.39 Makefile
--- Makefile    3 Nov 2016 10:27:15 -0000       1.39
+++ Makefile    15 Dec 2016 16:27:15 -0000
@@ -12,6 +12,7 @@ DISTNAME =    openal-soft-$V
 PKGNAME =      openal-$V
 CATEGORIES =   audio
 SHARED_LIBS =  openal  2.2
+REVISION =      1
 
 HOMEPAGE =     http://kcat.strangesoft.net/openal.html
 
@@ -25,6 +26,9 @@ WANTLIB +=    c m pthread sndio
 MASTER_SITES = ${HOMEPAGE:S,.html,-releases/,}
 EXTRACT_SUFX = .tar.bz2
 
+FLAVORS =       no_config
+FLAVOR ?=
+
 CONFIGURE_ARGS =-DCMAKE_BUILD_TYPE=OpenBSD \
                -DALSOFT_SYSCONFDIR=${SYSCONFDIR} \
                -DALSOFT_CONFIG_DESTINATION=share/examples/openal \
@@ -49,6 +53,14 @@ CONFIGURE_ARGS =-DCMAKE_BUILD_TYPE=OpenB
 MODULES =      devel/cmake lang/clang
 MODCLANG_ARCHS = *
 MODCLANG_LANGS = c c++
+
+.if ${FLAVOR:Mno_config}
+CONFIGURE_ARGS += -DALSOFT_NO_CONFIG_UTIL=On
+.else
+
+WANTLIB +=      QtCore QtGui
+MODULES +=      x11/qt4
+.endif
 
 SEPARATE_BUILD =Yes
 NO_TEST =      Yes
Index: pkg/PFRAG.no-no_config
===================================================================
RCS file: pkg/PFRAG.no-no_config
diff -N pkg/PFRAG.no-no_config
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ pkg/PFRAG.no-no_config      15 Dec 2016 16:27:15 -0000
@@ -0,0 +1,2 @@
+@comment $OpenBSD$
+@bin bin/alsoft-config
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/audio/openal/pkg/PLIST,v
retrieving revision 1.8
diff -u -p -r1.8 PLIST
--- pkg/PLIST   3 Nov 2016 10:27:16 -0000       1.8
+++ pkg/PLIST   15 Dec 2016 16:27:15 -0000
@@ -18,3 +18,4 @@ share/openal/
 share/openal/hrtf/
 share/openal/hrtf/default-44100.mhr
 share/openal/hrtf/default-48000.mhr
+!%%no_config%%

Reply via email to