Changeset 79850
- Timestamp:
- 06/27/11 20:58:49 (4 years ago)
- File:
-
- 1 edited
-
trunk/dports/graphics/freeimage/Portfile (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/graphics/freeimage/Portfile
r79508 r79850 6 6 name freeimage 7 7 version 3.15.0 8 revision 1 8 9 license FreeImage-1.0 GPL-2 9 10 categories graphics … … 28 29 rmd160 5d309d0d8335129d00d6b5455613c89a419ebcac 29 30 31 set VERLIBNAME libfreeimage.[lindex [split ${version} .] 0].dylib 32 30 33 post-patch { 31 34 # Libraries extension is ".dylib" on Darwin, not ".so" … … 48 51 } 49 52 50 if { [variant_isset universal] } {51 post-patch {52 reinplace "s|CFLAGS ?= |CFLAGS ?= ${configure.universal_cflags} |g" ${worksrcpath}/Makefile.gnu53 reinplace "s|CXXFLAGS ?= |CXXFLAGS ?= ${configure.universal_cxxflags} |g" ${worksrcpath}/Makefile.gnu54 }55 } else {56 post-patch {57 reinplace "s|CFLAGS ?= |CFLAGS ?= -arch ${build_arch} |g" ${worksrcpath}/Makefile.gnu58 reinplace "s|CXXFLAGS ?= |CXXFLAGS ?= -arch ${build_arch} |g" ${worksrcpath}/Makefile.gnu59 }60 }61 62 53 use_configure no 63 54 64 set VERLIBNAME libfreeimage.[lindex [split ${version} .] 0].dylib 55 variant universal {} 56 if {[variant_isset universal]} { 57 set archflags ${configure.universal_cflags} 58 } else { 59 set archflags ${configure.cc_archflags} 60 } 65 61 66 62 build.args -f Makefile.gnu \ 67 63 PREFIX=${prefix} \ 68 64 VERLIBNAME=${VERLIBNAME} \ 69 CC="${configure.cc} " \70 CXX="${configure.cxx} " \65 CC="${configure.cc} ${configure.cflags} ${archflags}" \ 66 CXX="${configure.cxx} ${configure.cxxflags} ${archflags}" \ 71 67 LDFLAGS="${configure.ldflags}" 72 68 … … 92 88 pre-test { 93 89 # Use correct compiler and flags when compiling test 94 reinplace s:g++:${configure.cxx}:${test.dir}/Makefile90 reinplace "s:g++:${configure.cxx} ${configure.cxxflags} ${archflags}:" ${test.dir}/Makefile 95 91 96 92 # Build the test
Note: See TracChangeset
for help on using the changeset viewer.

