2005-03-09 09:41:18 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2005/03/09 14:41:18 naddy Exp $
|
2001-03-28 07:27:20 -05:00
|
|
|
|
|
|
|
COMMENT= "free lossless audio codec"
|
|
|
|
|
2005-03-08 19:15:13 -05:00
|
|
|
DISTNAME= flac-1.1.2
|
2001-03-28 07:27:20 -05:00
|
|
|
CATEGORIES= audio archivers
|
|
|
|
HOMEPAGE= http://flac.sourceforge.net/
|
|
|
|
|
|
|
|
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
|
2005-03-08 19:15:13 -05: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-03-08 19:15:13 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
2002-02-01 10:18:01 -05:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
2002-10-31 16:15:08 -05:00
|
|
|
--with-libiconv-prefix="${LOCALBASE}" \
|
|
|
|
--with-ogg="${LOCALBASE}"
|
2005-03-09 09:41:18 -05:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${WRKSRC}/include" \
|
|
|
|
ac_cv_path_XMMS_CONFIG=no
|
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>
|