pkgsrc/audio/lame/Makefile
rillig 7eeb6423c7 For some weird reason, the configure script uses the C++ preprocessor
instead of the C one. Therefore, added c++ to USE_LANGUAGES.
2006-10-24 00:03:45 +00:00

49 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.56 2006/10/24 00:03:45 rillig Exp $
#
DISTNAME= lame-${VERS}
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lame/} \
http://hive.me.gu.edu.au/not_lame/
MAINTAINER= ben@NetBSD.org
HOMEPAGE= http://lame.sourceforge.net/
COMMENT= Fast, high quality MP3 encoder
VERS= 3.97
LICENSE= lame-license
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_TOOLS+= gmake
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --without-vorbis
# Avoid an ICE in gcc2 on sparc64
CONFIGURE_ENV+= F77=${FALSE:Q}
LDFLAGS.SunOS+= -lm
.include "options.mk"
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "alpha"
. include "../../math/libffm/buildlink3.mk"
# double is faster than float on Alpha
CFLAGS+= -O2 -Wall -fomit-frame-pointer -ffast-math -funroll-loops \
-mfp-regs -fschedule-insns -fschedule-insns2 \
-finline-functions -DFLOAT=double -DFLOAT_MAX=DBL_MAX
.endif
.if ${MACHINE_ARCH} == "i386" && ${OPSYS} != "SunOS" && ${OPSYS} != "Darwin"
BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
CONFIGURE_ARGS+= --enable-nasm
.endif
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"