2015-01-10 15:50:58 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.46 2015/01/10 15:50:58 naddy 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
|
|
|
|
2015-01-10 15:50:58 +00:00
|
|
|
DISTNAME= flac-1.3.1
|
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
|
|
|
|
|
2012-12-10 20:06:10 +00:00
|
|
|
MASTER_SITES= http://downloads.xiph.org/releases/flac/
|
2013-05-31 14:34:26 +00:00
|
|
|
EXTRACT_SUFX= .tar.xz
|
2001-03-28 12:27:20 +00:00
|
|
|
|
2013-03-27 16:37:09 +00:00
|
|
|
WANTLIB= c m ogg stdc++
|
2005-03-09 00:15:13 +00:00
|
|
|
|
2004-08-10 08:04:01 +00:00
|
|
|
MODULES= converters/libiconv
|
2010-11-15 00:22:45 +00:00
|
|
|
LIB_DEPENDS= audio/libogg
|
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
|
2002-02-01 15:18:01 +00:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
2015-01-10 15:50:58 +00:00
|
|
|
--disable-altivec \
|
2007-09-18 18:22:32 +00:00
|
|
|
--disable-thorough-tests \
|
|
|
|
--disable-xmms-plugin
|
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>
|