source: trunk/dports/sysutils/disktype/Portfile

Last change on this file was 122229, checked in by jmr@…, 3 years ago

disktype: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 122229 2014-07-18 02:24:03Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                disktype
6version             9
7revision            1
8categories          sysutils
9license             MIT
10platforms           darwin
11maintainers         nomaintainer
12description         Detects the content format of a disk or disk image
13long_description \
14   Detects the content format of a disk or disk image by checking for \
15   signatures of file systems, partition tables, and boot codes.
16
17homepage            http://disktype.sourceforge.net/
18master_sites        sourceforge:project/disktype/disktype/${version}
19
20checksums           sha1 5ccc55d1c47f9a37becce7336c4aa3a7a43cc89c
21
22patchfiles          patch-Makefile.diff
23post-patch {
24   if {[variant_isset universal]} {
25      reinplace "s|@@UNIVERSAL_CPPFLAGS@@|${configure.universal_cppflags}|" \
26         ${worksrcpath}/Makefile
27      reinplace "s|@@UNIVERSAL_CFLAGS@@|${configure.universal_cflags}|" \
28         ${worksrcpath}/Makefile
29      reinplace "s|@@UNIVERSAL_LDFLAGS@@|${configure.universal_ldflags}|" \
30         ${worksrcpath}/Makefile
31   } else {
32      reinplace "s|@@UNIVERSAL_CPPFLAGS@@||" ${worksrcpath}/Makefile
33      reinplace "s|@@UNIVERSAL_CFLAGS@@||" ${worksrcpath}/Makefile
34      reinplace "s|@@UNIVERSAL_LDFLAGS@@||" ${worksrcpath}/Makefile
35   }
36}
37
38use_configure       no
39
40destroot {
41   xinstall -m 755 -s ${worksrcpath}/disktype ${destroot}${prefix}/sbin
42   xinstall -m 644 ${worksrcpath}/disktype.1 \
43      ${destroot}${prefix}/share/man/man1
44}
45
46variant universal {
47}
Note: See TracBrowser for help on using the repository browser.