/
Makefile
47 lines (36 loc) · 1.16 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
PORTNAME= flac
DISTVERSION= 1.4.3
PORTEPOCH= 1
CATEGORIES= audio
MASTER_SITES= https://downloads.xiph.org/releases/flac/ \
https://github.com/xiph/flac/releases/download/${DISTVERSION}/
MAINTAINER= naddy@FreeBSD.org
COMMENT= Free lossless audio codec
WWW= https://www.xiph.org/flac/
LICENSE= BSD3CLAUSE GFDL GPLv2 LGPL21
LICENSE_COMB= multi
LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/COPYING.Xiph
LICENSE_FILE_GFDL= ${WRKSRC}/COPYING.FDL
LIB_DEPENDS= libogg.so:audio/libogg
USES= compiler:c11 cpe iconv libtool pathfix pkgconfig tar:xz
CPE_VENDOR= flac_project
# Preserve UTF-8 filenames in test/flac-to-flac-metadata-test-files/.
# They are referenced by the test suite.
EXTRACT_CMD= ${SETENV} LC_ALL=C.UTF-8 ${TAR}
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-static \
--with-ogg="${LOCALBASE}" \
--disable-doxygen-docs \
--disable-thorough-tests
INSTALL_TARGET= install-strip
TEST_TARGET= check
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
# test_libFLAC:
# "iterator claims file is writable when tester thinks it should not be"
.if ${UID} == 0
do-test:
@${ECHO_MSG} "The tests cannot be run as root, skipping."
.endif
.include <bsd.port.post.mk>