Ticket #28573: patch-fltk-devel.diff
File patch-fltk-devel.diff, 2.8 KB (added by jarno.rajahalme@…, 14 years ago) |
---|
-
./Portfile
1 1 # -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 2 # $Id: Portfile 75769 2011-02-08 00:30:43Z jmr@macports.org$2 # $Id: $ 3 3 4 4 PortSystem 1.0 5 5 6 6 name fltk-devel 7 7 conflicts fltk 8 version 1.3.x-r7794 9 revision 1 8 version 1.3.x-r8472 10 9 categories aqua devel 11 10 platforms macosx 12 11 maintainers nomaintainer … … 31 30 distname fltk-${version} 32 31 use_bzip2 yes 33 32 34 checksums md5 1500dacd85587b02aa6009090c661ccb \ 35 sha1 cb6ed7681b81a5126dcec8be57ac4cb39aef0243 \ 36 rmd160 668f3b5cad382d72495400e9dadb37b62147f2e4 37 38 depends_lib port:jpeg \ 39 port:libpng \ 40 port:zlib 33 checksums md5 b27b9d75effbd88505ed22851e9babf3 \ 34 sha1 8258df43f9a60ebe1b4560075a0a8fd85b9127ec \ 35 rmd160 7b672d5adb99ffef6cedbdbb4a76b12f5313b82c 41 36 42 37 worksrcdir ${distname} 43 38 … … 48 43 reinplace "s|/Applications|${applications_dir}/fltk|g" \ 49 44 ${worksrcpath}/fluid/Makefile \ 50 45 ${worksrcpath}/test/Makefile 51 52 # allow for 64-bit installs53 reinplace "s| -arch i386||g" ${worksrcpath}/configure54 46 } 55 47 56 48 pre-configure { … … 59 51 } else { 60 52 set archflags ${configure.cc_archflags} 61 53 } 62 configure.env DSOFLAGS=\"${archflags}\"63 54 configure.args-append --with-archflags=\"${archflags}\" 64 }65 55 66 configure.cflags 67 configure.cppflags 68 configure.cxxflags 69 configure.ldflags 70 configure.universal_cflags 71 configure.universal_cppflags 72 configure.universal_cxxflags 73 configure.universal_ldflags 74 configure.args --enable-shared \ 75 --mandir=${prefix}/share/man 56 # arch flags are in ARCHFLAGS due to --with-archflags, remove them from other flags 57 configure.cflags-replace "g/-arch \[^ \]* *//" 58 configure.cppflags-replace "g/-arch \[^ \]* *//" 59 configure.cxxflags-replace "g/-arch \[^ \]* *//" 60 configure.ldflags-replace "g/-arch \[^ \]* *//" 61 configure.universal_cflags-replace "g/-arch \[^ \]* *//" 62 configure.universal_cppflags-replace "g/-arch \[^ \]* *//" 63 configure.universal_cxxflags-replace "g/-arch \[^ \]* *//" 64 configure.universal_ldflags-replace "g/-arch \[^ \]* *//" 65 66 configure.args-append --enable-shared 67 } 76 68 77 69 destroot.target install \ 78 70 install-desktop 79 71 80 72 universal_variant yes 73 # Make universal variant the default, so that both 32-bit and 64-bit apps can depend on this 74 default_variants +universal 81 75 82 76 livecheck.type regexm 83 77 livecheck.url ${homepage} 84 livecheck.regex " Developmental Release.*?\n.*?VERSION=(\\d+(\\.\\d+)*)'"78 livecheck.regex "Snapshots:.*VERSION=(1\\.3\\.x-r\\d+)'"