aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libmediainfo
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-09-30 21:41:23 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-09-30 21:42:52 +0200
commit9ec967ee5a13f03c90f301bd479ad7f6523c0549 (patch)
tree0ee72fa2c049430adb591dfe5ef2a79672c4bb7b /testing/libmediainfo
parent69e9cf1d6a3ae7fe9ad252c398b491113d66097b (diff)
downloadaports-9ec967ee5a13f03c90f301bd479ad7f6523c0549.tar.bz2
aports-9ec967ee5a13f03c90f301bd479ad7f6523c0549.tar.xz
testing/libmediainfo: upgrade to 0.7.99, switch to cmake
Diffstat (limited to 'testing/libmediainfo')
-rw-r--r--testing/libmediainfo/APKBUILD74
1 files changed, 44 insertions, 30 deletions
diff --git a/testing/libmediainfo/APKBUILD b/testing/libmediainfo/APKBUILD
index 9133d9eabe..582b52e944 100644
--- a/testing/libmediainfo/APKBUILD
+++ b/testing/libmediainfo/APKBUILD
@@ -1,43 +1,57 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Corey Oliver <corey.jon.oliver@gmail.com>
+
+# Bundled libraries used in the package:
+#
+# Name | License | Location
+# -------------+---------------+---------
+# aes-gladman | custom / GPL | Source/ThirdParty/aes-gladman
+# base64 | unknown | Source/ThirdParty/base64
+# hmac-gladman | custom / GPL | Source/ThirdParty/hmac-gladman
+# md5 | Public domain | Source/ThirdParty/md5
+# sha1-gladman | custom / GPL | Source/ThirdParty/sha1-gladman
+# sha2-gladman | custom / GPL | Source/ThirdParty/sha2-gladman
+
pkgname=libmediainfo
-pkgver=0.7.78
-pkgrel=1
-pkgdesc="Shared library for mediainfo"
-url="http://mediainfo.sourceforge.net"
+pkgver=0.7.99
+pkgrel=0
+pkgdesc="A shared library for mediainfo"
+url="https://github.com/MediaArea/MediaInfoLib"
arch="all"
-license="GPL"
-depends=""
-depends_dev=""
-makedepends="curl-dev libmms-dev libzen"
-install=""
+license="BSD custom"
+makedepends="cmake curl-dev libmms-dev libzen-dev tinyxml2-dev zlib-dev"
subpackages="$pkgname-dev"
-source="http://mediaarea.net/download/binary/libmediainfo0/${pkgver}/MediaInfo_DLL_${pkgver}_GNU_FromSource.tar.bz2"
+source="https://mediaarea.net/download/source/$pkgname/$pkgver/${pkgname}_$pkgver.tar.gz"
+builddir="$srcdir/MediaInfoLib"
+_cmakedir="$builddir/Project/CMake"
+options="!check" # upstream does not provide tests
+
+prepare() {
+ default_prepare
+ cd "$builddir"
+
+ rm -rf Project/MS*
-builddir="$srcdir"/MediaInfo_DLL_GNU_FromSource/MediaInfoLib/Project/GNU/Library
+ # Make sure that these bundled libs are not used.
+ rm -R Project/zlib
+ rm -R Source/ThirdParty/tinyxml2
+}
build() {
- cd "$builddir"
- ./configure \
- --build=$CBUILD \
- --host=$CHOST \
- --prefix=/usr \
- --enable-shared \
- --disable-static \
- --enable-visibility \
- --with-libcurl=/usr \
- --with-libmms \
- --without-libmd5 \
- || return 1
- make || return 1
+ cd "$_cmakedir"
+
+ cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DBUILD_SHARED_LIBS=ON
+ make
}
package() {
- cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
- rm -f "$pkgdir"/usr/lib/*.la
+ cd "$_cmakedir"
+
+ make DESTDIR="$pkgdir" install
}
-md5sums="11c5179e46ec687885ce82bf80bbf795 MediaInfo_DLL_0.7.78_GNU_FromSource.tar.bz2"
-sha256sums="02ef0e5695b6b24d8ed67b30c919c304c27bd7685c620141ac94f76af6b65be6 MediaInfo_DLL_0.7.78_GNU_FromSource.tar.bz2"
-sha512sums="d88458fecc5fe23a19982f8aa70075eeece8e9dd28bdba0d0909b8cfa6b7b25586cc8fb824d28d0b8e0085cbf3dde3cd831ede403de918270edcd2a9a0f39e3b MediaInfo_DLL_0.7.78_GNU_FromSource.tar.bz2"
+sha512sums="03da832068d633c4186f0049d84aa0a442c6a82e371b7bddb5b632a5799fcd0be265cf53232cc18d1aa165707618fb03d49dea76627e15c07f9b2310bbcf30c7 libmediainfo_0.7.99.tar.gz"