pkgsrc/audio/flac/Makefile

50 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.31 2004/11/16 12:07:03 sketch Exp $
DISTNAME= flac-1.1.1
PKGREVISION= 1
CATEGORIES= audio archivers
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=flac/}
MAINTAINER= ben@NetBSD.org
HOMEPAGE= http://flac.sourceforge.net/
COMMENT= Free lossless audio codec
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_BUILDLINK3= yes
USE_LIBTOOL= yes
USE_GNU_TOOLS+= make
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
CONFIGURE_ENV+= ac_cv_path_XMMS_CONFIG="no"
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386)
BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
.endif
.if !empty(MACHINE_PLATFORM:M*-*-powerpc)
.if ${OPSYS} != "Darwin"
CONFIGURE_ARGS+= --disable-asm-optimizations
CONFIGURE_ARGS+= --disable-altivec
.endif
.endif
.include "../../mk/compiler.mk"
# This version of flac doesn't seem to build correctly with -O3 using
# the MIPSpro compiler.
.if !empty(PKGSRC_COMPILER:Mmipspro)
BUILDLINK_TRANSFORM+= rm:-O3
.endif
# SunPro does not support __inline
.if !empty(PKGSRC_COMPILER:Msunpro)
CFLAGS+= -D__inline=inline
.endif
.include "../../multimedia/libogg/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"