Add package libaacs

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
Timothy Gu 2014-10-07 20:28:17 -07:00
parent e41fa5a8dd
commit c940dfa042
5 changed files with 115 additions and 0 deletions

View File

@ -1567,6 +1567,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<td class="package">libarchive</td>
<td class="website"><a href="http://www.libarchive.org/">Libarchive</a></td>
</tr>
<tr>
<td class="package">libaacs</td>
<td class="website"><a href="http://www.videolan.org/developers/libaacs.html">libaacs</a></td>
</tr>
<tr>
<td class="package">libass</td>
<td class="website"><a href="http://code.google.com/p/libass/">libass</a></td>

View File

@ -0,0 +1,35 @@
This file is part of MXE.
See index.html for further information.
From c4e50ffd858342b65beaffb4027be75ca7f10b05 Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Tue, 7 Oct 2014 18:48:57 -0700
Subject: [PATCH] Look for prefixed config scripts
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
diff --git a/configure.ac b/configure.ac
index 155acad..8cb7e79 100644
--- a/configure.ac
+++ b/configure.ac
@@ -126,7 +126,7 @@ if test x$libgcrypt_config_prefix != x ; then
fi
fi
-AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config, no)
+AC_PATH_TOOL(LIBGCRYPT_CONFIG, libgcrypt-config, no)
if test x"$LIBGCRYPT_CONFIG" = xno; then
AC_MSG_ERROR([libgcrypt not found on system])
else
@@ -149,7 +149,7 @@ if test x$gpg_error_config_prefix != x ; then
fi
fi
-AC_PATH_PROG(GPG_ERROR_CONFIG, gpg-error-config, no)
+AC_PATH_TOOL(GPG_ERROR_CONFIG, gpg-error-config, no)
if test x"$GPG_ERROR_CONFIG" = xno; then
AC_MSG_ERROR([gpg-error not found on system])
else
--
1.8.3.2

View File

@ -0,0 +1,24 @@
This file is part of MXE.
See index.html for further information.
From 461de1dc2a6c611fc1e95678f765c7ff2648ee08 Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Tue, 7 Oct 2014 19:41:43 -0700
Subject: [PATCH] pkgconfig: Take libgpg-error and libgcrypt into account for
static builds
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
diff --git a/src/libaacs.pc.in b/src/libaacs.pc.in
index 598f206..4334d8c 100644
--- a/src/libaacs.pc.in
+++ b/src/libaacs.pc.in
@@ -7,4 +7,5 @@ Name: libaacs
Description: AACS support library for Blu-ray playback
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -laacs
+Libs.private: @LIBGCRYPT_LIBS@ @GPG_ERROR_LIBS@
Cflags: -I${includedir}
--
1.8.3.2

18
src/libaacs-test.c Normal file
View File

@ -0,0 +1,18 @@
/*
* This file is part of MXE.
* See index.html for further information.
*/
#include <libaacs/aacs.h>
int main (int argc, char **argv)
{
int major, minor, micro;
(void)argc;
(void)argv;
aacs_get_version(&major, &minor, &micro);
return 0;
}

34
src/libaacs.mk Normal file
View File

@ -0,0 +1,34 @@
# This file is part of MXE.
# See index.html for further information.
PKG := libaacs
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.7.1
$(PKG)_CHECKSUM := 09eb61bcfceca77cd779c4475093dd22a0cb5510
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.bz2
$(PKG)_URL := http://ftp.videolan.org/pub/videolan/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_URL_2 := ftp://ftp.videolan.org/pub/videolan/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libgcrypt libgpg_error
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://ftp.videolan.org/pub/videolan/libaacs/' | \
$(SED) -n 's,<a href="\([0-9][^<]*\)/".*,\1,p' | \
$(SORT) -Vr | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && autoreconf -fi
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS)
$(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_CRUFT) LDFLAGS='-no-undefined'
$(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_CRUFT)
'$(TARGET)-gcc' \
-W -Wall -Werror -std=c99 -pedantic \
'$(2).c' \
-o '$(PREFIX)/$(TARGET)/bin/test-libaacs.exe' \
`'$(TARGET)-pkg-config' libaacs --cflags --libs`
endef