Ticket #28795: fossil.diff

File fossil.diff, 2.3 KB (added by ci42, 14 years ago)
  • Portfile

    diff -urN orig/Portfile new/Portfile
    old new  
    55
    66name                fossil
    77version             20110301190432
     8revision            1
    89categories          devel
    910platforms           darwin
     11license             Simplified BSD License
    1012maintainers         googlemail.com:ciserlohn
    1113
    1214description         Simple, high-reliability, distributed software configuration management
     
    3234depends_lib         port:zlib \
    3335                    port:openssl
    3436
    35 universal_variant   no
     37patchfiles          patch-Makefile.diff
    3638
    3739post-extract {
    3840    reinplace s|\$\(INSTALLDIR\)|\$(DESTDIR)/${prefix}/bin|g ${worksrcpath}/src/makemake.tcl
     
    4244    system "cd ${worksrcpath}/src && tclsh ${worksrcpath}/src/makemake.tcl"
    4345}
    4446
     47if {[variant_isset universal]} {
     48    set archflags ${configure.universal_cflags}
     49} else {
     50    set archflags ${configure.cc_archflags}
     51}
     52
     53build.args-append   CC="${configure.cc} ${archflags}" \
     54                    CFLAGS=${configure.cflags} \
     55                    LDFLAGS=${configure.ldflags}
     56
     57post-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
    4564livecheck.type      regex
    4665livecheck.url       ${homepage}/download.html
    4766livecheck.regex     ${name}-src-(\\d{14})${extract.suffix}
  • files/patch-Makefile.diff

    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