nixpkgs/pkgs/development/libraries/libbluray/BDJ-JARFILE-path.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
842 B
Diff
Raw Normal View History

2018-06-08 05:22:51 +00:00
diff --git a/configure.ac b/configure.ac
index 5007bbd..f46de1a 100644
2018-06-08 05:22:51 +00:00
--- a/configure.ac
+++ b/configure.ac
@@ -253,7 +253,7 @@ AS_IF([test "x${JDK_HOME}" != "x"], [
2022-08-13 17:56:14 +00:00
])
2015-02-22 03:39:37 +00:00
2022-08-13 17:56:14 +00:00
AS_IF([test "x$use_bdjava_jar" = "xyes"], [
-
2022-08-13 17:56:14 +00:00
+ CPPFLAGS="${CPPFLAGS} -DJARDIR='\"\$(datadir)/java\"'"
dnl check for ant
AC_CHECK_PROG(HAVE_ANT, [ant], yes, no)
AS_IF([test "x$HAVE_ANT" = "xno"], [
2018-06-08 05:22:51 +00:00
diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index 1cb1bfe..f3711c2 100644
2018-06-08 05:22:51 +00:00
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -533,6 +533,9 @@ static char *_find_libbluray_jar0()
2022-08-13 17:56:14 +00:00
# ifdef __FreeBSD__
"/usr/local/share/java/" BDJ_JARFILE,
# else
+# ifdef JARDIR
2015-02-22 03:39:37 +00:00
+ JARDIR "/" BDJ_JARFILE,
+# endif
"/usr/share/java/" BDJ_JARFILE,
"/usr/share/libbluray/lib/" BDJ_JARFILE,
2022-08-13 17:56:14 +00:00
# endif