Lines 11-17
COMMENT= Reading and writing files containing sampled sound (like WAV or AIFF)
Link Here
|
11 |
LICENSE= LGPL21+ |
11 |
LICENSE= LGPL21+ |
12 |
LICENSE_FILE= ${WRKSRC}/COPYING |
12 |
LICENSE_FILE= ${WRKSRC}/COPYING |
13 |
|
13 |
|
14 |
USES= cmake cpe localbase pkgconfig python:build,test shebangfix \ |
14 |
USES= cpe localbase pkgconfig python:build,test shebangfix \ |
15 |
tar:bz2 |
15 |
tar:bz2 |
16 |
SHEBANG_FILES= programs/test-sndfile-metadata-set.py \ |
16 |
SHEBANG_FILES= programs/test-sndfile-metadata-set.py \ |
17 |
src/binheader_writef_check.py \ |
17 |
src/binheader_writef_check.py \ |
Lines 21-53
CPE_VENDOR= ${CPE_PRODUCT}_project
Link Here
|
21 |
|
21 |
|
22 |
USE_LDCONFIG= yes |
22 |
USE_LDCONFIG= yes |
23 |
|
23 |
|
24 |
CMAKE_ARGS= -DCMAKE_DISABLE_FIND_PACKAGE_ALSA:BOOL=True \ |
24 |
GNU_CONFIGURE= yes |
25 |
-DCMAKE_DISABLE_FIND_PACKAGE_Sndio:BOOL=True \ |
25 |
CONFIGURE_ARGS= --disable-sqlite |
26 |
-DCMAKE_DISABLE_FIND_PACKAGE_Speex:BOOL=True \ |
|
|
27 |
-DCMAKE_DISABLE_FIND_PACKAGE_SQLite3:BOOL=True |
28 |
|
26 |
|
29 |
OPTIONS_DEFINE= DOCS EXTERNAL MANPAGES STATIC TEST |
27 |
OPTIONS_DEFINE= DOCS EXTERNAL MANPAGES STATIC ALSA |
30 |
OPTIONS_SUB= yes |
28 |
OPTIONS_SUB= yes |
31 |
OPTIONS_DEFAULT= EXTERNAL |
29 |
OPTIONS_DEFAULT= EXTERNAL ALSA |
32 |
EXTERNAL_DESC= Enable FLAC, Ogg Vorbis, Opus support |
30 |
EXTERNAL_DESC= Enable FLAC, Ogg Vorbis, Opus support |
33 |
TEST_DESC= Build tests (forces static library only) |
31 |
ALSA_DESC= Enable ALSA support |
34 |
TEST_IMPLIES= STATIC |
|
|
35 |
|
32 |
|
36 |
EXTERNAL_LIB_DEPENDS= libFLAC.so:audio/flac \ |
33 |
EXTERNAL_LIB_DEPENDS= libFLAC.so:audio/flac \ |
37 |
libogg.so:audio/libogg \ |
34 |
libogg.so:audio/libogg \ |
38 |
libopus.so:audio/opus \ |
35 |
libopus.so:audio/opus \ |
39 |
libvorbis.so:audio/libvorbis |
36 |
libvorbis.so:audio/libvorbis |
40 |
|
37 |
ALSA_LIB_DEPENDS= libasound.so:alsa-lib |
41 |
MANPAGES_CMAKE_BOOL= INSTALL_MANPAGES |
38 |
EXTERNAL_CONFIGURE_OFF= --disable-external-libs |
42 |
STATIC_CMAKE_OFF= -DBUILD_SHARED_LIBS:BOOL=ON |
39 |
STATIC_CONFIGURE_ON= --disable-shared --enable-static |
43 |
TEST_CMAKE_BOOL= BUILD_TESTING |
40 |
ALSA_CONFIGURE_ON= --enable-alsa |
|
|
41 |
ALSA_CONFIGURE_OFF= --disable-alsa |
44 |
|
42 |
|
45 |
.include <bsd.port.options.mk> |
43 |
.include <bsd.port.options.mk> |
46 |
|
44 |
|
47 |
.if ! ${PORT_OPTIONS:MEXTERNAL} |
|
|
48 |
EXTRA_PATCHES= ${FILESDIR}/extrapatch-cmake_SndFileChecks.cmake-disableexternallibs |
49 |
.endif |
50 |
|
51 |
do-test: |
45 |
do-test: |
52 |
(cd ${TEST_WRKSRC} && CTEST_OUTPUT_ON_FAILURE=1 ctest -V) |
46 |
(cd ${TEST_WRKSRC} && CTEST_OUTPUT_ON_FAILURE=1 ctest -V) |
53 |
|
47 |
|