Ticket #28678: fossil.diff
File fossil.diff, 1.8 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago) |
---|
-
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
32 32 depends_lib port:zlib \ 33 33 port:openssl 34 34 35 universal_variant no 35 patchfiles patch-Makefile.diff 36 36 37 37 post-extract { 38 38 reinplace s|\$\(INSTALLDIR\)|\$(DESTDIR)/${prefix}/bin|g ${worksrcpath}/src/makemake.tcl … … 42 42 system "cd ${worksrcpath}/src && tclsh ${worksrcpath}/src/makemake.tcl" 43 43 } 44 44 45 if {[variant_isset universal]} { 46 set archflags ${configure.universal_cflags} 47 } else { 48 set archflags ${configure.cc_archflags} 49 } 50 51 build.args-append CC="${configure.cc} ${archflags}" \ 52 CFLAGS=${configure.cflags} \ 53 LDFLAGS=${configure.ldflags} 54 45 55 livecheck.type regex 46 56 livecheck.url ${homepage}/download.html 47 57 livecheck.regex ${name}-src-(\\d{14})${extract.suffix}