mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Convert to ELF
This commit is contained in:
parent
b6f54c73a8
commit
ffc7cea58e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=13252
4 changed files with 20 additions and 7 deletions
|
@ -3,7 +3,7 @@
|
|||
# Date created: 16 November 1994
|
||||
# Whom: torstenb
|
||||
#
|
||||
# $Id: Makefile,v 1.7 1997/10/15 13:17:39 erich Exp $
|
||||
# $Id: Makefile,v 1.8 1998/03/15 19:43:13 steve Exp $
|
||||
#
|
||||
|
||||
DISTNAME= mpeg_lib-1.2.1
|
||||
|
@ -20,6 +20,6 @@ pre-install:
|
|||
@mkdir -p ${PREFIX}/bin ${PREFIX}/lib ${PREFIX}/include
|
||||
|
||||
post-install:
|
||||
${LDCONFIG} -m ${PREFIX}/lib
|
||||
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
lib/libmpeg.a
|
||||
lib/libmpeg.so.1.2
|
||||
@exec /sbin/ldconfig -m %B
|
||||
@unexec /sbin/ldconfig -R
|
||||
lib/libmpeg.so
|
||||
@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
|
||||
@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
|
||||
include/mpeg.h
|
||||
|
|
|
@ -133,9 +133,11 @@ lib/X11/mwm/README
|
|||
lib/X11/mwm/alt.map
|
||||
lib/X11/mwm/system.mwmrc
|
||||
lib/libMrm.la
|
||||
lib/libMrm.a
|
||||
lib/libMrm.so
|
||||
lib/libMrm.so.1.2
|
||||
lib/libXm.la
|
||||
lib/libXm.a
|
||||
lib/libXm.so
|
||||
lib/libXm.so.1.2
|
||||
@exec /sbin/ldconfig -m %D/lib
|
||||
|
|
Loading…
Add table
Reference in a new issue