Ticket #8399: Portfile

File Portfile, 1.2 KB (added by macfreek (Freek Dijkstra), 18 years ago)

Portfile for flip 20050821

Line 
1# $Id: $
2PortSystem          1.0
3name                flip
4version             20050821
5categories          textproc
6platforms           darwin
7description         convert text file line endings
8long_description    Flip converts line endings of text files between Macintosh, Unix and \
9                    MS-DOS formats. It automatically recognizes the current line endings, \
10                    and leaves binary files and timestamps intact. It does not convert \
11                    files to a different character set.
12homepage            http://ccrma-www.stanford.edu/~craig/utility/flip/
13master_sites        http://ccrma-www.stanford.edu/~craig/utility/flip/
14distname            ${name}
15distfiles           ${distname}.cpp
16checksums           md5 21dc9256584eceffcfc27e137b3f8bc5
17
18use_configure   no
19extract     {
20            system "mkdir -p ${worksrcpath}"
21            cd ${distpath}
22            file copy ${distfiles} ${worksrcpath}/
23            }
24build.cmd           g++ -ansi -O3 -o ${distname} ${distfiles}
25build.target        ""
26destroot    {
27            xinstall -m 755 -d ${destroot}${prefix}/bin
28            xinstall -m 755 ${worksrcpath}/${distname} \
29            ${destroot}${prefix}/bin/${distname}
30            }