blob: db12bf7afd4d407c089c941568dbe1b03ea74c9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# $NetBSD: Makefile,v 1.87 2020/08/18 17:57:36 leot Exp $
DISTNAME= lame-3.100
CATEGORIES= audio
PKGREVISION= 2
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lame/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://lame.sourceforge.io/
COMMENT= Fast, high quality MP3 encoder
LICENSE= gnu-lgpl-v2
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
USE_FEATURES+= strnlen
LDFLAGS.SunOS+= -lm
LDFLAGS.NetBSD+= -ltermcap
.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/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|