source: trunk/dports/sysutils/osxutils/Portfile @ 75257

Last change on this file since 75257 was 75257, checked in by ryandesign@…, 10 years ago

Mark Waqar's ports as openmaintainer since he hasn't committed in years

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# $Id: Portfile 75257 2011-01-19 06:23:12Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup xcode 1.0
5
6name            osxutils
7version         1.7
8revision        1
9categories      sysutils
10
11maintainers     waqar openmaintainer
12description     Command line utilities for Finder commands
13long_description        \
14        osxutils is a package of potentially useful Mac-oriented        \
15        command line utilities for Mac OS X version 10.0 or later.      \
16        These tools represent an effort in bringing command line        \
17        control over certain aspects of the Mac OS, in particular       \
18        file meta-data such as Finder flags, heritage file Type and     \
19        Creator codes, comments and suffixes/file extensions.
20homepage        http://sourceforge.net/projects/osxutils
21master_sites    sourceforge
22use_zip         yes
23
24distname        ${name}-${version}-src-xcode
25worksrcdir      ${name}
26checksums       md5 7f404befd8909fa4b06adcd71c5afe22                    \
27                sha1 5cbd1badf4cd7fe36431baf5e1358a68f9967eac           \
28                rmd160 b91fa4644ee8348c0013f55aaa9d0d8f2e46dafe
29
30# upgrade to "native" targets so modern Xcode doesn't complain
31patchfiles      patch-xcodeprojs
32
33post-patch {
34    foreach item [concat [glob ${worksrcpath}/*/*.1] ${worksrcpath}/rcmac/rcmac] {
35        reinplace "s|/usr/local|${prefix}|g" ${item}
36    }
37}
38
39# all but one of these tools use 32-bit-only carbon bits
40supported_archs i386 ppc
41
42set bt {getfcomment geticon hfsdata lsmac mkalias setfcomment setfctypes setfflags seticon setlabel setsuffix wsupdate}
43
44# Mostly clagged from xcode portgroup. Not pretty, but the portgroup doesn't
45# support multiple projects.
46build {
47    # set some arguments.
48    set xcode_configuration_arg [xcode::get_configuration_arg ${xcode.configuration}]
49    set xcode_build_args [xcode::get_build_args]
50
51    foreach item ${bt} {
52        xcode.project ${item}/${item}.xcodeproj
53        set xcode_project_arg [xcode::get_project_arg ${xcode.project}]
54        xcode::build_one_target \
55            "$xcode_project_arg -alltargets $xcode_configuration_arg" \
56            "$xcode_build_args ${xcode.build.settings}"
57    }
58}
59
60xcode.destroot.path ${prefix}/bin
61destroot {
62    # set some arguments.
63    set xcode_configuration_arg [xcode::get_configuration_arg ${xcode.configuration}]
64    set xcode_install_path_setting [xcode::get_install_path_setting \
65                                        ${xcode.destroot.path} ${xcode.destroot.type}]
66    set xcode_build_args [xcode::get_build_args]
67
68    foreach item ${bt} {
69        xcode.project ${item}/${item}.xcodeproj
70        # let Xcode 2.1+ find resources.
71        xcode::fix_resource_dependencies
72        set xcode_project_arg [xcode::get_project_arg ${xcode.project}]
73        xcode::destroot_one_target \
74            "$xcode_project_arg -alltargets $xcode_configuration_arg" \
75            "$xcode_install_path_setting $xcode_build_args ${xcode.destroot.settings}"
76        copy ${worksrcpath}/${item}/${item}.1 ${destroot}${prefix}/share/man/man1
77    }
78
79    foreach item {cpath google rcmac setvolume trash wiki} {
80                copy ${worksrcpath}/${item}/${item} ${destroot}${prefix}/bin
81                copy ${worksrcpath}/${item}/${item}.1 ${destroot}${prefix}/share/man/man1
82        }
83        copy ${worksrcpath}/osxutils/osxutils ${destroot}${prefix}/bin
84        delete ${destroot}/usr
85}
Note: See TracBrowser for help on using the repository browser.