libx264-98-shlibs stable port information

Package: libx264-98-shlibs
Version: 0.0.20100602
Revision: 6
###
BuildDepends: x11-dev, fink (>= 0.24.12-1), yasm (>= 0.8.0-1)
Depends: x11
###
Source: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20100602-2245.tar.bz2
SourceDirectory: x264-snapshot-20100602-2245
Source-MD5: 1630006c8947ecfc8b4b79ae9cc5749c
###
PatchFile: %n.patch
PatchFile-MD5: 5a507681e0bad207279e564c47896666
###
DocFiles: AUTHORS COPYING
###
NoSetCFLAGS: true
ConfigureParams: --enable-visualize --enable-pic --enable-shared --host=%m-apple-darwin`uname -r` --disable-lavf-input
CompileScript: <<
#!/bin/sh -ev
export CFLAGS="-I. -fno-common -I%p/include"
if test "%m" != "powerpc"; then CFLAGS="$CFLAGS -msse2"; fi
./configure %c
/usr/bin/make -w
<<
###
InstallScript: <<
make install DESTDIR=%d
/bin/ln -s libx264.98.dylib %i/lib/libx264.dylib
<<
###
Shlibs: %p/lib/libx264.98.dylib 1.0.0 %n (>= 0.0.20100602-5)
###
SplitOff: <<
Package: x264
Depends: libx264-98-shlibs (>= %v-%r), x11
Files: <<
bin
share
<<
DocFiles: AUTHORS COPYING
<<
SplitOff2: <<
Package: libx264-98-dev
Depends: libx264-98-shlibs (>= %v-%r)
Conflicts: <<
libx264-dev,
libx264-98-dev,
libx264-115-dev,
libx264-118-dev,
libx264-devel-dev
<<
Replaces: <<
libx264-dev,
libx264-98-dev,
libx264-115-dev,
libx264-118-dev,
libx264-devel-dev
<<
BuildDependsOnly: true
Files: <<
include/x264.h
lib/libx264.a
lib/libx264.dylib
lib/pkgconfig/x264.pc
<<
DocFiles: AUTHORS COPYING
<<
###
Description: Encoding H264/AVC video streams
DescDetail: <<
x264 is a free library for encoding H264/AVC video streams
<<
DescPackaging: <<
Starting with library version -98-, the -dev splitoff is named to match the -shlibs splitoff. In version -57-, the dev splitoff was simply named libx264-dev, and this generated much confusion for the dependency engine.
<<
###
License: GPL
Maintainer: Hanspeter Niederstrasser
Homepage: http://www.videolan.org/developers/x264.html

libx264-98-shlibs stable port .patch

diff -ruN x264-snapshot-20100301-2245.orig/Makefile x264-snapshot-20100301-2245/Makefile
--- x264-snapshot-20100301-2245.orig/Makefile 2010-03-06 02:14:30.000000000 +0900
+++ x264-snapshot-20100301-2245/Makefile 2010-03-06 02:16:03.000000000 +0900
@@ -123,7 +123,7 @@
$(RANLIB) libx264.a

$(SONAME): .depend $(OBJS) $(OBJASM) $(OBJSO)
- $(CC) -shared -o $@ $(OBJS) $(OBJASM) $(OBJSO) $(SOFLAGS) $(LDFLAGS)
+ $(CC) -o $@ $(OBJS) $(OBJASM) $(SOFLAGS)

x264$(EXE): $(OBJCLI) libx264.a
$(CC) -o $@ $+ $(LDFLAGS) $(LDFLAGSCLI)
@@ -202,7 +202,7 @@
ifeq ($(SYS),MINGW)
$(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(bindir))
else
- $(if $(SONAME), ln -f -s $(SONAME) $(DESTDIR)$(libdir)/libx264.$(SOSUFFIX))
+ $(if $(SONAME), ln -sf $(SONAME) $(DESTDIR)$(libdir)/$(SONAME_INSTALL))
$(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(libdir))
endif
$(if $(IMPLIBNAME), install -m 644 $(IMPLIBNAME) $(DESTDIR)$(libdir))
diff -ruN x264-snapshot-20100301-2245.orig/configure x264-snapshot-20100301-2245/configure
--- x264-snapshot-20100301-2245.orig/configure 2010-03-06 02:14:30.000000000 +0900
+++ x264-snapshot-20100301-2245/configure 2010-03-06 02:24:39.000000000 +0900
@@ -17,7 +17,7 @@
echo " --enable-gprof adds -pg, doesn't strip"
echo " --enable-visualize enables visualization (X11 only)"
echo " --enable-pic build position-independent code"
-echo " --enable-shared build libx264.so"
+echo " --enable-shared build libx264.dylib"
echo " --extra-asflags=EASFLAGS add EASFLAGS to ASFLAGS"
echo " --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS"
echo " --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS"
@@ -188,10 +188,10 @@
ASFLAGS="$ASFLAGS ${opt#--extra-asflags=}"
;;
--extra-cflags=*)
- CFLAGS="$CFLAGS ${opt#--extra-cflags=}"
+ CFLAGS="${opt#--extra-cflags=} $CFLAGS"
;;
--extra-ldflags=*)
- LDFLAGS="$LDFLAGS ${opt#--extra-ldflags=}"
+ LDFLAGS="${opt#--extra-ldflags=} $LDFLAGS"
;;
--enable-pthread)
pthread="auto" # can't skip detection, since it differs by OS
@@ -677,8 +677,10 @@
echo 'SOFLAGS=-Wl,--out-implib,$(IMPLIBNAME) -Wl,--enable-auto-image-base' >> config.mak
elif [ "$SYS" = "MACOSX" ]; then
echo "SOSUFFIX=dylib" >> config.mak
- echo "SONAME=libx264.$API.dylib" >> config.mak
- echo 'SOFLAGS=-dynamiclib -Wl,-single_module -Wl,-read_only_relocs,suppress -install_name $(DESTDIR)$(libdir)/$(SONAME)' >> config.mak
+ echo "SOINSTALLPATH=${prefix}/lib" >> config.mak
+ echo "SONAME_INSTALL=libx264.$API.dylib" >> config.mak
+ echo "SONAME=libx264.$API.0.0.dylib" >> config.mak
+ echo 'SOFLAGS=-dynamiclib -install_name $(SOINSTALLPATH)/$(SONAME_INSTALL) -compatibility_version 1 -current_version 1 -Wl,-read_only_relocs,suppress $(LDFLAGS)' >> config.mak
elif [ "$SYS" = "SunOS" ]; then
echo "SOSUFFIX=so" >> config.mak
echo "SONAME=libx264.so.$API" >> config.mak

libx264-98-shlibs _unstable_ port .patch