aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/x264
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2005-04-22 22:18:03 +0800
committerahze <ahze@FreeBSD.org>2005-04-22 22:18:03 +0800
commitc89903bd4876ffdd02e6b37ff4b73fa475e6f399 (patch)
tree5d2bff7b4d0ade845c24df9d88477d94fe5dc637 /multimedia/x264
parentc2a017cc49b415616014e15408ac980ebc3ecc89 (diff)
downloadfreebsd-ports-graphics-c89903bd4876ffdd02e6b37ff4b73fa475e6f399.tar.gz
freebsd-ports-graphics-c89903bd4876ffdd02e6b37ff4b73fa475e6f399.tar.zst
freebsd-ports-graphics-c89903bd4876ffdd02e6b37ff4b73fa475e6f399.zip
- Add support for sparc64 [1]
- use LDFLAGS instead of -lm Submitted by: kwm via irc [1]
Diffstat (limited to 'multimedia/x264')
-rw-r--r--multimedia/x264/files/patch-Makefile2
-rw-r--r--multimedia/x264/files/patch-configure15
2 files changed, 14 insertions, 3 deletions
diff --git a/multimedia/x264/files/patch-Makefile b/multimedia/x264/files/patch-Makefile
index 05eb5a7cbbe..7bd7bf9409b 100644
--- a/multimedia/x264/files/patch-Makefile
+++ b/multimedia/x264/files/patch-Makefile
@@ -38,7 +38,7 @@
+ $(CC) -o $@ x264.o $(SHARED_LIB_VER) $(LDFLAGS)
+
+$(SHARED_LIB_VER): $(OBJS) libx264.a
-+ $(CC) $(CFLAGS) -shared -Wl,-soname,$(SHARED_LIB_VER) -o $(SHARED_LIB_VER) $(OBJS) $(OBJASM) -lm
++ $(CC) $(CFLAGS) -shared -Wl,-soname,$(SHARED_LIB_VER) -o $(SHARED_LIB_VER) $(OBJS) $(OBJASM) $(LDFLAGS)
x264vfw.dll: libx264.a $(wildcard vfw/*.c vfw/*.h)
make -C vfw/build/cygwin
diff --git a/multimedia/x264/files/patch-configure b/multimedia/x264/files/patch-configure
index a45657d39c7..52e8e621795 100644
--- a/multimedia/x264/files/patch-configure
+++ b/multimedia/x264/files/patch-configure
@@ -1,5 +1,5 @@
---- configure.orig Thu Apr 21 08:03:47 2005
-+++ configure Thu Apr 21 08:08:16 2005
+--- configure.orig Thu Apr 21 11:04:21 2005
++++ configure Fri Apr 22 16:01:23 2005
@@ -22,8 +22,8 @@
debug="no"
vfw="no"
@@ -20,3 +20,14 @@
ARCH="X86_64"
CFLAGS="$CFLAGS -DHAVE_MMXEXT -DHAVE_SSE2"
AS="yasm"
+@@ -89,6 +89,10 @@
+ else
+ CFLAGS="$CFLAGS -maltivec -mabi=altivec"
+ fi
++ ;;
++ "Sparc64" | sparc64)
++ ARCH="SPARC64"
++ CFLAGS="$CFLAGS"
+ ;;
+ *)
+ echo "Unknown platform $UNAMEM, edit the configure"