summaryrefslogtreecommitdiffstats
path: root/multimedia/x264/files
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2005-01-20 06:49:37 +0000
committerahze <ahze@FreeBSD.org>2005-01-20 06:49:37 +0000
commit6c656c487e6a71a911399ab9c53fa2bfa84e7d61 (patch)
tree86762d2bddb1cc14c08418a640295a29376f279b /multimedia/x264/files
parent848dc5d672789b319f217d95f6597376220652de (diff)
downloadFreeBSD-ports-6c656c487e6a71a911399ab9c53fa2bfa84e7d61.zip
FreeBSD-ports-6c656c487e6a71a911399ab9c53fa2bfa84e7d61.tar.gz
- Build and install Shared library
- Bump PORTREVISION
Diffstat (limited to 'multimedia/x264/files')
-rw-r--r--multimedia/x264/files/patch-Makefile31
1 files changed, 27 insertions, 4 deletions
diff --git a/multimedia/x264/files/patch-Makefile b/multimedia/x264/files/patch-Makefile
index 5fd25a3..4fbd383 100644
--- a/multimedia/x264/files/patch-Makefile
+++ b/multimedia/x264/files/patch-Makefile
@@ -1,12 +1,35 @@
---- Makefile.orig Tue Jan 11 23:32:24 2005
-+++ Makefile Tue Jan 11 23:33:05 2005
-@@ -22,8 +22,7 @@
+--- Makefile.orig Fri Oct 29 06:05:39 2004
++++ Makefile Thu Jan 20 01:42:05 2005
+@@ -20,10 +20,11 @@
+ SRCS= $(SRCS_COMMON) core/i386/mc-c.c core/i386/dct-c.c core/i386/predict.c
+ ASMSRC= core/i386/dct.asm core/i386/cpu.asm core/i386/pixel.asm core/i386/mc.asm
OBJASM= $(ASMSRC:%.asm=%.o)
++SHARED_LIB= libx264.so
++SHARED_LIB_VER= $(SHARED_LIB).%%SHLIB_VER%%
endif
-CC=gcc
-CFLAGS=-g -Wall -I. -DDEBUG -O4 -funroll-loops -D__X264__ $(PFLAGS)
-+CFLAGS=-I. -D__X264__ %%CFLAGS%%
++CFLAGS=-I. -D__X264__ %%CFLAGS%% -fPIC
AS= nasm
# for linux
+@@ -34,7 +35,7 @@
+ OBJS = $(SRCS:%.c=%.o)
+ DEP = depend
+
+-default: $(DEP) x264
++default: $(DEP) x264 $(SHARED_LIB_VER)
+
+ libx264.a: $(OBJS) $(OBJASM)
+ ar rc libx264.a $(OBJS) $(OBJASM)
+@@ -42,6 +43,9 @@
+
+ x264: libx264.a x264.o
+ $(CC) $(CFLAGS) -o x264 x264.o libx264.a -lm
++
++$(SHARED_LIB_VER): $(OBJS) x264
++ $(CC) $(CFLAGS) -shared -Wl,-soname,$(SHARED_LIB_VER) -o $(SHARED_LIB_VER) $(OBJS)
+
+ checkasm: testing/checkasm.c libx264.a
+ $(CC) $(CFLAGS) -o checkasm $< libx264.a -lm
OpenPOWER on IntegriCloud