source: trunk/dports/aqua/NicePlayer/Portfile

Last change on this file was 51021, checked in by and.damore@…, 8 years ago

Reverting wrong email changes in r50984.

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