2007-09-24 13:23:55 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.33 2007/09/24 17:23:55 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
|
2001-03-28 07:27:20 -05:00
|
|
|
CATEGORIES= audio archivers
|
|
|
|
HOMEPAGE= http://flac.sourceforge.net/
|
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
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2002-07-07 15:09:28 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=flac/}
|
2001-03-28 07:27:20 -05:00
|
|
|
|
2005-03-08 19:15:13 -05:00
|
|
|
WANTLIB= c m
|
|
|
|
|
2004-08-10 04:04:01 -04:00
|
|
|
MODULES= converters/libiconv
|
2006-08-01 07:17:55 -04:00
|
|
|
LIB_DEPENDS= ogg.>=5::audio/libogg
|
2001-10-09 11:05:20 -04:00
|
|
|
|
2001-06-07 16:17:49 -04:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2001-11-10 10:00:47 -05:00
|
|
|
BUILD_DEPENDS+= ::devel/nasm
|
2001-06-07 16:17:49 -04:00
|
|
|
.endif
|
|
|
|
|
2005-10-18 19:24:25 -04:00
|
|
|
USE_LIBTOOL= Yes
|
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>
|