7 | | platforms macosx |
8 | | maintainers nomaintainer |
9 | | homepage http://niceplayer.sourceforge.net |
10 | | description Multi-engine Fullscreen Video Player |
11 | | long_description This program aims to be a Video player designed for \ |
12 | | playing movies nicely for a person who likes to watch or \ |
13 | | present movies on their computer (such as the casual \ |
14 | | viewer or the video artist). This program features full \ |
15 | | screen or border-less floating windows, convenient \ |
16 | | controls for scrubbing or queuing movies, and on the \ |
17 | | fly playlist creation. |
| 9 | maintainers {ryandesign @ryandesign} openmaintainer |
| 10 | license {MPL-1.1 GPL-2+ LGPL-2.1+} |
| 14 | long_description This program aims to be a multi-engine player player \ |
| 15 | designed for playing movies nicely for a person who likes \ |
| 16 | to watch or present movies on their computer (such as the \ |
| 17 | casual viewer or the video artist). This program features \ |
| 18 | full screen or border-less floating windows, convenient \ |
| 19 | controls for scrubbing or queuing movies, and on-the-fly \ |
| 20 | playlist creation. |
| 21 | |
| 22 | # Building for i386 fails. |
| 23 | # https://github.com/jbtule/NicePlayer/issues/8 |
| 24 | supported_archs x86_64 |
| 25 | |
| 26 | # Uses submodules and does not offer a full source code download. |
| 27 | # https://github.com/jbtule/NicePlayer/issues/6 |
| 28 | fetch.type git |
| 29 | post-fetch { |
| 30 | system -W ${worksrcpath} "git submodule update --init" |
| 31 | } |
| 32 | |
| 33 | patchfiles-append sdp.patch |
| 34 | |
| 35 | # Uses Sparkle and doesn't offer a way to fully disable it. |
| 36 | # https://github.com/jbtule/NicePlayer/issues/4 |
| 37 | depends_lib-append path:lib/libssl.dylib:openssl |
| 38 | patchfiles-append no-sparkle.patch |
40 | | pre-destroot { |
41 | | # Rename the following files because of a bug in macports which fails to |
42 | | # uninstall files containg { or }; Ticket #12420 |
43 | | set scripts "${workpath}/build/Release/${name}.app/Contents/Resources/Default Scripts" |
44 | | |
45 | | file rename "${scripts}/01 Stretch Aspect Ratio/01 To 16-9 {^*L}.scpt" \ |
46 | | "${scripts}/01 Stretch Aspect Ratio/01 To 16-9 ⁅^*L⁆.scpt" |
47 | | file rename "${scripts}/01 Stretch Aspect Ratio/01 To 4-3 {^*K}.scpt" \ |
48 | | "${scripts}/01 Stretch Aspect Ratio/01 To 4-3 ⁅^*K⁆.scpt" |
49 | | |
50 | | file rename "${scripts}/02 Time Control/Go To Time...{^*G}.scpt" \ |
51 | | "${scripts}/02 Time Control/Go To Time...⁅^*G⁆.scpt" |
52 | | file rename "${scripts}/02 Time Control/Title Sequence (Approx) Jump {^*J}.scpt" \ |
53 | | "${scripts}/02 Time Control/Title Sequence (Approx) Jump⁅^*J⁆.scpt" |
54 | | |
55 | | file rename "${scripts}/98 Just For Fun/Send to Background {^*B}.scpt" \ |
56 | | "${scripts}/02 Time Control/Send to Background ⁅^*B⁆.scpt" |
57 | | file rename "${scripts}/98 Just For Fun/Set Current Window Transparency {^*T}.scpt" \ |
58 | | "${scripts}/02 Time Control/Set Current Window Transparency ⁅^*T⁆.scpt" |
| 45 | # Do not set INSTALL_PATH as this breaks the app's ability to link to the embedded frameworks. |
| 46 | xcode.destroot.type |
| 47 | |
| 48 | # Uses QuickTime.h which Apple removed in the macOS 10.12 SDK. |
| 49 | # https://github.com/jbtule/NicePlayer/issues/5 |
| 50 | if {[vercmp ${configure.sdk_version} 10.11] > 0} { |
| 51 | configure.sdk_version 10.11 |
| 52 | # Needs my MacOSX.sdk port and support for it in MacPorts base. |
| 53 | if no { |
| 54 | configure.sdkroot ${prefix}/Developer/SDKs/MacOSX${configure.sdk_version}.sdk |
| 55 | } |