pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/geography/gdal-lib Add DESTDIR support and use BUILDLI...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8b03db4e8abd
branches:  trunk
changeset: 532331:8b03db4e8abd
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Aug 16 00:42:20 2007 +0000

description:
Add DESTDIR support and use BUILDLINK_PREFIX instead of PREFIX for
finding Xerces. From Brook Milligan in private mail.

diffstat:

 geography/gdal-lib/Makefile |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r d183f1ddf7f9 -r 8b03db4e8abd geography/gdal-lib/Makefile
--- a/geography/gdal-lib/Makefile       Thu Aug 16 00:31:21 2007 +0000
+++ b/geography/gdal-lib/Makefile       Thu Aug 16 00:42:20 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2007/04/17 01:04:44 gdt Exp $
+# $NetBSD: Makefile,v 1.11 2007/08/16 00:42:20 joerg Exp $
 #
 
 DISTNAME=              gdal-1.4.0
@@ -11,6 +11,8 @@
 HOMEPAGE=              http://www.gdal.org/
 COMMENT=               Translator library for raster geospatial data formats
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 MAKE_JOBS_SAFE=                no
 
 USE_PKGLOCALEDIR=      yes
@@ -43,13 +45,15 @@
 .endif
 
 CONFIGURE_ARGS+=       --with-xerces
-CONFIGURE_ARGS+=       --with-xerces-inc=${PREFIX:Q}/include
-CONFIGURE_ARGS+=       --with-xerces-lib=-L${PREFIX:Q}/lib\ -lxerces-c
+CONFIGURE_ARGS+=       --with-xerces-inc=${BUILDLINK_PREFIX.xerces-c}/include
+CONFIGURE_ARGS+=       --with-xerces-lib=-L${BUILDLINK_PREFIX.xerces-c}/lib\ -lxerces-c
 CONFIGURE_ARGS+=       --with-geos
 CONFIGURE_ARGS+=       --without-python
 
 CHECK_PORTABILITY_SKIP+=       mkbindist.sh
 
+INSTALLATION_DIRS=     bin include lib man/man1 share/gdal
+
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../graphics/tiff/buildlink3.mk"
 .include "../../geography/geos/buildlink3.mk"



Home | Main Index | Thread Index | Old Index