Changeset 79508
- Timestamp:
- 06/15/11 21:31:50 (4 years ago)
- Location:
- trunk/dports/graphics/freeimage
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/graphics/freeimage/Portfile
r71145 r79508 5 5 6 6 name freeimage 7 version 3.1 4.17 version 3.15.0 8 8 license FreeImage-1.0 GPL-2 9 9 categories graphics … … 24 24 worksrcdir FreeImage 25 25 26 checksums md5 4b43112aa199d8a439e0535b9c25d8a4 \ 27 sha1 cc09671e16460c27242280c2b6100f39974c89e1 \ 28 rmd160 5432f0aa922992ac74e5fefc115c1442bb48ce76 29 30 patchfiles patch-Makefile.gnu.diff 26 checksums md5 3b4f08e4985b269beb29a2fced1ef888 \ 27 sha1 ec2faa01d1b312aab68d77afe62861759c790100 \ 28 rmd160 5d309d0d8335129d00d6b5455613c89a419ebcac 31 29 32 30 post-patch { … … 42 40 # Do not force installation as root 43 41 reinplace {s/-o root -g root//} ${worksrcpath}/Makefile.gnu 42 43 # Darwin requires different arguments to build dynamic libraries 44 reinplace "s|-Wl,-soname,\$(VERLIBNAME)|-dynamiclib -install_name \$(PREFIX)/lib/\$(VERLIBNAME) -compatibility_version \$(VER_MAJOR) -current_version \$(VER_MAJOR).\$(VER_MINOR)|g" ${worksrcpath}/Makefile.gnu 45 46 # Darwin does not have a command ldconfig 47 reinplace "s|ldconfig||g" ${worksrcpath}/Makefile.gnu 48 } 49 50 if { [variant_isset universal] } { 51 post-patch { 52 reinplace "s|CFLAGS ?= |CFLAGS ?= ${configure.universal_cflags} |g" ${worksrcpath}/Makefile.gnu 53 reinplace "s|CXXFLAGS ?= |CXXFLAGS ?= ${configure.universal_cxxflags} |g" ${worksrcpath}/Makefile.gnu 54 } 55 } else { 56 post-patch { 57 reinplace "s|CFLAGS ?= |CFLAGS ?= -arch ${build_arch} |g" ${worksrcpath}/Makefile.gnu 58 reinplace "s|CXXFLAGS ?= |CXXFLAGS ?= -arch ${build_arch} |g" ${worksrcpath}/Makefile.gnu 59 } 44 60 } 45 61 46 62 use_configure no 47 63 48 set CC "${configure.cc} ${configure.cflags}"49 set CXX "${configure.cxx} ${configure.cxxflags}"50 set LDFLAGS ${configure.ldflags}51 64 set VERLIBNAME libfreeimage.[lindex [split ${version} .] 0].dylib 52 65 53 build.target FreeImage54 66 build.args -f Makefile.gnu \ 55 67 PREFIX=${prefix} \ 56 VERLIBNAME=${VERLIBNAME} 57 58 pre-build { 59 build.args-append \ 60 CC="${CC}" \ 61 CXX="${CXX}" \ 62 LDFLAGS="${LDFLAGS}" 63 } 68 VERLIBNAME=${VERLIBNAME} \ 69 CC="${configure.cc}" \ 70 CXX="${configure.cxx}" \ 71 LDFLAGS="${configure.ldflags}" 64 72 65 73 destroot.args -f Makefile.gnu \ … … 84 92 pre-test { 85 93 # Use correct compiler and flags when compiling test 86 reinplace s:g++:${CXX}: ${test.dir}/Makefile 87 88 # Use headers and libraries in source directories as Dist is not used 89 reinplace s:-I../Dist/:-I../Source/: ${test.dir}/Makefile 90 reinplace s:Dist/:: ${test.dir}/Makefile 94 reinplace s:g++:${configure.cxx}: ${test.dir}/Makefile 91 95 92 96 # Build the test … … 94 98 } 95 99 96 variant universal {97 append CC " ${configure.universal_cflags}"98 append CXX " ${configure.universal_cxxflags}"99 append LDFLAGS " ${configure.universal_ldflags}"100 }101 102 100 livecheck.type regex 103 101 livecheck.regex {FreeImage (\d+(?:\.\d+)*) released}
Note: See TracChangeset
for help on using the changeset viewer.

