source: trunk/dports/aqua/Growl/Portfile

Last change on this file was 98816, checked in by jmr@…, 5 years ago

Growl: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 98816 2012-10-17 09:21:10Z ryandesign@macports.org $
2
3PortSystem              1.0
4PortGroup               xcode 1.0
5
6name                    Growl
7set base_version        1.1.6
8version                 ${base_version}
9revision                1
10platforms               darwin
11license                 BSD zlib
12maintainers             nomaintainer
13description             global notification system for Mac OS X
14long_description        Growl is a global notification system for Mac OS X. Any \
15                                application can send a notification to Growl, which will \
16                                display an attractive message on your screen.
17
18homepage                http://growl.info/
19
20master_sites    ${homepage}files/source/
21
22checksums           md5     ab0e668ae536257e9845b80b27d6a8e6 \
23                    sha1    9700a04b995c7ce808c3f37a6a0556785de55a3a \
24                    rmd160  e43f232073a58d077b0fe1bd772d4f257c2edc83
25
26use_bzip2               yes
27distname                ${distname}-src
28
29xcode.target            Growl
30destroot.destdir        DSTROOT=${worksrcpath}/build
31xcode.destroot.path     /destroot
32destroot.violate_mtree   yes
33
34# Common/Source/LoginItemAE.c uses Carbon so can't build x86_64
35supported_archs         i386 ppc
36
37post-patch {
38        reinplace "s|REVISION=.*|REVISION=116|g" ${worksrcpath}/generateHgRevision.sh
39}
40
41# install only Growl.prefPane
42post-destroot {
43        xinstall -d "${destroot}/Library/PreferencePanes"
44        move ${worksrcpath}/build/destroot/Growl.prefPane "${destroot}/Library/PreferencePanes"
45}
46
47# The old behaviour of automatically installing the contributed extras in the
48# source distribution has been disabled for now, as it is not apparent that
49# every Growl user will want these.  They should probably go into other ports,
50# in any case.
51
52# the 10.4 SDK might not be installed, use the system's default
53platform darwin 10 {
54        patchfiles-append patch-Growl.xcodeproj__project.pbxproj.no-10.4sdk.diff
55}
56
57# disables separate strip
58platform darwin 8 {
59        patchfiles-append patch-Growl.xcodeproj__project.pbxproj.no_separate_strip.diff
60}
61
62# this proc is overriden to remove the SYMROOT=build/ configuration
63# overwise, Extras/GrowlAction builds in Extras/GrowlAction/build instead of build
64proc xcode::get_build_args {args} {
65    global tcl_platform
66    global configure.universal_archs configure.build_arch macosx_deployment_target
67    global os.major os.arch
68    global developer_dir configure.sdkroot
69
70    set xcode_build_args "OBJROOT=build/"
71
72    # MACOSX_DEPLOYMENT_TARGET
73    append xcode_build_args " MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target}"
74
75    # ARCHS
76    if {[variant_exists universal] && [variant_isset universal]} {
77        append xcode_build_args " ARCHS=\"${configure.universal_archs}\""
78    } else {
79        append xcode_build_args " ARCHS=${configure.build_arch}"
80    }
81
82    # SDKROOT
83    append xcode_build_args " SDKROOT=\"${configure.sdkroot}\""
84
85    return $xcode_build_args
86}
87
Note: See TracBrowser for help on using the repository browser.