Changeset 108385 for trunk/dports/gis


Ignore:
Timestamp:
Jul 22, 2013, 10:08:03 AM (6 years ago)
Author:
vince@…
Message:

Fix a bug whereby -lsqlite3 is not included in the library list even when the sqlite3 variant is selected.
Add a +perf variant to optimize code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gis/gdal/Portfile

    r106253 r108385  
    168168variant openjpeg conflicts jasper \
    169169    description {Enable OpenJPEG JPEG-2000 format support} {
    170     depends_lib-append      port:openjpeg15
     170    depends_lib-append      port:openjpeg
    171171    configure.args-delete   --without-openjpeg
    172172    configure.args-append   --with-openjpeg=${prefix}
     
    283283    configure.args-delete   --without-sqlite3
    284284    configure.args-append   --with-sqlite3=${prefix}
     285
     286    post-configure {
     287        reinplace -E "s|^LIBS(.*)\\\\$|LIBS\\1 -lsqlite3 \\\\|" ${worksrcpath}/GDALmake.opt
     288    }
    285289}
    286290
     
    314318variant framework description {Build as a Mac OS X framework} {
    315319    configure.args-append   --with-macosx-framework
     320}
     321
     322# Perf variant to optimize code
     323variant perf description {Optimize for speed} {
     324    configure.compiler      macports-clang-3.3
     325    configure.cflags        -O3 -pipe -march=native
     326    configure.cxxflags      -O3 -pipe -march=native
    316327}
    317328
Note: See TracChangeset for help on using the changeset viewer.