summaryrefslogtreecommitdiff
path: root/data/x264
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-06-02 09:37:38 +0000
committerJay Freeman <saurik@saurik.com>2008-06-02 09:37:38 +0000
commit51fbd7b72bf7670494ae83abc339bedbd3db5ee5 (patch)
tree243571af814a18fd9362d3ae92559a9492c66882 /data/x264
parent9e5306a21a5e8006ef274e6eb287fec3b74f3e51 (diff)
x264 should be a shared library.
git-svn-id: http://svn.telesphoreo.org/trunk@294 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/x264')
-rw-r--r--data/x264/darwin.diff65
-rw-r--r--data/x264/libmx.diff12
-rw-r--r--data/x264/make.sh2
-rw-r--r--data/x264/tools.diff23
4 files changed, 66 insertions, 36 deletions
diff --git a/data/x264/darwin.diff b/data/x264/darwin.diff
new file mode 100644
index 000000000..f5dd7cd58
--- /dev/null
+++ b/data/x264/darwin.diff
@@ -0,0 +1,65 @@
+diff -ru x264-snapshot-20080226-2245/configure x264-snapshot-20080226-2245+iPhone/configure
+--- x264-snapshot-20080226-2245/configure 2008-02-26 21:45:02.000000000 +0000
++++ x264-snapshot-20080226-2245+iPhone/configure 2008-05-19 12:49:10.000000000 +0000
+@@ -182,8 +182,8 @@
+ ;;
+ darwin*)
+ SYS="MACOSX"
+- CFLAGS="$CFLAGS -falign-loops=16"
+- LDFLAGS="$LDFLAGS -lm -lmx"
++ CFLAGS="$CFLAGS -falign-loops=16 -fno-common"
++ LDFLAGS="$LDFLAGS -lm"
+ ;;
+ freebsd*)
+ SYS="FREEBSD"
+@@ -454,10 +454,10 @@
+
+ if [ "$shared" = "yes" ]; then
+ API=$(grep '#define X264_BUILD' < x264.h | cut -f 3 -d ' ')
+- echo "SONAME=libx264.so.$API" >> config.mak
++ echo "SONAME=libx264.dylib.$API" >> config.mak
+ echo 'default: $(SONAME)' >> config.mak
+ if [ "$gtk" = "yes" ]; then
+- echo "SONAMEGTK=libx264gtk.so.$API" >> gtk/config.mak
++ echo "SONAMEGTK=libx264gtk.dylib.$API" >> gtk/config.mak
+ fi
+ fi
+
+diff -ru x264-snapshot-20080226-2245/Makefile x264-snapshot-20080226-2245+iPhone/Makefile
+--- x264-snapshot-20080226-2245/Makefile 2008-02-26 21:45:02.000000000 +0000
++++ x264-snapshot-20080226-2245+iPhone/Makefile 2008-05-19 12:48:00.000000000 +0000
+@@ -74,11 +74,11 @@
+ default: $(DEP) x264$(EXE)
+
+ libx264.a: .depend $(OBJS) $(OBJASM)
+- ar rc libx264.a $(OBJS) $(OBJASM)
+- ranlib libx264.a
++ "$${PKG_TARG}-ar" rc libx264.a $(OBJS) $(OBJASM)
++ "$${PKG_TARG}-ranlib" libx264.a
+
+ $(SONAME): .depend $(OBJS) $(OBJASM)
+- $(CC) -shared -o $@ $(OBJS) $(OBJASM) -Wl,-soname,$(SONAME) $(LDFLAGS)
++ $(CC) -dynamiclib -o $@ $(OBJS) $(OBJASM) -install_name $(libdir)/$(SONAME) $(LDFLAGS)
+
+ x264$(EXE): $(OBJCLI) libx264.a
+ $(CC) -o $@ $+ $(LDFLAGS)
+@@ -156,8 +156,8 @@
+ install -m 644 libx264.a $(DESTDIR)$(libdir)
+ install -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig
+ install x264 $(DESTDIR)$(bindir)
+- ranlib $(DESTDIR)$(libdir)/libx264.a
+- $(if $(SONAME), ln -sf $(SONAME) $(DESTDIR)$(libdir)/libx264.so)
++ "$${PKG_TARG}-ranlib" $(DESTDIR)$(libdir)/libx264.a
++ $(if $(SONAME), ln -sf $(SONAME) $(DESTDIR)$(libdir)/libx264.dylib)
+ $(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(libdir))
+
+ install-gtk: libx264gtk.a
+@@ -166,7 +166,7 @@
+ uninstall:
+ rm -f $(DESTDIR)$(includedir)/x264.h $(DESTDIR)$(libdir)/libx264.a
+ rm -f $(DESTDIR)$(bindir)/x264 $(DESTDIR)$(libdir)/pkgconfig/x264.pc
+- $(if $(SONAME), rm -f $(DESTDIR)$(libdir)/$(SONAME) $(DESTDIR)$(libdir)/libx264.so)
++ $(if $(SONAME), rm -f $(DESTDIR)$(libdir)/$(SONAME) $(DESTDIR)$(libdir)/libx264.dylib)
+ $(MAKE) -C gtk uninstall
+
+ etags: TAGS
diff --git a/data/x264/libmx.diff b/data/x264/libmx.diff
deleted file mode 100644
index 7f4e2a5db..000000000
--- a/data/x264/libmx.diff
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ru x264-snapshot-20080226-2245/configure x264-snapshot-20080226-2245+iPhone/configure
---- x264-snapshot-20080226-2245/configure 2008-02-26 21:45:02.000000000 +0000
-+++ x264-snapshot-20080226-2245+iPhone/configure 2008-02-27 08:09:51.000000000 +0000
-@@ -183,7 +183,7 @@
- darwin*)
- SYS="MACOSX"
- CFLAGS="$CFLAGS -falign-loops=16"
-- LDFLAGS="$LDFLAGS -lm -lmx"
-+ LDFLAGS="$LDFLAGS -lm"
- ;;
- freebsd*)
- SYS="FREEBSD"
diff --git a/data/x264/make.sh b/data/x264/make.sh
index 81fa96b10..8399d8b7b 100644
--- a/data/x264/make.sh
+++ b/data/x264/make.sh
@@ -1,4 +1,4 @@
pkg:setup
-CC=${PKG_TARG}-gcc pkg:configure
+CC=${PKG_TARG}-gcc pkg:configure --enable-shared
make
pkg:install
diff --git a/data/x264/tools.diff b/data/x264/tools.diff
deleted file mode 100644
index 2974dbb44..000000000
--- a/data/x264/tools.diff
+++ /dev/null
@@ -1,23 +0,0 @@
-diff -ru x264-snapshot-20080226-2245/Makefile x264-snapshot-20080226-2245+iPhone/Makefile
---- x264-snapshot-20080226-2245/Makefile 2008-02-26 21:45:02.000000000 +0000
-+++ x264-snapshot-20080226-2245+iPhone/Makefile 2008-02-27 08:11:19.000000000 +0000
-@@ -74,8 +74,8 @@
- default: $(DEP) x264$(EXE)
-
- libx264.a: .depend $(OBJS) $(OBJASM)
-- ar rc libx264.a $(OBJS) $(OBJASM)
-- ranlib libx264.a
-+ "$${PKG_TARG}-ar" rc libx264.a $(OBJS) $(OBJASM)
-+ "$${PKG_TARG}-ranlib" libx264.a
-
- $(SONAME): .depend $(OBJS) $(OBJASM)
- $(CC) -shared -o $@ $(OBJS) $(OBJASM) -Wl,-soname,$(SONAME) $(LDFLAGS)
-@@ -156,7 +156,7 @@
- install -m 644 libx264.a $(DESTDIR)$(libdir)
- install -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig
- install x264 $(DESTDIR)$(bindir)
-- ranlib $(DESTDIR)$(libdir)/libx264.a
-+ "$${PKG_TARG}-ranlib" $(DESTDIR)$(libdir)/libx264.a
- $(if $(SONAME), ln -sf $(SONAME) $(DESTDIR)$(libdir)/libx264.so)
- $(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(libdir))
-