Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
SL11
>
x264
> x264-use-shared-library.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File x264-use-shared-library.patch of Package x264 (Revision 2)
Currently displaying revision
2
,
show latest
diff -ur x264-snapshot-20110225-2245.orig/Makefile x264-snapshot-20110225-2245/Makefile --- x264-snapshot-20110225-2245.orig/Makefile 2011-02-25 22:45:04.000000000 +0100 +++ x264-snapshot-20110225-2245/Makefile 2011-02-26 14:25:51.568295374 +0100 @@ -145,9 +145,10 @@ $(SONAME): .depend $(OBJS) $(OBJASM) $(OBJSO) $(CC) -shared -o $@ $(OBJS) $(OBJASM) $(OBJSO) $(SOFLAGS) $(LDFLAGS) + ln -s $(SONAME) libx264.so -x264$(EXE): $(OBJCLI) libx264.a - $(CC) -o $@ $+ $(LDFLAGSCLI) $(LDFLAGS) +x264$(EXE): $(OBJCLI) $(SONAME) + $(CC) -o $@ $(OBJCLI) -L. -lx264 $(LDFLAGSCLI) $(LDFLAGS) checkasm: tools/checkasm.o libx264.a $(CC) -o $@ $+ $(LDFLAGS) @@ -219,10 +220,12 @@ install -d $(DESTDIR)$(libdir)/pkgconfig install -m 644 x264.h $(DESTDIR)$(includedir) install -m 644 x264_config.h $(DESTDIR)$(includedir) - install -m 644 libx264.a $(DESTDIR)$(libdir) install -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig install x264$(EXE) $(DESTDIR)$(bindir) - $(RANLIB) $(DESTDIR)$(libdir)/libx264.a + if [ -e libx264.a ]; then \ + install -m 644 libx264.a $(DESTDIR)$(libdir); \ + $(RANLIB) $(DESTDIR)$(libdir)/libx264.a; \ + fi ifeq ($(SYS),MINGW) $(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(bindir)) else