Ticket #12355: portfile.2

File portfile.2, 2.9 KB (added by jay macosforge@…, 17 years ago)

Portfile2

Line 
1# $Id$
2
3PortSystem 1.0
4
5name                NicePlayer
6version             0.95
7categories          aqua multimedia
8platforms           darwin
9maintainers         jay+macports@tuley.name
10homepage            http://niceplayer.sourceforge.net
11description         Multi-engine Fullscreen Video Player
12long_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
20master_sites        sourceforge:niceplayer
21distname            ${name}_source_${version}
22checksums           sha1 3f59c9c501eb94223e972df26758a55bbe8ea26d
23extract.suffix      .tbz2
24extract.cmd         bzip2
25
26post-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
35use_configure       no
36build.type          pbx
37build.dir           ${workpath}/${name}_source_${version}/niceplayer
38build.target        -configuration Release
39build.args          build -project ${name}.xcodeproj SYMROOT=${workpath}/build
40
41pre-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
62destroot {
63                    xinstall -m 755 -d ${destroot}/Applications/MacPorts/
64                    file copy ${workpath}/build/Release/${name}.app \
65                              ${destroot}/Applications/MacPorts/
66}