Skip to content

Commit b9341d9

Browse files
committed
MACOSXPPC: Add libmpcdec (from Debian)
1 parent 52fbaee commit b9341d9

File tree

5 files changed

+125
-0
lines changed

5 files changed

+125
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#! /bin/sh
2+
3+
# from Debian
4+
LIBMPCDEC_VERSION=0.1~r495
5+
6+
PACKAGE_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
7+
HELPERS_DIR=$PACKAGE_DIR/../../../common
8+
. $HELPERS_DIR/functions.sh
9+
10+
do_make_bdir
11+
12+
do_http_fetch musepack "http://deb.debian.org/debian/pool/main/libm/libmpc/libmpc_${LIBMPCDEC_VERSION}.orig.tar.gz" \
13+
'tar xzf' #"sha256:${LIBMPCDEC_SHA256}"
14+
15+
export MACOSX_DEPLOYMENT_TARGET=10.4
16+
export SDKROOT=/Developer/SDKs/MacOSX10.4u.sdk
17+
18+
/opt/macports-tff/bin/autoreconf -fi
19+
20+
CC=/opt/macports-tff/bin/gcc-mp-7 \
21+
CFLAGS='-O2 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -Wa,-force_cpusubtype_ALL -m32' \
22+
LDFLAGS='-Wl,-macosx_version_min,10.4 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk' \
23+
ac_cv_prog_cc_c11=no \
24+
do_configure
25+
26+
do_make -C include
27+
do_make -C libmpcdec
28+
29+
do_make -C include install
30+
do_make -C libmpcdec install
31+
32+
do_clean_bdir
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
From Debian
2+
3+
Index: libmpc-0.1~r459/configure.in
4+
===================================================================
5+
--- libmpc-0.1~r459.orig/configure.in 2010-05-31 16:32:02.551447078 +0200
6+
+++ libmpc-0.1~r459/configure.in 2010-05-31 16:32:09.578951197 +0200
7+
@@ -4,6 +4,7 @@
8+
AC_CONFIG_SRCDIR([libmpcdec/mpc_reader.c])
9+
AM_CONFIG_HEADER([include/config.h])
10+
AM_INIT_AUTOMAKE
11+
+AM_MAINTAINER_MODE
12+
13+
AC_LANG_C
14+
AC_PROG_CC
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
From Debian
2+
3+
---
4+
mpc2sv8/Makefile.am | 5 +++--
5+
mpcdec/Makefile.am | 5 +++--
6+
mpcenc/Makefile.am | 5 +++--
7+
3 files changed, 9 insertions(+), 6 deletions(-)
8+
9+
--- libmpc.orig/mpc2sv8/Makefile.am
10+
+++ libmpc/mpc2sv8/Makefile.am
11+
@@ -11,6 +11,7 @@ common_sources = ../common/crc32.c
12+
METASOURCES = AUTO
13+
bin_PROGRAMS = mpc2sv8
14+
mpc2sv8_SOURCES = mpc2sv8.c $(common_sources)
15+
-mpc2sv8_LDADD = -lm \
16+
+mpc2sv8_LDADD = \
17+
$(top_builddir)/libmpcdec/libmpcdec.la \
18+
- $(top_builddir)/libmpcenc/libmpcenc.a
19+
+ $(top_builddir)/libmpcenc/libmpcenc.a \
20+
+ -lm
21+
--- libmpc.orig/mpcdec/Makefile.am
22+
+++ libmpc/mpcdec/Makefile.am
23+
@@ -9,6 +9,7 @@ endif
24+
METASOURCES = AUTO
25+
bin_PROGRAMS = mpcdec
26+
mpcdec_SOURCES = mpcdec.c
27+
-mpcdec_LDADD = -lm \
28+
+mpcdec_LDADD = \
29+
$(top_builddir)/libmpcdec/libmpcdec.la \
30+
- $(top_builddir)/libwavformat/libwavformat.a
31+
+ $(top_builddir)/libwavformat/libwavformat.a \
32+
+ -lm
33+
--- libmpc.orig/mpcenc/Makefile.am
34+
+++ libmpc/mpcenc/Makefile.am
35+
@@ -22,8 +22,9 @@ mpcenc_SOURCES = keyboard.c mpcenc.c pip
36+
$(common_sources) \
37+
mpcenc.h predict.h config.h
38+
39+
-mpcenc_LDADD = -lm \
40+
+mpcenc_LDADD = \
41+
$(EXTRALIBS) \
42+
$(top_builddir)/libmpcpsy/libmpcpsy.a \
43+
- $(top_builddir)/libmpcenc/libmpcenc.a
44+
+ $(top_builddir)/libmpcenc/libmpcenc.a \
45+
+ -lm
46+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
From Debian
2+
3+
Index: libmpc/configure.in
4+
===================================================================
5+
--- libmpc.orig/configure.in
6+
+++ libmpc/configure.in
7+
@@ -37,7 +37,7 @@ fi
8+
AM_CONDITIONAL([MPC_CHAP], [test "x$enable_mpcchap" = xyes])
9+
10+
11+
-CHECK_VISIBILITY
12+
+AM_CONDITIONAL([HAVE_VISIBILITY], [true])
13+
14+
AC_CONFIG_FILES([
15+
Makefile
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
From Debian
2+
3+
Description: avoid automake error
4+
Author: Hideki Yamane <henrich@debian.org>
5+
Forwarded: no
6+
Last-Update: 2013-10-23
7+
8+
--- libmpc-0.1~r459.orig/configure.in
9+
+++ libmpc-0.1~r459/configure.in
10+
@@ -3,7 +3,7 @@ AC_CONFIG_AUX_DIR([config])
11+
AC_CONFIG_MACRO_DIR([m4])
12+
AC_CONFIG_SRCDIR([libmpcdec/mpc_reader.c])
13+
AM_CONFIG_HEADER([include/config.h])
14+
-AM_INIT_AUTOMAKE
15+
+AM_INIT_AUTOMAKE(subdir-objects)
16+
AM_MAINTAINER_MODE
17+
18+
AC_LANG_C

0 commit comments

Comments
 (0)