2013-03-27 12:37:09 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.42 2013/03/27 16:37:09 naddy Exp $
|
2001-03-28 07:27:20 -05:00
|
|
|
|
2007-09-15 17:26:00 -04:00
|
|
|
COMMENT= free lossless audio codec
|
2001-03-28 07:27:20 -05:00
|
|
|
|
2007-09-24 13:23:55 -04:00
|
|
|
DISTNAME= flac-1.2.1
|
2013-03-27 12:37:09 -04:00
|
|
|
REVISION= 3
|
2001-03-28 07:27:20 -05:00
|
|
|
CATEGORIES= audio archivers
|
2012-12-10 15:06:10 -05:00
|
|
|
HOMEPAGE= https://www.xiph.org/flac/
|
2007-09-24 13:23:55 -04:00
|
|
|
SHARED_LIBS += FLAC 9.0 # .10.0
|
|
|
|
SHARED_LIBS += FLAC++ 8.0 # .8.0
|
2005-12-29 07:32:23 -05:00
|
|
|
|
2001-03-28 07:27:20 -05:00
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
|
|
|
|
2005-03-08 19:15:13 -05:00
|
|
|
# BSD, GPL, GFDL
|
2001-03-28 07:27:20 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2012-12-10 15:06:10 -05:00
|
|
|
MASTER_SITES= http://downloads.xiph.org/releases/flac/
|
2001-03-28 07:27:20 -05:00
|
|
|
|
2013-03-27 12:37:09 -04:00
|
|
|
WANTLIB= c m ogg stdc++
|
2005-03-08 19:15:13 -05:00
|
|
|
|
2004-08-10 04:04:01 -04:00
|
|
|
MODULES= converters/libiconv
|
2010-11-14 19:22:45 -05:00
|
|
|
LIB_DEPENDS= audio/libogg
|
2001-10-09 11:05:20 -04:00
|
|
|
|
2001-06-07 16:17:49 -04:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2010-11-14 19:22:45 -05:00
|
|
|
BUILD_DEPENDS+= devel/nasm
|
2001-06-07 16:17:49 -04:00
|
|
|
.endif
|
|
|
|
|
2005-03-08 19:15:13 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
2002-02-01 10:18:01 -05:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
2007-09-18 14:22:32 -04:00
|
|
|
--enable-sse \
|
2002-10-31 16:15:08 -05:00
|
|
|
--with-libiconv-prefix="${LOCALBASE}" \
|
2007-09-18 14:22:32 -04:00
|
|
|
--with-ogg="${LOCALBASE}" \
|
|
|
|
--disable-thorough-tests \
|
|
|
|
--disable-xmms-plugin
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${WRKSRC}/include"
|
2007-03-28 14:06:16 -04:00
|
|
|
MAKE_ENV= MAKEOBJDIR=/nonexistent # ignore ${WRKSRC}/obj
|
2002-10-31 16:15:08 -05:00
|
|
|
|
2001-03-28 07:27:20 -05:00
|
|
|
post-install:
|
2007-09-18 14:22:32 -04:00
|
|
|
cd ${PREFIX}/share/doc && mv ${DISTNAME} flac
|
|
|
|
perl -i -pe 's:%%PREFIX%%:${TRUEPREFIX}:' ${PREFIX}/man/man1/flac.1
|
2001-03-28 07:27:20 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|