summaryrefslogtreecommitdiffstats
path: root/src/libaacs-1.patch
blob: 624a242ad8529c20a3bbf03fd4a7e346fab7981e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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 <timothygu99@gmail.com>
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 <timothygu99@gmail.com>
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 <mabrand@mabrand.nl>
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 <stdio.h>
 #include <string.h>
 
-#include <shlobj.h>
 #include <windows.h>
+#include <shlobj.h>
 #include <limits.h>
 #include <direct.h>
 
-- 
2.1.0