aboutsummaryrefslogtreecommitdiffstats
path: root/audio/gsm
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2007-01-30 18:25:34 +0800
committerpav <pav@FreeBSD.org>2007-01-30 18:25:34 +0800
commit68e4663f01d748743e0029f83931c02fba58eb4e (patch)
treed24dbe32e4bdb87d0f3ba1c46717e6e34576e724 /audio/gsm
parentc6c1440c2b66077bedba90612a4827a8051ec9c1 (diff)
downloadfreebsd-ports-graphics-68e4663f01d748743e0029f83931c02fba58eb4e.tar.gz
freebsd-ports-graphics-68e4663f01d748743e0029f83931c02fba58eb4e.tar.zst
freebsd-ports-graphics-68e4663f01d748743e0029f83931c02fba58eb4e.zip
- Remove support for a.out format and PORTOBJFORMAT variable from individual
ports With hat: portmgr
Diffstat (limited to 'audio/gsm')
-rw-r--r--audio/gsm/files/patch-ab31
1 files changed, 12 insertions, 19 deletions
diff --git a/audio/gsm/files/patch-ab b/audio/gsm/files/patch-ab
index eba4d10a667..3408bd032c0 100644
--- a/audio/gsm/files/patch-ab
+++ b/audio/gsm/files/patch-ab
@@ -1,5 +1,5 @@
---- Makefile.orig Wed Apr 26 12:14:26 2006
-+++ Makefile Fri Aug 11 13:46:15 2006
+--- Makefile.orig Wed Apr 26 15:14:26 2006
++++ Makefile Thu Jan 25 22:12:30 2007
@@ -43,8 +43,8 @@
# CC = /usr/lang/acc
# CCFLAGS = -c -O
@@ -51,7 +51,7 @@
#
# You shouldn't have to configure below this line if you're porting.
-@@ -129,18 +132,23 @@
+@@ -129,18 +132,19 @@
# DEBUG = -DNDEBUG
######### Remove -DNDEBUG to enable assertions.
@@ -70,15 +70,11 @@
-LIBGSM = $(LIB)/libgsm.a
-
+LIBGSM = libgsm.a
-+.if ${PORTOBJFORMAT} == elf
+SOLIBGSM = libgsm.so.1
-+.else
-+SOLIBGSM = libgsm.so.1.1
-+.endif
TOAST = $(BIN)/toast
UNTOAST = $(BIN)/untoast
TCAT = $(BIN)/tcat
-@@ -257,13 +265,15 @@
+@@ -257,13 +261,15 @@
# Install targets
GSM_INSTALL_TARGETS = \
@@ -95,7 +91,7 @@
TOAST_INSTALL_TARGETS = \
$(TOAST_INSTALL_BIN)/toast \
$(TOAST_INSTALL_BIN)/tcat \
-@@ -277,9 +287,12 @@
+@@ -277,9 +283,12 @@
$(CC) $(CFLAGS) $?
@-mv `$(BASENAME) $@` $@ > /dev/null 2>&1
@@ -109,7 +105,7 @@
@-echo $(ROOT): Done.
tst: $(TST)/lin2cod $(TST)/cod2lin $(TOAST) $(TST)/test-result
-@@ -299,24 +312,32 @@
+@@ -299,24 +308,28 @@
# The basic API: libgsm
@@ -118,11 +114,7 @@
- $(AR) $(ARFLAGS) $(LIBGSM) $(GSM_OBJECTS)
- $(RANLIB) $(LIBGSM)
+$(LIB)/$(SOLIBGSM): $(LIB) $(GSM_OBJECTS:S/o$/so/g)
-+.if ${PORTOBJFORMAT} == elf
+ $(CC) -o $@ -shared -Wl,-soname,$(SOLIBGSM) $(GSM_OBJECTS:S/o$/so/g)
-+.else
-+ ld -Bshareable -o $@ $(GSM_OBJECTS:S/o$/so/g)
-+.endif
+ (cd $(LIB); $(LN) -sf $(SOLIBGSM) `echo $(SOLIBGSM) | sed 's/\.so.*$$/.so/'`)
+
+$(LIB)/$(LIBGSM): $(LIB) $(GSM_OBJECTS)
@@ -152,7 +144,7 @@
# The local bin and lib directories
-@@ -342,62 +363,67 @@
+@@ -342,62 +355,67 @@
gsmuninstall:
-if [ x"$(GSM_INSTALL_ROOT)" != x ] ; then \
@@ -232,18 +224,19 @@
- -rm $@
- cp $? $@
- chmod 444 $@
-+ $(RM) $@
-+ ${BSD_INSTALL_DATA} $? $@
-
+-
-$(GSM_INSTALL_LIB)/libgsm.a: $(LIBGSM)
- -rm $@
- cp $? $@
- chmod 444 $@
++ $(RM) $@
++ ${BSD_INSTALL_DATA} $? $@
+
+$(GSM_INSTALL_LIB)/$(LIBGSM): $(LIB)/$(LIBGSM)
+ $(RM) $@
+ ${BSD_INSTALL_DATA} $? $@
+ $(RANLIB) $@
-
++
+$(GSM_INSTALL_LIB)/$(SOLIBGSM): $(LIB)/$(SOLIBGSM)
+ $(RM) $@
+ ${BSD_INSTALL_DATA} $? $@