Update libmikmod to 3.3.3

This commit is contained in:
Scott McCreary
2013-11-08 23:55:50 +00:00
parent 2c0713618c
commit 4103e8963a
2 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1,70 @@
SUMMARY="libmikmod is a lib for playing mod files"
DESCRIPTION="libmikmod is a library supporting many formats, including mod, s3m, it, and xm."
HOMEPAGE="http://mikmod.sourceforge.net"
SRC_URI="http://sourceforge.net/projects/mikmod/files/libmikmod/3.3.3/libmikmod-3.3.3.tar.gz"
CHECKSUM_MD5="0e0f9bce8f8e598ca292b41e0ae385c8"
LICENSE="GNU LGPL v2.1"
COPYRIGHT="1998-2004 Jean-Paul Mikkers, Jake Stine, Frank Loemker, Steve McIntyre, Peter Amstutz, and Miodrag Vallat."
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
libmikmod$secondaryArchSuffix = $portVersion compat >= 3.3
lib:libmikmod$secondaryArchSuffix = 3.2.0 compat >= 3
"
REQUIRES="
haiku${secondaryArchSuffix}
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:gcc$secondaryArchSuffix
cmd:libtool
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:make
"
PATCHES="libmikmod-3.3.3.patch"
BUILD()
{
libtoolize --force --copy --install
aclocal --install -I m4
autoconf
automake --add-missing
runConfigure ./configure
make
}
INSTALL()
{
make install
prepareInstalledDevelLibs libmikmod
fixPkgconfig
# devel package
packageEntries devel \
$developDir $binDir/libmikmod-config \
$dataDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
libmikmod${secondaryArchSuffix}_devel = $portVersion
cmd:libmikmod_config
devel:libmikmod$secondaryArchSuffix = 3.2.0 compat >= 3
"
REQUIRES_devel="
libmikmod == $portVersion base
"

View File

@@ -0,0 +1,30 @@
--- a/configure.ac 2013-10-15 09:50:02.011796480 +0000
+++ b/configure.ac 2013-11-08 21:25:01.681574400 +0000
@@ -43,6 +43,7 @@
libmikmod_openbsd=no
libmikmod_os2=no
libmikmod_djgpp=no
+libmikmod_haiku=no
case $host_os in
mingw*) libmikmod_mingw=yes ;;
@@ -53,6 +54,7 @@
openbsd*) libmikmod_openbsd=yes ;;
emx*) libmikmod_os2=yes;;
*djgpp) libmikmod_djgpp=yes ;;
+ haiku*) libmikmod_haiku=yes ;;
esac
# ==============================================================
@@ -444,9 +446,9 @@
)
if test $libmikmod_cv_gcc_pthread = yes
then
- dnl There is no need for -pthread on darwin, and gcc
+ dnl There is no need for -pthread on darwin or haiku, and gcc
dnl complains about unrecognized option -pthread
- if test $libmikmod_darwin = no
+ if test $libmikmod_darwin = no && test $libmikmod_haiku = no
then
libmikmod_threads=""
CFLAGS="$CFLAGS -pthread"