1 | # $Id: Portfile,v 1.7 2003/10/24 03:11:13 waqar Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name osxutils |
---|
5 | version 1.3 |
---|
6 | categories devel |
---|
7 | maintainers waqar@opendarwin.org |
---|
8 | description Command line utilities for Finder commands |
---|
9 | long_description \ |
---|
10 | osxutils is a package of potentially useful Mac-oriented command \ |
---|
11 | line utilities for MacOS X version 10.0 or later. These tools \ |
---|
12 | represent an effort in bringing command line control over certain \ |
---|
13 | aspects of the MacOS, in particular file meta-data such as Finder \ |
---|
14 | flags, heritage file Type and Creator codes, comments and \ |
---|
15 | suffixes/file extensions. |
---|
16 | homepage http://sourceforge.net/projects/osxutils/ |
---|
17 | platforms macosx |
---|
18 | master_sites sourceforge |
---|
19 | extract.suffix .tgz |
---|
20 | distname ${name}-${version}-src |
---|
21 | checksums md5 03120e6f11133850c96ce9bbf7ffa3cd |
---|
22 | use_configure no |
---|
23 | build.type pbx |
---|
24 | build.target {} |
---|
25 | set b_progs "lsmac setfcomment setfctypes setfflags setlabel setsuffix" |
---|
26 | set i_progs "cpath google trash" |
---|
27 | pre-build { |
---|
28 | system "cd ${worksrcpath}/setfcomment && \ |
---|
29 | mv setfcomment.c main.c" |
---|
30 | system "cd ${worksrcpath}/setlabel && \ |
---|
31 | mv setlabel.c main.c" |
---|
32 | } |
---|
33 | build { |
---|
34 | foreach prog ${b_progs} { |
---|
35 | cd ${worksrcpath}/${prog} |
---|
36 | system "${build.cmd}" |
---|
37 | } |
---|
38 | } |
---|
39 | destroot.destdir |
---|
40 | destroot { |
---|
41 | foreach prog ${i_progs} { |
---|
42 | system "cd ${worksrcpath}/${prog} && install -m 555 \ |
---|
43 | ${prog} ${destroot}${prefix}/bin/" |
---|
44 | system "cd ${worksrcpath}/${prog} && install -m 444 \ |
---|
45 | ${prog}.1 ${destroot}/${prefix}/share/man/man1/" |
---|
46 | } |
---|
47 | foreach prog ${b_progs} { |
---|
48 | system "cd ${worksrcpath}/${prog}/build && install -m 555 \ |
---|
49 | ${prog} ${destroot}${prefix}/bin/" |
---|
50 | system "cd ${worksrcpath}/${prog} && install -m 444 \ |
---|
51 | ${prog}.1 ${destroot}/${prefix}/share/man/man1/" |
---|
52 | } |
---|
53 | } |
---|
54 | |
---|