Ticket #1470: Portfile

File Portfile, 1.6 KB (added by waqar@…, 21 years ago)

Portfile

Line 
1# $Id: Portfile,v 1.7 2003/10/24 03:11:13 waqar Exp $
2
3PortSystem 1.0
4name            osxutils
5version         1.3
6categories      devel
7maintainers     waqar@opendarwin.org
8description     Command line utilities for Finder commands
9long_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.
16homepage        http://sourceforge.net/projects/osxutils/
17platforms       macosx
18master_sites    sourceforge
19extract.suffix  .tgz
20distname        ${name}-${version}-src
21checksums       md5 03120e6f11133850c96ce9bbf7ffa3cd
22use_configure   no
23build.type      pbx
24build.target    {}
25set b_progs     "lsmac setfcomment setfctypes setfflags setlabel setsuffix"
26set i_progs     "cpath google trash"
27pre-build       {
28        system "cd ${worksrcpath}/setfcomment && \
29                mv setfcomment.c main.c"
30        system "cd ${worksrcpath}/setlabel && \
31                mv setlabel.c main.c"
32}
33build           {
34        foreach prog ${b_progs} {
35                cd ${worksrcpath}/${prog}
36                system "${build.cmd}"
37        }
38}       
39destroot.destdir
40destroot        {
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