2018-10-24 14:27:57 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.57 2018/10/24 14:27:57 sthen Exp $
|
2001-03-28 12:27:20 +00:00
|
|
|
|
2007-09-15 21:26:00 +00:00
|
|
|
COMMENT= free lossless audio codec
|
2001-03-28 12:27:20 +00:00
|
|
|
|
2017-01-12 21:13:58 +00:00
|
|
|
DISTNAME= flac-1.3.2
|
2018-10-24 14:27:57 +00:00
|
|
|
REVISION = 2
|
2001-03-28 12:27:20 +00:00
|
|
|
CATEGORIES= audio archivers
|
2012-12-10 20:06:10 +00:00
|
|
|
HOMEPAGE= https://www.xiph.org/flac/
|
2013-05-31 14:34:26 +00:00
|
|
|
SHARED_LIBS += FLAC 10.0 # 11.0
|
|
|
|
SHARED_LIBS += FLAC++ 9.0 # 9.0
|
2005-12-29 12:32:23 +00:00
|
|
|
|
2001-03-28 12:27:20 +00:00
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
|
|
|
|
2015-01-10 15:50:58 +00:00
|
|
|
# GPLv2+
|
2001-03-28 12:27:20 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2017-08-22 18:03:51 +00:00
|
|
|
MASTER_SITES= http://downloads.xiph.org/releases/flac/ \
|
|
|
|
https://ftp.osuosl.org/pub/xiph/releases/flac/
|
2013-05-31 14:34:26 +00:00
|
|
|
EXTRACT_SUFX= .tar.xz
|
2001-03-28 12:27:20 +00:00
|
|
|
|
2017-07-16 19:18:47 +00:00
|
|
|
WANTLIB= c iconv m ogg ${COMPILER_LIBCXX}
|
2005-03-09 00:15:13 +00:00
|
|
|
|
2018-10-24 14:27:57 +00:00
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
|
2016-04-07 16:05:48 +00:00
|
|
|
LIB_DEPENDS= audio/libogg converters/libiconv
|
2001-10-09 15:05:20 +00:00
|
|
|
|
2001-06-07 20:17:49 +00:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2010-11-15 00:22:45 +00:00
|
|
|
BUILD_DEPENDS+= devel/nasm
|
2001-06-07 20:17:49 +00:00
|
|
|
.endif
|
|
|
|
|
2005-03-09 00:15:13 +00:00
|
|
|
CONFIGURE_STYLE=gnu
|
2017-01-12 21:13:58 +00:00
|
|
|
CONFIGURE_ARGS= --disable-sse \
|
|
|
|
--disable-altivec \
|
2016-06-20 15:40:47 +00:00
|
|
|
--disable-doxygen-docs \
|
2007-09-18 18:22:32 +00:00
|
|
|
--disable-thorough-tests \
|
2013-05-31 14:34:26 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2002-10-31 21:15:08 +00:00
|
|
|
|
2001-03-28 12:27:20 +00:00
|
|
|
post-install:
|
2007-09-18 18:22:32 +00:00
|
|
|
cd ${PREFIX}/share/doc && mv ${DISTNAME} flac
|
2013-05-31 14:34:26 +00:00
|
|
|
${SUBST_CMD} ${PREFIX}/man/man1/flac.1
|
2015-01-10 15:50:58 +00:00
|
|
|
rm ${PREFIX}/man/man1/flac.1.beforesubst
|
2001-03-28 12:27:20 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|