2001-03-18 06:08:05 +01:00
|
|
|
PORTNAME= flac
|
2022-10-27 18:36:53 +02:00
|
|
|
PORTVERSION= 1.4.2
|
2001-03-18 06:08:05 +01:00
|
|
|
CATEGORIES= audio
|
2022-10-27 18:42:25 +02:00
|
|
|
MASTER_SITES= https://downloads.xiph.org/releases/flac/
|
2001-03-18 06:08:05 +01:00
|
|
|
|
2001-11-03 23:22:34 +01:00
|
|
|
MAINTAINER= naddy@FreeBSD.org
|
2003-02-21 13:52:52 +01:00
|
|
|
COMMENT= Free lossless audio codec
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://www.xiph.org/flac/
|
2001-03-18 06:08:05 +01:00
|
|
|
|
2016-06-20 17:21:36 +02:00
|
|
|
LICENSE= BSD3CLAUSE GFDL GPLv2 LGPL21
|
|
|
|
LICENSE_COMB= multi
|
|
|
|
LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/COPYING.Xiph
|
|
|
|
LICENSE_FILE_GFDL= ${WRKSRC}/COPYING.FDL
|
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
LIB_DEPENDS= libogg.so:audio/libogg
|
2002-01-19 17:54:57 +01:00
|
|
|
|
2022-02-24 22:02:58 +01:00
|
|
|
USES= compiler:c11 cpe iconv libtool pathfix pkgconfig tar:xz
|
2021-08-29 13:50:49 +02:00
|
|
|
|
|
|
|
CPE_VENDOR= flac_project
|
2015-01-10 21:16:37 +01:00
|
|
|
|
2022-09-25 21:10:52 +02:00
|
|
|
# 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}
|
|
|
|
|
2013-09-24 20:04:34 +02:00
|
|
|
USE_LDCONFIG= yes
|
2007-08-07 20:41:34 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2014-05-24 17:51:45 +02:00
|
|
|
CONFIGURE_ARGS= --enable-static \
|
2008-04-07 22:37:23 +02:00
|
|
|
--with-ogg="${LOCALBASE}" \
|
2016-06-20 17:21:36 +02:00
|
|
|
--disable-doxygen-docs \
|
2008-04-07 22:37:23 +02:00
|
|
|
--disable-thorough-tests \
|
2019-08-28 22:21:44 +02:00
|
|
|
--disable-xmms-plugin
|
2015-10-13 22:07:54 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
TEST_TARGET= check
|
2001-03-18 06:08:05 +01:00
|
|
|
|
2016-06-20 17:21:36 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2022-10-10 15:33:21 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2005-04-11 11:47:42 +02:00
|
|
|
|
2021-11-01 03:42:34 +01:00
|
|
|
.if ${ARCH} != powerpc64le
|
|
|
|
CONFIGURE_ARGS+=--disable-vsx
|
|
|
|
.endif
|
|
|
|
|
2022-10-10 15:33:21 +02:00
|
|
|
# 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>
|