aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/x264-devel
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-devel
parentc2a017cc49b415616014e15408ac980ebc3ecc89 (diff)
downloadfreebsd-ports-gnome-c89903bd4876ffdd02e6b37ff4b73fa475e6f399.tar.gz
freebsd-ports-gnome-c89903bd4876ffdd02e6b37ff4b73fa475e6f399.tar.zst
freebsd-ports-gnome-c89903bd4876ffdd02e6b37ff4b73fa475e6f399.zip
- Add support for sparc64 [1]
- use LDFLAGS instead of -lm Submitted by: kwm via irc [1]
Diffstat (limited to 'multimedia/x264-devel')
-rw-r--r--multimedia/x264-devel/files/patch-Makefile2
-rw-r--r--multimedia/x264-devel/files/patch-configure15
2 files changed, 14 insertions, 3 deletions
diff --git a/multimedia/x264-devel/files/patch-Makefile b/multimedia/x264-devel/files/patch-Makefile
index 05eb5a7cbbef..7bd7bf9409b6 100644
--- a/multimedia/x264-devel/files/patch-Makefile
+++ b/multimedia/x264-devel/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-devel/files/patch-configure b/multimedia/x264-devel/files/patch-configure
index a45657d39c73..52e8e621795f 100644
--- a/multimedia/x264-devel/files/patch-configure
+++ b/multimedia/x264-devel/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"