Page MenuHomeFreeBSD

D8840.id.diff
No OneTemporary

D8840.id.diff

Index: Mk/bsd.port.mk
===================================================================
--- Mk/bsd.port.mk
+++ Mk/bsd.port.mk
@@ -1052,6 +1052,10 @@
.include "${PORTSDIR}/Mk/bsd.commands.mk"
+.if defined(FLAVORS) && !defined(FLAVOR)
+IGNORE= Flavored port please build in one of the flavored directory: ${FLAVORS}
+.endif
+
.if defined(CROSS_TOOLCHAIN)
.if !defined(.PARSEDIR)
IGNORE= Cross building can only be done when using bmake(1) as make(1)
@@ -1166,6 +1170,9 @@
.endif
_EXPORTED_VARS+= _PKG_CHECKED
+.if defined(FLAVOR)
+MASTERDIR?= ${.CURDIR:H}
+.endif
MASTERDIR?= ${.CURDIR}
.if ${MASTERDIR} != ${.CURDIR}
Index: audio/Makefile
===================================================================
--- audio/Makefile
+++ audio/Makefile
@@ -635,7 +635,8 @@
SUBDIR += puddletag
SUBDIR += pulseaudio
SUBDIR += pulseaudio-module-sndio
- SUBDIR += py-al
+ SUBDIR += py-al/py2
+ SUBDIR += py-al/py3
SUBDIR += py-ao
SUBDIR += py-apetag
SUBDIR += py-cddb
Index: audio/py-al/Makefile
===================================================================
--- audio/py-al/Makefile
+++ audio/py-al/Makefile
@@ -10,9 +10,11 @@
MAINTAINER= mva@FreeBSD.org
COMMENT= PyAL is a binding of OpenAL for Python
+FLAVORS= py2 py3
+
LICENSE= ZLIB
-USES= openal:al python
+USES+= openal:al
USE_PYTHON= autoplist distutils
.include <bsd.port.mk>
Index: audio/py-al/py2/Makefile
===================================================================
--- /dev/null
+++ audio/py-al/py2/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+FLAVOR= yes
+USES= python:2
+
+.include "${.CURDIR}/../Makefile"
Index: audio/py-al/py3/Makefile
===================================================================
--- /dev/null
+++ audio/py-al/py3/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+FLAVOR= yes
+USES= python:3
+
+.include "${.CURDIR}/../Makefile"

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 3, 8:54 PM (4 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15012690
Default Alt Text
D8840.id.diff (1 KB)

Event Timeline