| @@ -1,63 +1,64 @@ | | | @@ -1,63 +1,64 @@ |
1 | # $NetBSD: Makefile,v 1.32 2023/02/16 15:15:55 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.33 2023/02/20 12:23:44 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= openal-soft-1.23.0 | | 3 | DISTNAME= openal-soft-1.23.0 |
4 | CATEGORIES= audio | | 4 | CATEGORIES= audio |
5 | MASTER_SITES= https://openal-soft.org/openal-releases/ | | 5 | MASTER_SITES= https://openal-soft.org/openal-releases/ |
6 | EXTRACT_SUFX= .tar.bz2 | | 6 | EXTRACT_SUFX= .tar.bz2 |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://openal-soft.org/ | | 9 | HOMEPAGE= https://openal-soft.org/ |
10 | COMMENT= Software implementation of the OpenAL 3D audio API | | 10 | COMMENT= Software implementation of the OpenAL 3D audio API |
11 | LICENSE= gnu-lgpl-v2 | | 11 | LICENSE= gnu-lgpl-v2 |
12 | | | 12 | |
13 | USE_LANGUAGES= c c++14 | | 13 | # c++20 not yet supported by mk/ |
| | | 14 | USE_LANGUAGES= c c++ |
14 | USE_TOOLS+= pkg-config gmake | | 15 | USE_TOOLS+= pkg-config gmake |
15 | | | 16 | |
16 | # https://github.com/kcat/openal-soft/issues/347 | | 17 | # uses [[likely]] from C++20 |
17 | GCC_REQD+= 5 | | 18 | GCC_REQD+= 9 |
18 | | | 19 | |
19 | PKGCONFIG_OVERRIDE+= openal.pc.in | | 20 | PKGCONFIG_OVERRIDE+= openal.pc.in |
20 | PKG_SYSCONFSUBDIR= openal | | 21 | PKG_SYSCONFSUBDIR= openal |
21 | | | 22 | |
22 | CMAKE_ARGS+= -DALSOFT_EXAMPLES=OFF | | 23 | CMAKE_ARGS+= -DALSOFT_EXAMPLES=OFF |
23 | CMAKE_ARGS+= -DALSOFT_UTILS=ON | | 24 | CMAKE_ARGS+= -DALSOFT_UTILS=ON |
24 | CMAKE_ARGS+= -DALSOFT_NO_CONFIG_UTIL=ON | | 25 | CMAKE_ARGS+= -DALSOFT_NO_CONFIG_UTIL=ON |
25 | CMAKE_ARGS+= -DALSOFT_RTKIT=OFF | | 26 | CMAKE_ARGS+= -DALSOFT_RTKIT=OFF |
26 | | | 27 | |
27 | CFLAGS+= -DSYS_CONF_DIR="\"${PKG_SYSCONFDIR}\"" | | 28 | CFLAGS+= -DSYS_CONF_DIR="\"${PKG_SYSCONFDIR}\"" |
28 | CFLAGS.NetBSD+= -D_NETBSD_SOURCE | | 29 | CFLAGS.NetBSD+= -D_NETBSD_SOURCE |
29 | CFLAGS.SunOS+= -D__EXTENSIONS__ | | 30 | CFLAGS.SunOS+= -D__EXTENSIONS__ |
30 | | | 31 | |
31 | BUILDLINK_TRANSFORM+= rm:-Wall | | 32 | BUILDLINK_TRANSFORM+= rm:-Wall |
32 | | | 33 | |
33 | CONF_FILES+= ${PREFIX}/share/openal/alsoftrc.sample ${PKG_SYSCONFDIR}/alsoft.conf | | 34 | CONF_FILES+= ${PREFIX}/share/openal/alsoftrc.sample ${PKG_SYSCONFDIR}/alsoft.conf |
34 | | | 35 | |
35 | .include "../../mk/bsd.prefs.mk" | | 36 | .include "../../mk/bsd.prefs.mk" |
36 | | | 37 | |
37 | .if ${OPSYS} == "SunOS" || ${OPSYS} == "NetBSD" | | 38 | .if ${OPSYS} == "SunOS" || ${OPSYS} == "NetBSD" |
38 | CMAKE_ARGS+= -DALSOFT_BACKEND_SOLARIS=ON | | 39 | CMAKE_ARGS+= -DALSOFT_BACKEND_SOLARIS=ON |
39 | CMAKE_ARGS+= -DALSOFT_REQUIRE_SOLARIS=ON | | 40 | CMAKE_ARGS+= -DALSOFT_REQUIRE_SOLARIS=ON |
40 | .endif | | 41 | .endif |
41 | | | 42 | |
42 | .include "../../mk/oss.buildlink3.mk" | | 43 | .include "../../mk/oss.buildlink3.mk" |
43 | | | 44 | |
44 | .if ${OSS_TYPE} != "none" | | 45 | .if ${OSS_TYPE} != "none" |
45 | CMAKE_ARGS+= -DALSOFT_BACKEND_OSS=ON | | 46 | CMAKE_ARGS+= -DALSOFT_BACKEND_OSS=ON |
46 | CMAKE_ARGS+= -DALSOFT_REQUIRE_OSS=ON | | 47 | CMAKE_ARGS+= -DALSOFT_REQUIRE_OSS=ON |
47 | SUBST_CLASSES+= oss | | 48 | SUBST_CLASSES+= oss |
48 | SUBST_STAGE.oss= pre-configure | | 49 | SUBST_STAGE.oss= pre-configure |
49 | SUBST_MESSAGE.oss= Fixing default OSS device references. | | 50 | SUBST_MESSAGE.oss= Fixing default OSS device references. |
50 | SUBST_FILES.oss= alc/backends/oss.cpp | | 51 | SUBST_FILES.oss= alc/backends/oss.cpp |
51 | SUBST_SED.oss= -e 's,/dev/dsp,${DEVOSSAUDIO},' | | 52 | SUBST_SED.oss= -e 's,/dev/dsp,${DEVOSSAUDIO},' |
52 | .endif | | 53 | .endif |
53 | | | 54 | |
54 | .include "options.mk" | | 55 | .include "options.mk" |
55 | | | 56 | |
56 | post-install: | | 57 | post-install: |
57 | ${RM} ${DESTDIR}${PREFIX}/include/AL/al.h.orig | | 58 | ${RM} ${DESTDIR}${PREFIX}/include/AL/al.h.orig |
58 | | | 59 | |
59 | .include "../../devel/cmake/build.mk" | | 60 | .include "../../devel/cmake/build.mk" |
60 | .include "../../audio/libmysofa/buildlink3.mk" | | 61 | .include "../../audio/libmysofa/buildlink3.mk" |
61 | .include "../../mk/dlopen.buildlink3.mk" | | 62 | .include "../../mk/dlopen.buildlink3.mk" |
62 | .include "../../mk/pthread.buildlink3.mk" | | 63 | .include "../../mk/pthread.buildlink3.mk" |
63 | .include "../../mk/bsd.pkg.mk" | | 64 | .include "../../mk/bsd.pkg.mk" |