From 4a55e7acf6a81097e54303fd853ccf740538afb8 Mon Sep 17 00:00:00 2001 From: pav Date: Wed, 8 Dec 2004 19:29:09 +0000 Subject: - Make the library actually usable on gcc 3.4 systems: /usr/local/lib/libfame.so: undefined reference to `_mmx_one' PR: ports/74806 Submitted by: Hendrik Scholz Obtained from: http://www.linuxfromscratch.org/blfs/downloads/svn/libfame-0.9.1-gcc34-1.patch --- multimedia/libfame/Makefile | 1 + multimedia/libfame/files/patch-mmx_one-gcc34 | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 multimedia/libfame/files/patch-mmx_one-gcc34 diff --git a/multimedia/libfame/Makefile b/multimedia/libfame/Makefile index e1e361321d4..2f5828e6a93 100644 --- a/multimedia/libfame/Makefile +++ b/multimedia/libfame/Makefile @@ -8,6 +8,7 @@ PORTNAME= libfame PORTVERSION= 0.9.1 +PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= fame diff --git a/multimedia/libfame/files/patch-mmx_one-gcc34 b/multimedia/libfame/files/patch-mmx_one-gcc34 new file mode 100644 index 00000000000..114cb9a1da3 --- /dev/null +++ b/multimedia/libfame/files/patch-mmx_one-gcc34 @@ -0,0 +1,22 @@ +--- src/half_sse.h.orig Tue Dec 7 10:24:14 2004 ++++ src/half_sse.h Tue Dec 7 10:24:29 2004 +@@ -19,7 +19,7 @@ + */ + /**************************** half-pixel interpolation ***********************/ + +-static short const _mmx_one[] = { 1, 1, 1, 1 }; ++const _mmx_one[] = { 1, 1, 1, 1 }; + static unsigned char const _mmx_one_byte[] = {1,1,1,1,1,1,1,1}; + + +--- src/half_mmx.h.orig Tue Dec 7 10:23:21 2004 ++++ src/half_mmx.h Tue Dec 7 10:23:32 2004 +@@ -18,7 +18,7 @@ + */ + /**************************** half-pixel interpolation ***********************/ + +-static short const _mmx_one[] = { 1, 1, 1, 1 }; ++const _mmx_one[] = { 1, 1, 1, 1 }; + + static void inline mmx_interpolate(unsigned char **ref, + int pitch, -- cgit