source: trunk/dports/sysutils/mdate/Portfile

Last change on this file was 110994, checked in by jmr@…, 4 years ago

mdate: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 110994 2013-09-12 23:50:09Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    mdate
6version                 1.5.6
7categories              sysutils
8license                 GPL-2
9platforms               darwin freebsd
10maintainers             nomaintainer
11
12description             utility that converts Gregorian dates to Mayan Long Count dates
13
14long_description        ${description}
15
16homepage                http://mdate.sourceforge.net/
17master_sites            sourceforge
18distname                Mdate-${version}
19
20checksums               md5     813edcde16cac96afddcf4be9342a82d \
21                        sha1    3a79e550e34774c247c792cc268f8c65f59fcee1 \
22                        rmd160  8af75f2c45944c612f9330e42c9d29b77d44a924
23
24use_configure           no
25
26variant universal {}
27if {[variant_isset universal]} {
28    set archflags ${configure.universal_cflags}
29} else {
30    set archflags ${configure.cc_archflags}
31}
32
33build.args              CXX="${configure.cxx} ${archflags}"
34
35platform darwin {
36    build.target        target=osx
37}
38
39platform freebsd {
40    build.target        target=freebsd
41}
42
43destroot {
44    xinstall -s -m 755 ${worksrcpath}/mdate ${destroot}${prefix}/bin
45    xinstall -m 644 ${worksrcpath}/mdate.1 ${destroot}${prefix}/share/man/man1
46   
47    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
48    xinstall -m 644 -W ${worksrcpath} \
49        API \
50        AUTHORS \
51        BUGS \
52        ChangeLog \
53        NEWS \
54        README \
55        Translators \
56        mdate-1.html \
57        mdate-2.html \
58        mdate-3.html \
59        mdate-4.html \
60        mdate.html \
61        ${destroot}${prefix}/share/doc/${name}
62}
Note: See TracBrowser for help on using the repository browser.