Ticket #54661: libbluray.diff
File libbluray.diff, 2.7 KB (added by RJVB (René Bertin), 7 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name libbluray 6 version 1.0. 06 version 1.0.1 7 7 categories multimedia 8 8 license LGPL-2.1 9 platforms darwin 9 platforms darwin linux 10 10 maintainers {jeremyhu @jeremyhu} openmaintainer 11 description an open-source library designed for Blu-Ray Disc splayback11 description an open-source library designed for Blu-Ray Disc playback 12 12 13 13 long_description ${description} 14 14 … … 20 20 depends_build port:pkgconfig \ 21 21 port:perl5 22 22 23 depends_lib port:libxml2 \ 23 depends_lib port:libxml2 24 platform darwin { 25 depends_lib-append \ 24 26 port:fontconfig \ 25 27 port:freetype 28 } 26 29 27 checksums rmd160 1d81c6c4fe9f3808e116a1e49641eed28fa52e14 \ 28 sha256 f7e3add335c7bbef45824fcd2249a9bf293868598c13f8479352c44ec95374cc 30 checksums rmd160 3f987c46e7463d70cf66eb18d3eba31fb09df456 \ 31 sha256 0f9f9a1db2f48cafc70ed2596ff3594b597e2027408f5f2be6191c245d67853a 32 33 patchfiles-append \ 34 patch-lib-locs.diff \ 35 patch-bdj_jarfile-loc.diff 36 post-patch { 37 reinplace -W ${worksrcpath}/src "s|@PREFIX@|${prefix}|g" \ 38 file/dl_posix.c \ 39 libbluray/bdj/bdj.c 40 } 29 41 30 42 configure.perl ${prefix}/bin/perl5 31 43 32 44 configure.args --disable-doxygen-doc \ 33 --disable-bdjava \ 34 --disable-examples \ 35 --enable-udf 45 --enable-examples 46 platform darwin { 47 variant bdjava description {enable BD-Java (menu support); requires the JRE >=7 (or JDK for building)!} {} 48 if {![variant_isset bdjava]} { 49 configure.args-append \ 50 --disable-bdjava 51 } else { 52 patchfiles-append \ 53 patch-bdj-mac.diff 54 depends_build-append \ 55 port:apache-ant 56 configure.env-append \ 57 JDK_HOME=[exec /usr/libexec/java_home] 58 build.env-append \ 59 JDK_HOME=[exec /usr/libexec/java_home] 60 notes-append "Remember to install a JRE >=7 (https://java.com/en/download/manual.jsp) 61 or to build, a JDK >=7 (http://www.oracle.com/technetwork/java/javase/downloads/index.html)" 62 } 63 } 36 64 37 65 livecheck.type regex 38 66 livecheck.url ${homepage} 39 livecheck.regex libbluray (\ [0-9.]+)67 livecheck.regex libbluray (\\d+(\\.\\d+)+)