Skip to content
Permalink
Browse files

Bug: https://trac.macports.org/ticket/2259

Submitted by:   mww@

remove version-changing variant, update to 1.3.1, use libgif & sqlite3, use xinstall

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@14433 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Oct 5, 2005
1 parent a83a564 commit 82f441dc44bb08e78fbd11d66841bf7bce4f08eb
Showing with 15 additions and 48 deletions.
  1. +15 −35 science/gdal/Portfile
  2. +0 −13 science/gdal/files/patch-GDALmake.opt.in.diff
@@ -1,9 +1,8 @@
# $Id: Portfile,v 1.4 2005/04/08 19:24:27 mww Exp $
# $Id: Portfile,v 1.5 2005/10/05 15:25:24 mww Exp $

PortSystem 1.0
name gdal
version 1.1.9
revision 1
version 1.3.1
maintainers fulton@cmu.edu
platforms darwin
description GDAL - Geospatial Data Abstraction Library
@@ -17,45 +16,26 @@ long_description GDAL is a translator library for raster geospatial \
homepage http://www.remotesensing.org/gdal/
master_sites ftp://ftp.remotesensing.org/pub/gdal/
categories science
checksums md5 2183e206affc7bf25e0d33459ccb8572
checksums md5 7ff1ceff745ee011793e1f860c02c172

depends_lib lib:libz.1:zlib lib:libpng:libpng lib:libtiff:tiff \
lib:libgeotiff:libgeotiff lib:libjpeg:jpeg lib:libproj.0:proj
depends_lib port:zlib port:libpng port:tiff port:libgeotiff port:jpeg \
port:giflib port:sqlite3 port:proj

configure.args --without-python --with-libz=${prefix} --with-png=${prefix} \
configure.args --without-python --with-libz=${prefix} --with-png=${prefix} \
--with-libtiff=${prefix} --with-geotiff=${prefix} --with-jpeg=${prefix} \
--mandir=${prefix}/share/man
configure.env LIBS="-L/${prefix}/lib"
--with-gif=${prefix} --without-pg --without-mysql --with-sqlite=${prefix} \
--mandir=\\\${prefix}/share/man

platform darwin 8 {
configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}

build.cmd make
build.args LD_SHARED="g++ -dynamiclib -install_name ${prefix}/lib/libgdal.1.1.dylib" \
SO_EXT="dylib"
build.target ""

destroot.args LD_SHARED="g++ -dynamiclib -install_name ${prefix}/lib/libgdal.1.1.dylib" \
SO_EXT="dylib" prefix="${destroot}${prefix}"
build.target

destroot.destdir prefix=${destroot}${prefix}

post-destroot {
file mkdir ${destroot}${prefix}/share/doc/${name}
file copy ${worksrcpath}/HOWTO-RELEASE ${worksrcpath}/NEWS \
${worksrcpath}/Changelog ${worksrcpath}/VERSION \
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} HOWTO-RELEASE NEWS Changelog VERSION \
${destroot}${prefix}/share/doc/${name}
system "ln -sf libgdal.1.1.dylib \
${destroot}/${prefix}/lib/libgdal.1.dylib"
system "ln -sf libgdal.1.1.dylib \
${destroot}/${prefix}/lib/libgdal.dylib"
}

variant devel {
fetch.type cvs
cvs.root :pserver:anonymous@cvs.remotesensing.org:/cvsroot
cvs.module gdal
cvs.password anonymous
cvs.tag HEAD
version HEAD
worksrcdir ${cvs.module}
patchfiles patch-GDALmake.opt.in.diff
}

This file was deleted.

0 comments on commit 82f441d

Please sign in to comment.
You can’t perform that action at this time.