2003-04-17 20:28:40 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2003/04/18 00:28:40 naddy Exp $
|
2001-03-28 07:27:20 -05:00
|
|
|
|
|
|
|
COMMENT= "free lossless audio codec"
|
|
|
|
|
2003-04-17 20:28:40 -04:00
|
|
|
DISTNAME= flac-1.1.0
|
2001-03-28 07:27:20 -05:00
|
|
|
CATEGORIES= audio archivers
|
|
|
|
HOMEPAGE= http://flac.sourceforge.net/
|
|
|
|
|
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
|
|
|
|
2003-04-17 20:28:40 -04:00
|
|
|
# (L)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
|
|
|
|
2002-10-31 16:15:08 -05:00
|
|
|
MODULES= iconv
|
|
|
|
LIB_DEPENDS= ogg.4::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
|
|
|
|
|
2001-05-19 15:12:36 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2002-02-01 10:18:01 -05:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
2003-02-24 19:02:38 -05:00
|
|
|
--enable-3dnow \
|
2002-10-31 16:15:08 -05:00
|
|
|
--with-libiconv-prefix="${LOCALBASE}" \
|
|
|
|
--with-ogg="${LOCALBASE}"
|
2003-04-17 20:28:40 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${WRKSRC}/include" \
|
|
|
|
XMMS_CONFIG=/usr/bin/false
|
2002-10-31 16:15:08 -05:00
|
|
|
|
|
|
|
# "obj" is magic to our make(1)
|
|
|
|
post-configure:
|
|
|
|
@rm -rf ${WRKSRC}/obj
|
|
|
|
|
2001-03-28 07:27:20 -05:00
|
|
|
post-install:
|
2002-07-07 15:09:28 -04:00
|
|
|
@cd ${PREFIX}/share/doc && mv ${DISTNAME} flac
|
2001-03-28 07:27:20 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|