user-destdir support

This commit is contained in:
joerg 2009-07-07 18:46:17 +00:00
parent 76875b7d9c
commit 9836430b32
2 changed files with 14 additions and 7 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2005/04/11 21:48:02 tv Exp $
# $NetBSD: Makefile,v 1.11 2009/07/07 18:46:17 joerg Exp $
#
DISTNAME= urlget-1.4
@ -8,6 +8,7 @@ MASTER_SITES= ftp://ftp.gw.com/pub/people/kim/
MAINTAINER= kim@tac.nyc.ny.us
COMMENT= Simple command-line tool to retrieve an HTTP URL
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../mk/bsd.prefs.mk"
@ -16,6 +17,9 @@ BUILD_TARGET= svr4
.else
BUILD_TARGET= bsd
.endif
INSTALL_TARGET= inst-all DEST=${PREFIX}
INSTALL_TARGET= inst-all
INSTALL_MAKE_FLAGS+= DEST=${DESTDIR}${PREFIX}
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2009/02/09 22:56:28 joerg Exp $
# $NetBSD: Makefile,v 1.9 2009/07/07 18:46:37 joerg Exp $
#
DISTNAME= viewvc-1.0.7
@ -10,6 +10,8 @@ MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://www.viewvc.org/
COMMENT= Viewing the content of CVS/SVN repositories with a Webbrowser
PKG_DESTDIR_SUPPORT= user-destdir
PYTHON_PATCH_SCRIPTS= viewvc-install bin/* bin/cgi/*.cgi lib/*.py
.if !exists(/usr/bin/rlog)
@ -47,16 +49,17 @@ SUBST_SED.conf+= -e "s|@RCS_PREFIX@|/usr|g"
CHECK_PORTABILITY_SKIP= tools/make-release
INSTALLATION_DIRS= share/examples/viewvc
do-install:
(cd ${WRKSRC} && \
${PYTHONBIN} \
viewvc-install --prefix=${PREFIX}/${VIEWVCDIR} --destdir="")
viewvc-install --prefix=${PREFIX}/${VIEWVCDIR} --destdir=${DESTDIR})
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/viewvc
${INSTALL_DATA} ${WRKSRC}/viewvc.conf.dist \
${PREFIX}/share/examples/viewvc/viewvc.conf
${DESTDIR}${PREFIX}/share/examples/viewvc/viewvc.conf
${INSTALL_DATA} ${WRKSRC}/cvsgraph.conf.dist \
${PREFIX}/share/examples/viewvc/cvsgraph.conf
${DESTDIR}${PREFIX}/share/examples/viewvc/cvsgraph.conf
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"