Commit b2cb8c3e authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

Contrib: Include lua as a contrib lib. (Please review for your arch).

parent add15152
...@@ -69,6 +69,26 @@ if test "$HOST" != "$BUILD"; then ...@@ -69,6 +69,26 @@ if test "$HOST" != "$BUILD"; then
AR="${HOST}-ar" AR="${HOST}-ar"
fi fi
# Check the HAVE_{OS}
case $HOST in
*darwin*)
echo "HAVE_DARWIN_OS = 1" >> config.mak
echo "HAVE_BSD = 1" >> config.mak
;;
*linux*)
echo "HAVE_LINUX = 1" >> config.mak
;;
*bsd*)
echo "HAVE_BSD = 1" >> config.mak
;;
*wince*)
echo "HAVE_WINCE = 1" >> config.mak
;;
*beos*)
echo "HAVE_BEOS = 1" >> config.mak
;;
esac
case $HOST in case $HOST in
ppc-darwin) ppc-darwin)
# Mac OS X < 10.4 # Mac OS X < 10.4
...@@ -83,7 +103,6 @@ case $HOST in ...@@ -83,7 +103,6 @@ case $HOST in
# SDK 10.2.8 requires gcc-3.3 (so we cannot use that SDK) # SDK 10.2.8 requires gcc-3.3 (so we cannot use that SDK)
SDK_TARGET=10.4 SDK_TARGET=10.4
echo "SDK_TARGET = ${SDK_TARGET}" >> config.mak echo "SDK_TARGET = ${SDK_TARGET}" >> config.mak
echo "HAVE_DARWIN_OS = 1" >> config.mak
echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak
echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.4u.sdk" >> config.mak echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.4u.sdk" >> config.mak
CFLAGS_TUNING=" -arch ppc -mtune=G4" CFLAGS_TUNING=" -arch ppc -mtune=G4"
...@@ -95,7 +114,6 @@ case $HOST in ...@@ -95,7 +114,6 @@ case $HOST in
i686-apple-darwin8) i686-apple-darwin8)
SDK_TARGET=10.4 SDK_TARGET=10.4
echo "SDK_TARGET = ${SDK_TARGET}" >> config.mak echo "SDK_TARGET = ${SDK_TARGET}" >> config.mak
echo "HAVE_DARWIN_OS = 1" >> config.mak
echo "HAVE_DARWIN_OS_ON_INTEL = 1" >> config.mak echo "HAVE_DARWIN_OS_ON_INTEL = 1" >> config.mak
echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak
echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.4u.sdk" >> config.mak echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.4u.sdk" >> config.mak
...@@ -108,7 +126,6 @@ case $HOST in ...@@ -108,7 +126,6 @@ case $HOST in
powerpc-apple-darwin9) powerpc-apple-darwin9)
SDK_TARGET=10.4 SDK_TARGET=10.4
echo "SDK_TARGET = ${SDK_TARGET}" >> config.mak echo "SDK_TARGET = ${SDK_TARGET}" >> config.mak
echo "HAVE_DARWIN_OS = 1" >> config.mak
# echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak # echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak
# echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.4u.sdk" >> config.mak # echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.4u.sdk" >> config.mak
CFLAGS_TUNING=" -arch ppc -mtune=G4" CFLAGS_TUNING=" -arch ppc -mtune=G4"
...@@ -120,7 +137,6 @@ case $HOST in ...@@ -120,7 +137,6 @@ case $HOST in
i686-apple-darwin9) i686-apple-darwin9)
SDK_TARGET=10.4 SDK_TARGET=10.4
echo "SDK_TARGET = ${SDK_TARGET}" >> config.mak echo "SDK_TARGET = ${SDK_TARGET}" >> config.mak
echo "HAVE_DARWIN_OS = 1" >> config.mak
echo "HAVE_DARWIN_OS_ON_INTEL = 1" >> config.mak echo "HAVE_DARWIN_OS_ON_INTEL = 1" >> config.mak
# echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak # echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak
# echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.4u.sdk" >> config.mak # echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.4u.sdk" >> config.mak
...@@ -131,7 +147,6 @@ case $HOST in ...@@ -131,7 +147,6 @@ case $HOST in
cat src/Distributions/darwin.mak >> distro.mak cat src/Distributions/darwin.mak >> distro.mak
;; ;;
i586-pc-beos) i586-pc-beos)
echo "HAVE_BEOS = 1" >> config.mak
if test -f /boot/beos/system/lib/libbind.so; then if test -f /boot/beos/system/lib/libbind.so; then
EXTRA_LDFLAGS=" -lbind -lsocket" EXTRA_LDFLAGS=" -lbind -lsocket"
else else
...@@ -173,7 +188,6 @@ case $HOST in ...@@ -173,7 +188,6 @@ case $HOST in
cat src/Distributions/win32.mak >> distro.mak cat src/Distributions/win32.mak >> distro.mak
;; ;;
arm-wince-pe) arm-wince-pe)
echo "HAVE_WINCE = 1" >> config.mak
echo "PKG_CONFIG_PATH = \$(PREFIX)/lib/pkgconfig" >> config.mak echo "PKG_CONFIG_PATH = \$(PREFIX)/lib/pkgconfig" >> config.mak
EXTRA_CPPFLAGS=" -D_WIN32_WCE" EXTRA_CPPFLAGS=" -D_WIN32_WCE"
cat src/Distributions/wince.mak >> distro.mak cat src/Distributions/wince.mak >> distro.mak
......
...@@ -542,6 +542,43 @@ CLEAN_FILE += .id3tag ...@@ -542,6 +542,43 @@ CLEAN_FILE += .id3tag
CLEAN_PKG += libid3tag CLEAN_PKG += libid3tag
DISTCLEAN_PKG += libid3tag-$(LIBID3TAG_VERSION).tar.gz DISTCLEAN_PKG += libid3tag-$(LIBID3TAG_VERSION).tar.gz
# ***************************************************************************
# lua
# ***************************************************************************
ifdef HAVE_WIN32
LUA_MAKEPLATEFORM=mingw
else
ifdef HAVE_DARWIN_OS
LUA_MAKEPLATEFORM=macosx
else
ifdef HAVE_LINUX
LUA_MAKEPLATEFORM=linux
else
ifdef HAVE_BSD
LUA_MAKEPLATEFORM=bsd
else
LUA_MAKEPLATEFORM=generic
endif
endif
endif
endif
lua-$(LUA_VERSION).tar.gz:
$(WGET) $(LUA_URL)
lua: lua-$(LUA_VERSION).tar.gz
$(EXTRACT_GZ)
.lua: lua
(cd $<; $(HOSTCC) make $(LUA_MAKEPLATEFORM) && make install INSTALL_TOP=$(PREFIX))
touch $@
CLEAN_FILE += .lua
CLEAN_PKG += lua
DISTCLEAN_PKG += lua-$(LUA_VERSION).tar.gz
# *************************************************************************** # ***************************************************************************
# libmad # libmad
# *************************************************************************** # ***************************************************************************
......
...@@ -189,3 +189,5 @@ ZVBI_VERSION=0.2.22 ...@@ -189,3 +189,5 @@ ZVBI_VERSION=0.2.22
ZVBI_URL=$(SF)/zapping/zvbi-$(ZVBI_VERSION).tar.bz2 ZVBI_URL=$(SF)/zapping/zvbi-$(ZVBI_VERSION).tar.bz2
TAGLIB_VERSION=1.4 TAGLIB_VERSION=1.4
TAGLIB_URL=http://developer.kde.org/~wheeler/files/src/taglib-$(TAGLIB_VERSION).tar.gz TAGLIB_URL=http://developer.kde.org/~wheeler/files/src/taglib-$(TAGLIB_VERSION).tar.gz
LUA_VERSION=5.1
LUA_URL=http://www.lua.org/ftp/lua-$(LUA_VERSION).tar.gz
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment