* [ITA] gsm
@ 2023-09-22 11:47 Takashi Yano
2023-09-22 14:55 ` Jon Turney
0 siblings, 1 reply; 2+ messages in thread
From: Takashi Yano @ 2023-09-22 11:47 UTC (permalink / raw)
To: cygwin-apps
[-- Attachment #1: Type: text/plain, Size: 99 bytes --]
I'd like to adopt the gsm package.
Thanks in advance.
--
Takashi Yano <takashi.yano@nifty.ne.jp>
[-- Attachment #2: 1.0.17-shared-libgsm.patch --]
[-- Type: text/plain, Size: 863 bytes --]
--- origsrc/gsm-1.0-pl17/Makefile 2018-03-21 20:01:49.745965700 -0500
+++ src/gsm-1.0-pl17/Makefile 2018-03-21 20:11:17.100811700 -0500
@@ -312,9 +312,15 @@ $(LIBGSMSO).$(SO_VER): $(LIB) $(GSM_OBJE
$(LIBGSMSO).$(SO_MAJOR): $(LIBGSMSO).$(SO_VER)
ln -fs libgsm.so.$(SO_VER) lib/libgsm.so.$(SO_MAJOR)
-$(LIBGSMSO): $(LIBGSMSO).$(SO_VER)
+$(LIB)/libgsm.so: $(LIBGSMSO).$(SO_VER)
ln -fs libgsm.so.$(SO_VER) lib/libgsm.so
+$(LIB)/cyggsm-$(SO_MAJOR).dll: $(LIB) $(GSM_OBJECTS)
+ $(LD) $(LFLAGS) -o $@ -shared -Xlinker --out-implib -Xlinker $(LIB)/libgsm.dll.a $(GSM_OBJECTS)
+
+$(LIB)/libgsm-$(SO_MAJOR).dll: $(LIB) $(GSM_OBJECTS)
+ $(LD) $(LFLAGS) -o $@ -shared -Xlinker --out-implib -Xlinker $(LIB)/libgsm.dll.a $(GSM_OBJECTS)
+
$(LIBGSM): $(LIB) $(GSM_OBJECTS)
-rm $(RMFLAGS) $(LIBGSM)
$(AR) $(ARFLAGS) $(LIBGSM) $(GSM_OBJECTS)
[-- Attachment #3: gsm.cygport --]
[-- Type: text/plain, Size: 1481 bytes --]
NAME="gsm"
VERSION=1.0.22
RELEASE=1
LICENSE="MIT"
CATEGORY="Audio"
SUMMARY="GSM 06.10 speech compression"
DESCRIPTION="A C library implementation of the European GSM 06.10 provisional
standard for full-rate speech transcoding, prI-ETS 300 036, which uses
RPE/LTP (residual pulse excitation/long term prediction) coding at 13
kbit/s."
HOMEPAGE="http://www.quut.com/gsm/"
SRC_URI="http://www.quut.com/gsm/gsm-${VERSION}.tar.gz"
SRC_DIR="gsm-${VERSION%.*}-pl${VERSION##*.}"
PATCH_URI="
https://src.fedoraproject.org/rpms/gsm/raw/rawhide/f/gsm-makefile.patch
https://src.fedoraproject.org/rpms/gsm/raw/rawhide/f/gsm-warnings.patch
1.0.17-shared-libgsm.patch
"
PKG_NAMES="gsm libgsm1 libgsm-devel"
gsm_CONTENTS="--exclude=*.dll usr/bin/ usr/share/doc/ usr/share/man/man1/"
libgsm1_CATEGORY="Libs"
libgsm1_SUMMARY="${SUMMARY} library"
libgsm1_CONTENTS='usr/bin/cyggsm-1.dll'
libgsm_devel_CATEGORY="Libs"
libgsm_devel_SUMMARY="${SUMMARY} library"
libgsm_devel_CONTENTS='usr/include/ usr/lib/ usr/share/man/man3/'
src_compile() {
lndirs
cd ${B}
cygmake -j1 \
CC="${CC}" \
RPM_OPT_FLAGS="${CFLAGS}" \
LD="${CC}" \
LFLAGS="${LDFLAGS}" \
LIBGSMSO="\$(LIB)/cyggsm-1.dll"
}
src_install() {
cd ${B}
dobin lib/*.dll bin/*.exe
dolib lib/*.dll.a
doman man/toast.1 man/gsm*.3
dosym toast.exe /usr/bin/tcat
dosym toast.exe /usr/bin/untoast
insinto /usr/include/gsm
doins inc/gsm.h
dosym gsm/gsm.h /usr/include/gsm.h
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ITA] gsm
2023-09-22 11:47 [ITA] gsm Takashi Yano
@ 2023-09-22 14:55 ` Jon Turney
0 siblings, 0 replies; 2+ messages in thread
From: Jon Turney @ 2023-09-22 14:55 UTC (permalink / raw)
To: Takashi Yano, cygwin-apps
On 22/09/2023 12:47, Takashi Yano via Cygwin-apps wrote:
> I'd like to adopt the gsm package.
> Thanks in advance.
Looks good.
I added this to your packages.
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-22 14:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-22 11:47 [ITA] gsm Takashi Yano
2023-09-22 14:55 ` Jon Turney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).