Ticket #28678: fossil.diff

File fossil.diff, 1.8 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago)

proposed patch

  • files/patch-Makefile.diff

     
     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
  • Portfile

     
    3232depends_lib         port:zlib \
    3333                    port:openssl
    3434
    35 universal_variant   no
     35patchfiles          patch-Makefile.diff
    3636
    3737post-extract {
    3838    reinplace s|\$\(INSTALLDIR\)|\$(DESTDIR)/${prefix}/bin|g ${worksrcpath}/src/makemake.tcl
     
    4242    system "cd ${worksrcpath}/src && tclsh ${worksrcpath}/src/makemake.tcl"
    4343}
    4444
     45if {[variant_isset universal]} {
     46    set archflags ${configure.universal_cflags}
     47} else {
     48    set archflags ${configure.cc_archflags}
     49}
     50
     51build.args-append   CC="${configure.cc} ${archflags}" \
     52                    CFLAGS=${configure.cflags} \
     53                    LDFLAGS=${configure.ldflags}
     54
    4555livecheck.type      regex
    4656livecheck.url       ${homepage}/download.html
    4757livecheck.regex     ${name}-src-(\\d{14})${extract.suffix}