Re: pkg-fallout - virtual_oss FreeBSD 11.2 and 12.0-p3

2019-03-30 Thread Hans Petter Selasky

On 3/30/19 12:45 PM, Christoph Moench-Tegeder wrote:

## Hans Petter Selasky (h...@selasky.org):


virtual_oss needs some new bluetooth definitions to build.
Else bluetooth support can be switched off.


How about testing the FreeBSD version? That's in OSVERSION:
https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/dads-after-port-mk.html



Doesn't work because OSVERSION is not defined before package options are 
evaluated by bsd.port.mk ??


I'll just make the new utility optionally buildable for now.

--HPS

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: pkg-fallout - virtual_oss FreeBSD 11.2 and 12.0-p3

2019-03-30 Thread Christoph Moench-Tegeder
## Hans Petter Selasky (h...@selasky.org):

> virtual_oss needs some new bluetooth definitions to build.
> Else bluetooth support can be switched off.

How about testing the FreeBSD version? That's in OSVERSION:
https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/dads-after-port-mk.html

Regards,
Christoph

-- 
Spare Space
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


pkg-fallout - virtual_oss FreeBSD 11.2 and 12.0-p3

2019-03-30 Thread Hans Petter Selasky

Hi,

virtual_oss needs some new bluetooth definitions to build.
Else bluetooth support can be switched off.

How can I test for this in the Makefile?

I tried something like this, but it doesn't work:

--HPS

Index: Makefile
===
--- Makefile(revision 497246)
+++ Makefile(working copy)
@@ -17,8 +17,14 @@
 USES=  tar:bzip2 uidfix

 OPTIONS_DEFINE=BLUETOOTH DEBUG EQUALIZER
-OPTIONS_DEFAULT=BLUETOOTH EQUALIZER
+OPTIONS_DEFAULT=EQUALIZER

+SINK_PROFILE!=${GREP} sdp_audio_sink_profile /usr/include/sdp.h
+
+.if ${SINK_PROFILE} != ""
+OPTIONS_DEFAULT+= BLUETOOTH
+.endif
+
 .if exists(/usr/lib/libcuse.so)
 MAKE_ARGS= HAVE_CUSE="YES"
 .else
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"