diff options
author | garbled <garbled@pkgsrc.org> | 2000-02-15 18:12:16 +0000 |
---|---|---|
committer | garbled <garbled@pkgsrc.org> | 2000-02-15 18:12:16 +0000 |
commit | 885a1724867a05636996ce397d8c000d15ddf95c (patch) | |
tree | ca101039cca64c8a13dc20bbdffb59a062b9f0dc | |
parent | a52965912b125be0dd5250333f63b6cdb388b979 (diff) | |
download | pkgsrc-885a1724867a05636996ce397d8c000d15ddf95c.tar.gz |
Add optimization for alpha. Enables tons of compiler optimizations on
the build, and links with the libffm libm replacement for alpha.
160kbit encode without libffm: 3:44
160kbit encode with libffm : 2:03
VBR=4 encode without libffm : 9:12
VBR=4 encode with libffm : 4:39
-rw-r--r-- | audio/lame/Makefile.common | 8 | ||||
-rw-r--r-- | audio/lame/files/patch-sum | 3 | ||||
-rw-r--r-- | audio/lame/patches/patch-ab | 22 |
3 files changed, 31 insertions, 2 deletions
diff --git a/audio/lame/Makefile.common b/audio/lame/Makefile.common index c166067a7a2..80f4ff5e9d4 100644 --- a/audio/lame/Makefile.common +++ b/audio/lame/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.1 1999/11/03 23:50:08 hubertf Exp $ +# $NetBSD: Makefile.common,v 1.2 2000/02/15 18:12:16 garbled Exp $ # # @@ -13,6 +13,12 @@ DISTFILES= dist10.tar.gz.a dist10.tar.gz.b PATCHFILES= lame${VERS}.patch.gz PATCH_SITES= ${MASTER_SITES} +.include "../../mk/bsd.prefs.mk" +.if (${MACHINE_ARCH} == "alpha") +DEPENDS+= libffm-*:../../math/libffm +MAKE_ENV+= MACHINE_ARCH=${MACHINE_ARCH} +.endif + WRKSRC= ${WRKDIR}/lame${VERS} DIST_SUBDIR= notlame USE_GMAKE= yes diff --git a/audio/lame/files/patch-sum b/audio/lame/files/patch-sum index 6fee89cf973..17807cda9f3 100644 --- a/audio/lame/files/patch-sum +++ b/audio/lame/files/patch-sum @@ -1,3 +1,4 @@ -$NetBSD: patch-sum,v 1.7 2000/02/08 16:54:41 garbled Exp $ +$NetBSD: patch-sum,v 1.8 2000/02/15 18:12:17 garbled Exp $ MD5 (patch-aa) = 7f2e2c817e9e0bd65dbcda7f53736aee +MD5 (patch-ab) = 1646d21bb070c5e8a43100200b130948 diff --git a/audio/lame/patches/patch-ab b/audio/lame/patches/patch-ab new file mode 100644 index 00000000000..fbd8c238b28 --- /dev/null +++ b/audio/lame/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1 2000/02/15 18:12:17 garbled Exp $ + +--- Makefile.orig Mon Feb 14 17:18:19 2000 ++++ Makefile Mon Feb 14 17:16:38 2000 +@@ -50,6 +50,17 @@ + #GTK = -DHAVEGTK `gtk-config --cflags` + #GTKLIBS = `gtk-config --libs` + ++ifeq ($(MACHINE_ARCH),alpha) ++# double is faster than float on Alpha ++CC_OPTS = -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 ++# Compaq's fast math library ++#LIBS = -lcpml ++endif + + ########################################################################## + # LINUX |