mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
91 lines
2.2 KiB
Plaintext
91 lines
2.2 KiB
Plaintext
--- Makefile.in.orig Mon Feb 26 12:12:54 1996
|
|
+++ Makefile.in Sat Sep 19 13:23:32 1998
|
|
@@ -16,6 +16,7 @@
|
|
RANLIB = @RANLIB@
|
|
SHELL = /bin/sh
|
|
|
|
+.SUFFIXES: .so
|
|
|
|
# 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,42 @@
|
|
mono.c ordered.c ordered2.c mb_ordered.c
|
|
LIBSRC = @libsrc@
|
|
LIBOBJ = @libobj@
|
|
+SHLIBOBJ = @shlibobj@
|
|
|
|
|
|
# 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
|
|
|
|
-all: $(LIBRARY) @extras@
|
|
+all: $(LIBRARY) ${SHLIBRARY} @extras@
|
|
|
|
$(LIBRARY): $(LIBOBJ)
|
|
$(AR) $(ARFLAGS) $(LIBRARY) $(LIBOBJ)
|
|
$(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 +73,9 @@
|
|
distclean: clean
|
|
rm -f config.cache config.log config.status Makefile config.h
|
|
cd extras && $(MAKE) distclean
|
|
+
|
|
+.c.so:
|
|
+ ${CC} ${CFLAGS} -fpic -DPIC -c $< -o $@
|
|
|
|
# Include a system-specific Makefile fragment, if any
|
|
|
|
--- configure.orig Tue Oct 14 14:31:15 1997
|
|
+++ configure Tue Oct 14 14:32:06 1997
|
|
@@ -817,6 +817,7 @@
|
|
if test $dither = yes; then
|
|
libsrc='$(DECODER_SRC) $(DITHER_SRC)'
|
|
libobj='$(DECODER_SRC:.c=.o) $(DITHER_SRC:.c=.o)'
|
|
+ shlibobj='$(DECODER_SRC:.c=.so) $(DITHER_SRC:.c=.so)'
|
|
cat >> confdefs.h <<\EOF
|
|
#define ENABLE_DITHER 1
|
|
EOF
|
|
@@ -825,6 +826,7 @@
|
|
else
|
|
libsrc='$(DECODER_SRC)'
|
|
libobj='$(DECODER_SRC:.c=.o)'
|
|
+ shlibobj='$(DECODER_SRC:.c=.so)'
|
|
cat >> confdefs.h <<\EOF
|
|
#define ENABLE_DITHER 0
|
|
EOF
|
|
@@ -1459,6 +1461,7 @@
|
|
s%@AR@%$AR%g
|
|
s%@libsrc@%$libsrc%g
|
|
s%@libobj@%$libobj%g
|
|
+s%@shlibobj@%$shlibobj%g
|
|
s%@jrevdct@%$jrevdct%g
|
|
s%@extras@%$extras%g
|
|
/@Makefile_extras@/r $Makefile_extras
|