5b197e4920
of a header. Default compiler setup in netbsd disables SSE, we cannot compile stuff that uses it - but we do have the headers for it. Allows us to get rid of SSE disabling for sunpro compiler, it should fail the compile test as well. Patch from FreeBSD (pointed out by John D. Baker) Fixes PR pkg/51209: audio/lame build fails on i386-7.99.30
38 lines
1,019 B
Makefile
38 lines
1,019 B
Makefile
# $NetBSD: Makefile,v 1.79 2016/09/02 14:07:43 maya Exp $
|
|
|
|
DISTNAME= lame-3.99.5
|
|
PKGREVISION= 3
|
|
CATEGORIES= audio
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lame/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://lame.sourceforge.net/
|
|
COMMENT= Fast, high quality MP3 encoder
|
|
LICENSE= lame-license
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_TOOLS+= gmake
|
|
USE_LIBTOOL= yes
|
|
USE_LANGUAGES= c c++
|
|
|
|
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" && ${OPSYS} != "Interix"
|
|
BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
|
|
CONFIGURE_ARGS+= --enable-nasm
|
|
.endif
|
|
|
|
.include "../../mk/curses.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|