[vlc-devel] [PATCH 08/14] contrib: bluray: add missing java include paths

Vittorio Giovara vittorio.giovara at gmail.com
Mon Jun 30 21:04:28 CEST 2014


---
 contrib/src/bluray/rules.mak | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/contrib/src/bluray/rules.mak b/contrib/src/bluray/rules.mak
index 157a1c0..76173fe 100644
--- a/contrib/src/bluray/rules.mak
+++ b/contrib/src/bluray/rules.mak
@@ -17,6 +17,10 @@ BLURAY_CONF = --disable-examples  \
               --enable-libxml2    \
               --enable-bdjava
 
+ifdef HAVE_MACOSX
+JAVA_HOME_EXTRA=CFLAGS='-I$(JAVA_HOME)/include/darwin'
+endif
+
 $(TARBALLS)/libbluray-$(BLURAY_VERSION).tar.bz2:
 	$(call download,$(BLURAY_URL))
 
@@ -29,5 +33,5 @@ bluray: libbluray-$(BLURAY_VERSION).tar.bz2 .sum-bluray
 .bluray: bluray
 	cd $< && ./bootstrap
 	cd $< && $(HOSTVARS) ./configure $(BLURAY_CONF) $(HOSTCONF)
-	cd $< && $(MAKE) install
+	cd $< && $(MAKE) $(JAVA_HOME_EXTRA) && make install
 	touch $@
-- 
1.8.5.2 (Apple Git-48)




More information about the vlc-devel mailing list