From 4103e8963a1c35ca9cb49a813e36579eb8a7f875 Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Fri, 8 Nov 2013 23:55:50 +0000 Subject: [PATCH] Update libmikmod to 3.3.3 --- media-libs/libmikmod/libmikmod-3.3.3.recipe | 70 +++++++++++++++++++ .../libmikmod/patches/libmikmod-3.3.3.patch | 30 ++++++++ 2 files changed, 100 insertions(+) create mode 100644 media-libs/libmikmod/libmikmod-3.3.3.recipe create mode 100644 media-libs/libmikmod/patches/libmikmod-3.3.3.patch diff --git a/media-libs/libmikmod/libmikmod-3.3.3.recipe b/media-libs/libmikmod/libmikmod-3.3.3.recipe new file mode 100644 index 000000000..203b33264 --- /dev/null +++ b/media-libs/libmikmod/libmikmod-3.3.3.recipe @@ -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 + " diff --git a/media-libs/libmikmod/patches/libmikmod-3.3.3.patch b/media-libs/libmikmod/patches/libmikmod-3.3.3.patch new file mode 100644 index 000000000..793f3a8ed --- /dev/null +++ b/media-libs/libmikmod/patches/libmikmod-3.3.3.patch @@ -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"