summaryrefslogtreecommitdiff
path: root/audio/lame
diff options
context:
space:
mode:
authorgarbled <garbled>2000-02-15 18:12:16 +0000
committergarbled <garbled>2000-02-15 18:12:16 +0000
commit08a42ef202f9c5ab3040aeea12ca224af37de22b (patch)
treeca101039cca64c8a13dc20bbdffb59a062b9f0dc /audio/lame
parent285c36dc9bf0dd5bae1c9ff76b349709deb7a4e3 (diff)
downloadpkgsrc-08a42ef202f9c5ab3040aeea12ca224af37de22b.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
Diffstat (limited to 'audio/lame')
-rw-r--r--audio/lame/Makefile.common8
-rw-r--r--audio/lame/files/patch-sum3
-rw-r--r--audio/lame/patches/patch-ab22
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