summarylogtreecommitdiffstats
path: root/aur_discmage_path.patch
blob: a06327d9fdbd4b221192ccd077635be3ad4c5300 (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
--- ucon64-2.2.2-src/src/ucon64_misc.orig.c	2021-12-30 13:29:17.245449059 +0100
+++ ucon64-2.2.2-src/src/ucon64_misc.c	2021-12-30 13:31:00.574081756 +0100
@@ -58,6 +58,7 @@
 
 
 #ifdef  USE_DISCMAGE
+#define UCON64_AUR_DISCMAGE
 #ifdef  DLOPEN
 #include "misc/dlopen.h"
 
@@ -1229,11 +1230,21 @@
 #elif   defined __APPLE__                       // Mac OS X actually
                        PROPERTY_MODE_DIR ("ucon64") "discmage.dylib",
 #elif   defined __unix__ || defined __BEOS__
+#ifndef UCON64_AUR_DISCMAGE
                        PROPERTY_MODE_DIR ("ucon64") "discmage.so",
+#else                       
+                       DIR_SEPARATOR_S "usr" DIR_SEPARATOR_S "lib" DIR_SEPARATOR_S "discmage.so",
+#endif                       
 #else
                        "",
 #endif
+#ifndef UCON64_AUR_DISCMAGE
                        "complete path to the discmage library for DISC image support");
+#else
+                       "complete path to the discmage library for DISC image support\n"
+                       "this path has been modified by the ucon64 AUR package;\n" 
+                       "the upstream default is: " PROPERTY_MODE_DIR ("ucon64") "discmage.so");
+#endif  
   ucon64_set_property (&props[i++], org_configfile, "ucon64_configdir",
                        PROPERTY_MODE_DIR ("ucon64"),
                        "directory with additional config files");