Skip to content
Snippets Groups Projects
Commit 20f8d5bf authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Tristan Matthews
Browse files

contrib: add gsm rules and patches

Based on VideoLan code by Jean-Baptiste Kempf et al.
Refs: #46617

Change-Id: I32b34e06ba91999d9e978f0cf1728bebacbdb9b0
parent 1a2c5fa2
No related branches found
No related tags found
No related merge requests found
0d0cf9e1e81e64cd84f588c1e4f0cb74b849d45e41fdebf860f63588084c73c7c5198bfe73a6c976bda5735ee516661d3db00afbb5cc5886a7ee3a7b31d673aa libgsm_1.0.13.tar.gz
diff -ruN gsm/Makefile gsm.new/Makefile
--- gsm/Makefile 2006-04-26 21:14:26.000000000 +0200
+++ gsm.new/Makefile 2009-03-29 20:12:39.000000000 +0200
@@ -43,10 +43,8 @@
# CC = /usr/lang/acc
# CCFLAGS = -c -O
-CC = gcc -ansi -pedantic
CCFLAGS = -c -O2 -DNeedFunctionPrototypes=1
-LD = $(CC)
# LD = gcc
# LDFLAGS =
@@ -98,14 +96,11 @@
SHELL = /bin/sh
LN = ln
BASENAME = basename
-AR = ar
ARFLAGS = cr
RMFLAGS =
FIND = find
COMPRESS = compress
COMPRESSFLAGS =
-# RANLIB = true
-RANLIB = ranlib
#
# You shouldn't have to configure below this line if you're porting.
@@ -279,7 +274,7 @@
# Target rules
-all: $(LIBGSM) $(TOAST) $(TCAT) $(UNTOAST)
+all: $(LIBGSM)
@-echo $(ROOT): Done.
tst: $(TST)/lin2cod $(TST)/cod2lin $(TOAST) $(TST)/test-result
# GSM
GSM_VERSION := 1.0.13
GSM_URL := $(CONTRIB_VIDEOLAN)/libgsm_$(GSM_VERSION).tar.gz
PKGS += gsm
$(TARBALLS)/libgsm_$(GSM_VERSION).tar.gz:
$(call download,$(GSM_URL))
.sum-gsm: libgsm_$(GSM_VERSION).tar.gz
gsm: libgsm_$(GSM_VERSION).tar.gz .sum-gsm
$(UNPACK)
mv gsm-1.0-* libgsm_$(GSM_VERSION)
$(APPLY) $(SRC)/gsm/gsm-cross.patch
sed -e 's/^CFLAGS.*=/CFLAGS+=/' -i.orig libgsm_$(GSM_VERSION)/Makefile
$(MOVE)
.gsm: gsm
cd $< && $(HOSTVARS) $(MAKE)
mkdir -p "$(PREFIX)/include/gsm" "$(PREFIX)/lib"
cp $</inc/gsm.h "$(PREFIX)/include/gsm/"
cp $</lib/libgsm.a "$(PREFIX)/lib/"
touch $@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment