Ticket #40324: Portfile

File Portfile, 1.8 KB (added by Ionic (Mihai Moldovan), 11 years ago)

Get rid of the ugly muniversal hack for building universal with FSF GCC, instead focus on Apple (LLVM) GCC and clang which can build universal OOTB via -arch.

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem                  1.0
5
6name                        fatsort
7version                     1.1.1.336
8maintainers                 ionic.de:ionic
9categories                  sysutils
10license                     GPL-2
11installs_libs               no
12platforms                   darwin
13
14description                 Utility to sort FAT12, FAT16 and FAT32 partitions
15long_description            FATSort is a C utility that sorts FAT12, FAT16 and FAT32 \
16                            partitions. It even can handle long file name entries. \
17                            FATSort reads the boot sector and sorts the directory \
18                            structure recursively.
19homepage                    http://fatsort.sourceforge.net/
20master_sites                sourceforge:${name}
21
22# Needed to be able to pass initial C/LDFLAGS to the Makefile.
23patchfiles                  patch-src-Makefile.diff
24
25checksums                   md5     268ce4154ede7c08ff09eb3a80f0db51 \
26                            sha1    03a070603e7d48a98efd13166a2cc798141d0678 \
27                            rmd160  f218d8fc06df2e5a73ce050c88f5df9d2eae4c53
28
29depends_lib                 port:libiconv
30
31use_configure               no
32
33variant universal {}
34
35build.args-append  CC=\"${configure.cc}\" \
36                   LD=\"${configure.cc}\" \
37                   MACPORTS_CFLAGS=\"${configure.cppflags} ${configure.cflags} [get_canonical_archflags]\" \
38                   MACPORTS_LDFLAGS=\"${configure.ldflags} [get_canonical_archflags]\"
39
40post-patch {
41    reinplace "s|MANDIR=/usr/local|MANDIR=${prefix}|" ${worksrcpath}/Makefile
42    reinplace "s|SBINDIR=/usr/local|SBINDIR=${prefix}|" ${worksrcpath}/src/Makefile
43}