Ticket #28678: Portfile.2.diff
File Portfile.2.diff, 1.1 KB (added by ci42, 14 years ago) |
---|
-
Portfile
old new 33 33 depends_lib port:zlib \ 34 34 port:openssl 35 35 36 universal_variant no37 36 38 37 build.args-append CC='${configure.cc} -arch ${build_arch}' CFLAGS=${configure.cflags} LDFLAGS=${configure.ldflags} 39 38 40 39 post-extract { 41 40 reinplace s|\$\(INSTALLDIR\)|\$(DESTDIR)/${prefix}/bin|g ${worksrcpath}/src/makemake.tcl 42 reinplace s|gcc|\$(CC)|g ${worksrcpath}/Makefile43 41 } 44 42 45 43 configure { 46 44 system "cd ${worksrcpath}/src && tclsh ${worksrcpath}/src/makemake.tcl" 47 45 } 48 46 47 post-configure { 48 reinplace s|gcc|\$(CC)|g ${worksrcpath}/Makefile 49 } 50 51 if {[variant_isset universal]} { 52 set archflags ${configure.universal_cflags} 53 } else { 54 set archflags ${configure.cc_archflags} 55 } 56 57 build.args-append CC="${configure.cc} ${archflags}" \ 58 CFLAGS=${configure.cflags} \ 59 LDFLAGS=${configure.ldflags} 60 49 61 livecheck.type regex 50 62 livecheck.url ${homepage}/download.html 51 63 livecheck.regex ${name}-src-(\\d{14})${extract.suffix}