DESTDIR support

This commit is contained in:
joerg 2010-02-17 15:39:02 +00:00
parent fed0eef2ea
commit 66e9048cd9
2 changed files with 10 additions and 2 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.17 2008/05/26 02:13:24 joerg Exp $ # $NetBSD: Makefile,v 1.18 2010/02/17 15:44:11 joerg Exp $
# #
DISTNAME= tkdesk-2.0 DISTNAME= tkdesk-2.0
@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://tkdesk.sourceforge.net/ HOMEPAGE= http://tkdesk.sourceforge.net/
COMMENT= Graphical file manager COMMENT= Graphical file manager
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= pax USE_TOOLS+= pax
GNU_CONFIGURE= YES GNU_CONFIGURE= YES
@ -20,6 +22,9 @@ CONFIGURE_ARGS+=--with-tcl=${BUILDLINK_PREFIX.tcl}/lib \
MAKE_ENV+= LIB_RUNTIME_DIR=${BUILDLINK_PREFIX.tcl-itcl:Q}/lib \ MAKE_ENV+= LIB_RUNTIME_DIR=${BUILDLINK_PREFIX.tcl-itcl:Q}/lib \
PAX=${PAX:Q} PAX=${PAX:Q}
INSTALL_MAKE_FLAGS+= INSTALL_ROOT=${DESTDIR}
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
.include "../../lang/tcl/buildlink3.mk" .include "../../lang/tcl/buildlink3.mk"
.include "../../lang/tcl-itcl/buildlink3.mk" .include "../../lang/tcl-itcl/buildlink3.mk"
.include "../../x11/blt/buildlink3.mk" .include "../../x11/blt/buildlink3.mk"

View file

@ -1,4 +1,6 @@
# $NetBSD: Makefile,v 1.49 2010/01/18 09:59:27 wiz Exp $ # $NetBSD: Makefile,v 1.50 2010/02/17 15:39:02 joerg Exp $
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/ups-nut/Makefile.common" .include "../../sysutils/ups-nut/Makefile.common"
@ -10,6 +12,7 @@ DEPENDS+= ups-nut-2.*:../../sysutils/ups-nut
BUILD_TARGET= cgi BUILD_TARGET= cgi
INSTALL_TARGET= install-cgi INSTALL_TARGET= install-cgi
INSTALLATION_DIRS+= ${NUT_EGDIR}
CONFIGURE_ARGS+= --with-cgi CONFIGURE_ARGS+= --with-cgi
CONFIGURE_ARGS+= --with-cgipath=${NUT_CGIDIR:Q} CONFIGURE_ARGS+= --with-cgipath=${NUT_CGIDIR:Q}