Merge branch 'lame' of https://github.com/darealshinji/mxe into darealshinji-lame

pull/1508/head
Tony Theodore 6 years ago
commit 186f2597a1

@ -0,0 +1,20 @@
This file is part of MXE. See LICENSE.md for licensing information.
Contains ad hoc patches for cross building.
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: darealshinji <djcj@gmx.de>
Date: Tue, 9 Jan 2018 20:41:26 +0100
Subject: [PATCH 1/1] remove deprecated symbol
diff --git a/include/libmp3lame.sym b/include/libmp3lame.sym
index 1111111..2222222 100644
--- a/include/libmp3lame.sym
+++ b/include/libmp3lame.sym
@@ -1,5 +1,4 @@
lame_init
-lame_init_old
lame_set_num_samples
lame_get_num_samples
lame_set_in_samplerate

@ -1,106 +0,0 @@
This file is part of MXE. See LICENSE.md for licensing information.
This patch has been taken from:
https://github.com/rbrito/lame/commit/a6552b532919dcc2fbfb32d1dfdaab80c1534200
From a6552b532919dcc2fbfb32d1dfdaab80c1534200 Mon Sep 17 00:00:00 2001
From: Rogério Brito <rbrito@ime.usp.br>
Date: Wed, 12 Jun 2013 09:16:29 +0000
Subject: [PATCH] Make autotools files compatible with automake >= 1.12
Newer autotools versions don't seem to support ansi2knr, which is probably
not a problem, given the last decades of compilers accepting ANSI C (and the
rest of the LAME code being written in ANSI C itself).
This fixes ticket #60, with a patch of Brennan Shacklett, from the Gentoo
community.
---
aclocal.m4 | 17 -----------------
configure.in | 3 ---
doc/html/Makefile.am | 2 +-
doc/man/Makefile.am | 3 +--
libmp3lame/i386/Makefile.am | 2 +-
5 files changed, 3 insertions(+), 24 deletions(-)
diff --git a/aclocal.m4 b/aclocal.m4
index fc53243..4d9ad71 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -10530,23 +10530,6 @@ AC_DEFUN([_AM_IF_OPTION],
# serial 5
-AC_DEFUN([AM_C_PROTOTYPES],
-[AC_REQUIRE([AC_C_PROTOTYPES])
-if test "$ac_cv_prog_cc_stdc" != no; then
- U= ANSI2KNR=
-else
- U=_ ANSI2KNR=./ansi2knr
-fi
-# Ensure some checks needed by ansi2knr itself.
-AC_REQUIRE([AC_HEADER_STDC])
-AC_CHECK_HEADERS([string.h])
-AC_SUBST([U])dnl
-AC_SUBST([ANSI2KNR])dnl
-_AM_SUBST_NOTMAKE([ANSI2KNR])dnl
-])
-
-AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
-
# Check to make sure that the build environment is sane. -*- Autoconf -*-
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
diff --git a/configure.in b/configure.in
index 24ca884..6f5c1c6 100644
--- a/configure.in
+++ b/configure.in
@@ -77,9 +77,6 @@ if test "${GCC}" = "yes"; then
AC_MSG_RESULT(${GCC_version})
fi
-dnl more automake stuff
-AM_C_PROTOTYPES
-
AC_CHECK_HEADER(dmalloc.h)
if test "${ac_cv_header_dmalloc_h}" = "yes"; then
AM_WITH_DMALLOC
diff --git a/doc/html/Makefile.am b/doc/html/Makefile.am
index aa76785..09d26c2 100644
--- a/doc/html/Makefile.am
+++ b/doc/html/Makefile.am
@@ -1,6 +1,6 @@
## $Id$
-AUTOMAKE_OPTIONS = foreign ansi2knr
+AUTOMAKE_OPTIONS = foreign
docdir = $(datadir)/doc
pkgdocdir = $(docdir)/$(PACKAGE)
diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am
index 05182b5..dac00a3 100644
--- a/doc/man/Makefile.am
+++ b/doc/man/Makefile.am
@@ -1,7 +1,6 @@
## $Id$
-AUTOMAKE_OPTIONS = foreign ansi2knr
+AUTOMAKE_OPTIONS = foreign
man_MANS = lame.1
EXTRA_DIST = ${man_MANS}
-
diff --git a/libmp3lame/i386/Makefile.am b/libmp3lame/i386/Makefile.am
index 032c2b2..c51912e 100644
--- a/libmp3lame/i386/Makefile.am
+++ b/libmp3lame/i386/Makefile.am
@@ -1,6 +1,6 @@
## $Id$
-AUTOMAKE_OPTIONS = foreign $(top_srcdir)/ansi2knr
+AUTOMAKE_OPTIONS = foreign
DEFS = @DEFS@ @CONFIG_DEFS@
--
1.9.1

@ -3,15 +3,15 @@
PKG := lame
$(PKG)_WEBSITE := https://lame.sourceforge.io/
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.99.5
$(PKG)_CHECKSUM := 24346b4158e4af3bd9f2e194bb23eb473c75fb7377011523353196b19b9a23ff
$(PKG)_VERSION := 3.100
$(PKG)_CHECKSUM := ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
$(PKG)_DEPS := cc
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://lame.cvs.sourceforge.net/viewvc/lame/lame/' | \
$(WGET) -q -O- 'https://sourceforge.net/p/lame/svn/HEAD/tree/tags' | \
grep RELEASE_ | \
$(SED) -n 's,.*RELEASE__\([0-9_][^<]*\)<.*,\1,p' | \
tr '_' '.' | \
@ -20,9 +20,10 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
cd '$(1)' && autoreconf -i && ./configure \
cd '$(BUILD_DIR)' && autoreconf -i && '$(SOURCE_DIR)/configure' \
$(MXE_CONFIGURE_OPTS) \
--disable-frontend
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
--disable-frontend \
--disable-gtktest
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
endef

Loading…
Cancel
Save