-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99db437
commit 70b905a
Showing
22 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#! /bin/sh | ||
|
||
PACKAGE_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd) | ||
HELPERS_DIR=$PACKAGE_DIR/../.. | ||
. $HELPERS_DIR/functions.sh | ||
|
||
do_make_bdir | ||
|
||
do_lha_fetch audio/libmpcdec "libmpcdec*/" | ||
|
||
do_lha_install | ||
|
||
# libmpcdec.a is located in common folder where it should not and it has a bad casing, fix this | ||
cp local/common/lib/libMPCdec.a $DESTDIR/$PREFIX/lib/libmpcdec.a | ||
|
||
do_clean_bdir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#! /bin/sh | ||
|
||
PACKAGE_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd) | ||
HELPERS_DIR=$PACKAGE_DIR/../.. | ||
. $HELPERS_DIR/functions.sh | ||
|
||
do_make_bdir | ||
|
||
do_pkg_fetch libmpc | ||
|
||
autoreconf -fi | ||
|
||
do_configure "$@" | ||
|
||
do_make -C include | ||
do_make -C libmpcdec | ||
|
||
do_make -C include install | ||
do_make -C libmpcdec install | ||
|
||
do_clean_bdir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
toolchains/mxe/packages/libmpcdec/libmpcdec-9999-build_fix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Index: libmpcdec/requant.h | ||
=================================================================== | ||
--- a/libmpcdec/requant.h | ||
+++ b/libmpcdec/requant.h | ||
@@ -48,7 +48,7 @@ | ||
|
||
/* C O N S T A N T S */ | ||
-const mpc_uint8_t Res_bit [18]; ///< Bits per sample for chosen quantizer | ||
-const MPC_SAMPLE_FORMAT __Cc [1 + 18]; ///< Requantization coefficients | ||
-const mpc_int16_t __Dc [1 + 18]; ///< Requantization offset | ||
+extern const mpc_uint8_t Res_bit [18]; ///< Bits per sample for chosen quantizer | ||
+extern const MPC_SAMPLE_FORMAT __Cc [1 + 18]; ///< Requantization coefficients | ||
+extern const mpc_int16_t __Dc [1 + 18]; ///< Requantization offset | ||
|
||
#define Cc (__Cc + 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Patch libmpcdec_BUILD to install libmpcdec.a without a _static suffix | ||
# Also remove useless LDFLAGS once the attached patch is applied | ||
# newline and comma variables are defined by MXE | ||
$(eval define libmpcdec_BUILD$(newline)\ | ||
$(subst libmpcdec_static.a' '$$(PREFIX)/$$(TARGET)/lib/',libmpcdec_static.a' '$$(PREFIX)/$$(TARGET)/lib/libmpcdec.a',$(value libmpcdec_BUILD))$(newline)\ | ||
$(subst LDFLAGS='$$(LDFLAGS) -Wl$(comma)--allow-multiple-definition',,$(value libmpcdec_BUILD))$(newline)\ | ||
endef) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters