1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name NicePlayer |
---|
6 | version 0.95 |
---|
7 | categories aqua multimedia |
---|
8 | platforms darwin |
---|
9 | maintainers jay+macports@tuley.name |
---|
10 | homepage http://niceplayer.sourceforge.net |
---|
11 | description Multi-engine Fullscreen Video Player |
---|
12 | long_description This program aims to be a Video player designed for \ |
---|
13 | playing movies nicely for a person who likes to watch or \ |
---|
14 | present movies on their computer (such as the casual \ |
---|
15 | viewer or the video artist). This program features full \ |
---|
16 | screen or border-less floating windows, convenient \ |
---|
17 | controls for scrubbing or queuing movies, and on the \ |
---|
18 | fly playlist creation. |
---|
19 | |
---|
20 | master_sites sourceforge:niceplayer |
---|
21 | distname ${name}_source_${version} |
---|
22 | checksums sha1 3f59c9c501eb94223e972df26758a55bbe8ea26d |
---|
23 | extract.suffix .tbz2 |
---|
24 | extract.cmd bzip2 |
---|
25 | |
---|
26 | post-patch { |
---|
27 | # Remove subversion version extraction while build. |
---|
28 | # Needs to be updated with every release of the port or |
---|
29 | # the automatic updater will not work! |
---|
30 | # The number stored here is the subversion revision. |
---|
31 | reinplace "s|REV=.*|REV=514|g" \ |
---|
32 | ${worksrcpath}/niceplayer/Versioning/version.sh |
---|
33 | } |
---|
34 | |
---|
35 | use_configure no |
---|
36 | build.type pbx |
---|
37 | build.dir ${workpath}/${name}_source_${version}/niceplayer |
---|
38 | build.target -configuration Release |
---|
39 | build.args build -project ${name}.xcodeproj SYMROOT=${workpath}/build |
---|
40 | |
---|
41 | pre-destroot { |
---|
42 | # Rename the following files because of a bug in macports which fails to |
---|
43 | # uninstall files containg { or }; Ticket #12420 |
---|
44 | set scripts "${workpath}/build/Release/${name}.app/Contents/Resources/Default Scripts" |
---|
45 | |
---|
46 | file rename "${scripts}/01 Stretch Aspect Ratio/01 To 16-9 {^*L}.scpt" \ |
---|
47 | "${scripts}/01 Stretch Aspect Ratio/01 To 16-9 ⁅^*L⁆.scpt" |
---|
48 | file rename "${scripts}/01 Stretch Aspect Ratio/01 To 4-3 {^*K}.scpt" \ |
---|
49 | "${scripts}/01 Stretch Aspect Ratio/01 To 4-3 ⁅^*K⁆.scpt" |
---|
50 | |
---|
51 | file rename "${scripts}/02 Time Control/Go To Time...{^*G}.scpt" \ |
---|
52 | "${scripts}/02 Time Control/Go To Time...⁅^*G⁆.scpt" |
---|
53 | file rename "${scripts}/02 Time Control/Title Sequence (Approx) Jump {^*J}.scpt" \ |
---|
54 | "${scripts}/02 Time Control/Title Sequence (Approx) Jump⁅^*J⁆.scpt" |
---|
55 | |
---|
56 | file rename "${scripts}/98 Just For Fun/Send to Background {^*B}.scpt" \ |
---|
57 | "${scripts}/02 Time Control/Send to Background ⁅^*B⁆.scpt" |
---|
58 | file rename "${scripts}/98 Just For Fun/Set Current Window Transparency {^*T}.scpt" \ |
---|
59 | "${scripts}/02 Time Control/Set Current Window Transparency ⁅^*T⁆.scpt" |
---|
60 | } |
---|
61 | |
---|
62 | destroot { |
---|
63 | xinstall -m 755 -d ${destroot}/Applications/MacPorts/ |
---|
64 | file copy ${workpath}/build/Release/${name}.app \ |
---|
65 | ${destroot}/Applications/MacPorts/ |
---|
66 | } |
---|