diff -urN orig/Portfile new/Portfile
old
|
new
|
|
5 | 5 | |
6 | 6 | name fossil |
7 | 7 | version 20110301190432 |
| 8 | revision 1 |
8 | 9 | categories devel |
9 | 10 | platforms darwin |
| 11 | license Simplified BSD License |
10 | 12 | maintainers googlemail.com:ciserlohn |
11 | 13 | |
12 | 14 | description Simple, high-reliability, distributed software configuration management |
… |
… |
|
32 | 34 | depends_lib port:zlib \ |
33 | 35 | port:openssl |
34 | 36 | |
35 | | universal_variant no |
| 37 | patchfiles patch-Makefile.diff |
36 | 38 | |
37 | 39 | post-extract { |
38 | 40 | reinplace s|\$\(INSTALLDIR\)|\$(DESTDIR)/${prefix}/bin|g ${worksrcpath}/src/makemake.tcl |
… |
… |
|
42 | 44 | system "cd ${worksrcpath}/src && tclsh ${worksrcpath}/src/makemake.tcl" |
43 | 45 | } |
44 | 46 | |
| 47 | if {[variant_isset universal]} { |
| 48 | set archflags ${configure.universal_cflags} |
| 49 | } else { |
| 50 | set archflags ${configure.cc_archflags} |
| 51 | } |
| 52 | |
| 53 | build.args-append CC="${configure.cc} ${archflags}" \ |
| 54 | CFLAGS=${configure.cflags} \ |
| 55 | LDFLAGS=${configure.ldflags} |
| 56 | |
| 57 | post-destroot { |
| 58 | # retain copyright notice and licence |
| 59 | set docdir ${destroot}${prefix}/share/doc/${name}-${version} |
| 60 | xinstall -d $docdir |
| 61 | file copy ${worksrcpath}/COPYRIGHT-BSD2.txt $docdir/ |
| 62 | } |
| 63 | |
45 | 64 | livecheck.type regex |
46 | 65 | livecheck.url ${homepage}/download.html |
47 | 66 | livecheck.regex ${name}-src-(\\d{14})${extract.suffix} |
diff -urN orig/files/patch-Makefile.diff new/files/patch-Makefile.diff
old
|
new
|
|
| 1 | --- Makefile.orig 2011-03-01 15:48:18.000000000 -0600 |
| 2 | +++ Makefile 2011-03-07 17:20:31.000000000 -0600 |
| 3 | @@ -20,7 +20,7 @@ |
| 4 | # to compile code-generator programs as part of the build process. |
| 5 | # See TCC below for the C compiler for building the finished binary. |
| 6 | # |
| 7 | -BCC = gcc |
| 8 | +BCC = $(CC) |
| 9 | |
| 10 | #### The suffix to add to final executable file. When cross-compiling |
| 11 | # to windows, make this ".exe". Otherwise leave it blank. |
| 12 | @@ -35,7 +35,7 @@ |
| 13 | # |
| 14 | #TCC = gcc -O6 |
| 15 | #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage |
| 16 | -TCC = gcc -g -Os -Wall |
| 17 | +TCC = $(CC) -g -Os -Wall |
| 18 | |
| 19 | # To add support for HTTPS |
| 20 | TCC += -DFOSSIL_ENABLE_SSL |