freebsd-ports/audio/flac/Makefile
Christian Weisgerber 68863fbdc4 */*: drop useless master site
downloads.xiph.org already redirects to ftp.osuosl.org, so the
latter adds no redundancy.

Reported by:	diizzy
2022-10-27 18:47:48 +02:00

50 lines
1.2 KiB
Makefile

PORTNAME= flac
PORTVERSION= 1.4.2
CATEGORIES= audio
MASTER_SITES= https://downloads.xiph.org/releases/flac/
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 \
--disable-xmms-plugin
INSTALL_TARGET= install-strip
TEST_TARGET= check
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${ARCH} != powerpc64le
CONFIGURE_ARGS+=--disable-vsx
.endif
# 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>