diff options
Diffstat (limited to 'graphics/mpeg-lib/files/patch-aa')
-rw-r--r-- | graphics/mpeg-lib/files/patch-aa | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/graphics/mpeg-lib/files/patch-aa b/graphics/mpeg-lib/files/patch-aa index 357f5691a0f7..4e46f6c3dbd4 100644 --- a/graphics/mpeg-lib/files/patch-aa +++ b/graphics/mpeg-lib/files/patch-aa @@ -1,5 +1,5 @@ --- Makefile.in.orig Mon Feb 26 12:12:54 1996 -+++ Makefile.in Tue Oct 14 14:38:05 1997 ++++ Makefile.in Sat Sep 19 13:23:32 1998 @@ -16,6 +16,7 @@ RANLIB = @RANLIB@ SHELL = /bin/sh @@ -8,7 +8,7 @@ # Source for the library itself -- note that we define LIBSRC and # LIBOBJ this way (instead of just LIBOBJ=$(LIBSRC:.c=.o) because -@@ -27,23 +28,32 @@ +@@ -27,23 +28,42 @@ mono.c ordered.c ordered2.c mb_ordered.c LIBSRC = @libsrc@ LIBOBJ = @libobj@ @@ -18,7 +18,11 @@ # Other files of interest LIBRARY = libmpeg.a ++.if ${PORTOBJFORMAT} == elf ++SHLIBRARY = libmpeg.so.1 ++.else +SHLIBRARY = libmpeg.so.1.2 ++.endif MPEGTEST = mpegtest # Targets for all platforms @@ -31,18 +35,24 @@ $(RANLIB) $(LIBRARY) +$(SHLIBRARY): $(SHLIBOBJ) ++.if ${PORTOBJFORMAT} == elf ++ cc -shared -Wl,-soname,$(SHLIBRARY) -o $(SHLIBRARY) $(SHLIBOBJ) ++.else + cc -shared -o $(SHLIBRARY) $(SHLIBOBJ) ++.endif ++ ln -sf $(SHLIBRARY) `echo $(SHLIBRARY) | sed 's/\.so.*$$/.so/'` + $(LIBOBJ): Makefile +install: + install -c -m 444 ${LIBRARY} ${SHLIBRARY} ${PREFIX}/lib ++ (cd ${PREFIX}/lib;ln -sf $(SHLIBRARY) `echo $(SHLIBRARY) | sed 's/\.so.*$$/.so/'`) + install -c -m 444 mpeg.h ${PREFIX}/include + @Makefile_extras@ clean: -@@ -53,6 +63,9 @@ +@@ -53,6 +73,9 @@ distclean: clean rm -f config.cache config.log config.status Makefile config.h cd extras && $(MAKE) distclean |