From 037b57d5ddf535a98a11963bfb6c13ede0dbfa32 Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 4 Mar 2008 14:44:05 +0000 Subject: Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target. --- geography/mapserver/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'geography/mapserver') diff --git a/geography/mapserver/Makefile b/geography/mapserver/Makefile index 74b67726179..0a5bfbe1981 100644 --- a/geography/mapserver/Makefile +++ b/geography/mapserver/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2006/12/15 20:32:57 joerg Exp $ +# $NetBSD: Makefile,v 1.16 2008/03/04 14:44:05 jlam Exp $ # DISTNAME= mapserver-4.0 @@ -10,6 +10,8 @@ MAINTAINER= hdp@cs.msu.edu HOMEPAGE= http://mapserver.gis.umn.edu/ COMMENT= Environment for building spatially enabled Internet apps +PKG_DESTDIR_SUPPORT= user-destdir + USE_PKGLOCALEDIR= yes GNU_CONFIGURE= yes USE_LANGUAGES= c c++ @@ -21,11 +23,11 @@ CONFIGURE_ARGS+= --with-gd=${PREFIX:Q} \ INSTALLATION_DIRS= bin include lib do-install: - ${INSTALL_DATA} ${WRKSRC}/libmap.a ${PREFIX}/lib - ${INSTALL_DATA} ${WRKSRC}/map.h ${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/libmap.a ${DESTDIR}${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/map.h ${DESTDIR}${PREFIX}/include .for f in shp2img shp2pdf mapserv legend shptree shptreevis \ shptreetst scalebar sortshp - ${INSTALL_PROGRAM} ${WRKSRC}/${f:Q} ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/${f:Q} ${DESTDIR}${PREFIX}/bin .endfor .include "../../converters/libiconv/buildlink3.mk" -- cgit v1.2.3