2020-04-24 23:36:52 +00:00
|
|
|
diff --git a/configure.ac b/configure.ac
|
2022-08-21 13:32:41 +00:00
|
|
|
index 5007bbd..f46de1a 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
2022-08-21 13:32:41 +00:00
|
|
|
@@ -253,7 +253,7 @@ AS_IF([test "x${JDK_HOME}" != "x"], [
|
|
|
|
])
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
AS_IF([test "x$use_bdjava_jar" = "xyes"], [
|
|
|
|
-
|
|
|
|
+ CPPFLAGS="${CPPFLAGS} -DJARDIR='\"\$(datadir)/java\"'"
|
|
|
|
dnl check for ant
|
|
|
|
AC_CHECK_PROG(HAVE_ANT, [ant], yes, no)
|
|
|
|
AS_IF([test "x$HAVE_ANT" = "xno"], [
|
2020-04-24 23:36:52 +00:00
|
|
|
diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
|
2022-08-21 13:32:41 +00:00
|
|
|
index 1cb1bfe..f3711c2 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/src/libbluray/bdj/bdj.c
|
|
|
|
+++ b/src/libbluray/bdj/bdj.c
|
2022-08-21 13:32:41 +00:00
|
|
|
@@ -533,6 +533,9 @@ static char *_find_libbluray_jar0()
|
|
|
|
# ifdef __FreeBSD__
|
|
|
|
"/usr/local/share/java/" BDJ_JARFILE,
|
|
|
|
# else
|
|
|
|
+# ifdef JARDIR
|
2020-04-24 23:36:52 +00:00
|
|
|
+ JARDIR "/" BDJ_JARFILE,
|
2022-08-21 13:32:41 +00:00
|
|
|
+# endif
|
2020-04-24 23:36:52 +00:00
|
|
|
"/usr/share/java/" BDJ_JARFILE,
|
|
|
|
"/usr/share/libbluray/lib/" BDJ_JARFILE,
|
2022-08-21 13:32:41 +00:00
|
|
|
# endif
|