From 56e70da49d6ac66406c40007ce345e9447409bc8 Mon Sep 17 00:00:00 2001 From: Mark Brand Date: Sat, 28 Mar 2015 21:09:49 +0100 Subject: libaacs: mingw-w64 4.01 compatibility fix --- src/libaacs-1-config.patch | 35 ------------------- src/libaacs-1.patch | 78 +++++++++++++++++++++++++++++++++++++++++++ src/libaacs-2-pkgconfig.patch | 24 ------------- 3 files changed, 78 insertions(+), 59 deletions(-) delete mode 100644 src/libaacs-1-config.patch create mode 100644 src/libaacs-1.patch delete mode 100644 src/libaacs-2-pkgconfig.patch diff --git a/src/libaacs-1-config.patch b/src/libaacs-1-config.patch deleted file mode 100644 index ab354c4..0000000 --- a/src/libaacs-1-config.patch +++ /dev/null @@ -1,35 +0,0 @@ -This file is part of MXE. -See index.html for further information. - -From c4e50ffd858342b65beaffb4027be75ca7f10b05 Mon Sep 17 00:00:00 2001 -From: Timothy Gu -Date: Tue, 7 Oct 2014 18:48:57 -0700 -Subject: [PATCH] Look for prefixed config scripts - -Signed-off-by: Timothy Gu - -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 - diff --git a/src/libaacs-1.patch b/src/libaacs-1.patch new file mode 100644 index 0000000..624a242 --- /dev/null +++ b/src/libaacs-1.patch @@ -0,0 +1,78 @@ +This file is part of MXE. +See index.html for further information. + +From 5ebe4419738fd337f5c2f8e2849dd8e7c1f55d01 Mon Sep 17 00:00:00 2001 +From: Timothy Gu +Date: Sat, 28 Mar 2015 21:06:26 +0100 +Subject: [PATCH 1/3] fix configure + + +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 +-- +2.1.0 + + +From c807305d0df68e88aa04fabd3275aff4f34d4368 Mon Sep 17 00:00:00 2001 +From: Timothy Gu +Date: Sat, 28 Mar 2015 21:06:56 +0100 +Subject: [PATCH 2/3] fix pkgconfig + + +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} +-- +2.1.0 + + +From 638bb17ec1daf447def2706896e209dd22adb8ca Mon Sep 17 00:00:00 2001 +From: Mark Brand +Date: Sat, 28 Mar 2015 21:03:45 +0100 +Subject: [PATCH 3/3] fix include order + + +diff --git a/src/file/dirs_win32.c b/src/file/dirs_win32.c +index 0e1208a..a037f8d 100644 +--- a/src/file/dirs_win32.c ++++ b/src/file/dirs_win32.c +@@ -28,8 +28,8 @@ + #include + #include + +-#include + #include ++#include + #include + #include + +-- +2.1.0 + diff --git a/src/libaacs-2-pkgconfig.patch b/src/libaacs-2-pkgconfig.patch deleted file mode 100644 index 489ea67..0000000 --- a/src/libaacs-2-pkgconfig.patch +++ /dev/null @@ -1,24 +0,0 @@ -This file is part of MXE. -See index.html for further information. - -From 461de1dc2a6c611fc1e95678f765c7ff2648ee08 Mon Sep 17 00:00:00 2001 -From: Timothy Gu -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 - -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 - -- cgit v0.12