blob: f29bbbfad3afebee6a19e8deefb4087163c65ae7 (
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
42
43
44
45
46
47
48
49
50
51
|
# $NetBSD: Makefile,v 1.13 2001/03/24 20:22:50 zuntum Exp $
#
VERS= 3.87
DISTNAME= lame${VERS}beta
PKGNAME= lame-${VERS}
WRKSRC= ${WRKDIR}/lame${VERS}
CATEGORIES= audio
MASTER_SITES= ftp://lame.sourceforge.net/pub/lame/src/
MAINTAINER= hubertf@netbsd.org
HOMEPAGE= http://www.mp3dev.org/mp3/
COMMENT= Fast, high quality MP3 encoder
GNU_CONFIGURE= yes
USE_GMAKE= yes
LICENSE= fee-based-commercial-use
CONFIGURE_ARGS+= --without-vorbis
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/lame ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/doc/man/lame.1 ${PREFIX}/man/man1/lame.1
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/lame
for f in contributors.html examples.html history.html id3.html \
index.html lame.css modes.html node5.html node6.html \
node7.html switchs.html; do \
${INSTALL_DATA} ${WRKSRC}/doc/html/$$f \
${PREFIX}/share/doc/html/lame; \
done
.include "../../mk/bsd.prefs.mk"
.if defined(LAME_USE_GTK)
DEPENDS= gtk+-1.2.*:../../x11/gtk
.else
CONFIGURE_ARGS+= --enable-analyzer=no
.endif
.if (${MACHINE_ARCH} == "alpha")
DEPENDS+= libffm-*:../../math/libffm
# 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
# optimized libffm (free fast math library)
LIBS+= -L${PREFIX}/lib -Wl,-R${PREFIX}/lib -lffm -lm
CONFIGURE_ENV+= LIBS="${LIBS}"
.endif
.include "../../mk/bsd.pkg.mk"
|