diff options
author | obache <obache@pkgsrc.org> | 2007-12-24 08:34:51 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2007-12-24 08:34:51 +0000 |
commit | 70725c9299241be2c0849e0fea8643b65528a8f7 (patch) | |
tree | 07157ecb199f1bb6ae4a1eb4d634585821d135b1 | |
parent | 660de51351c7ae16510ba9210b8245ca1a609119 (diff) | |
download | pkgsrc-70725c9299241be2c0849e0fea8643b65528a8f7.tar.gz |
Some cleanups and fix.
* SDIST_PAWD is BUILD_DEFS.
* Need sbin and man directory before install.
* Use *_MAKE_FLAGS instead of *_TARGET to pass make variables.
* Fix manual installation path for platform PKGMANDIR != man.
* DESTDIR ready.
Bump PKGREVISION.
-rw-r--r-- | net/sdist/Makefile | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/net/sdist/Makefile b/net/sdist/Makefile index fb0c6fd26bc..dd8d70854fc 100644 --- a/net/sdist/Makefile +++ b/net/sdist/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.12 2006/06/04 07:58:36 kim Exp $ +# $NetBSD: Makefile,v 1.13 2007/12/24 08:34:51 obache Exp $ # DISTNAME= sdist-1.7 +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= ftp://ftp.gw.com/pub/people/kim/ @@ -17,8 +18,18 @@ DEPENDS+= srsh-[0-9]*:../../net/srsh SDIST_PAWD?= pwd +BUILD_DEFS+= SDIST_PAWD + +INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8 NO_CONFIGURE= yes -BUILD_TARGET= all PREFIX=${PREFIX} PAWD=${SDIST_PAWD} -INSTALL_TARGET= install PREFIX=${PREFIX} +BUILD_MAKE_FLAGS+= PREFIX=${PREFIX} PAWD=${SDIST_PAWD} +INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX} + +PKG_DESTDIR_SUPPORT= user-destdir + +SUBST_CLASSES+= manpath +SUBST_STAGE.manpath= post-extract +SUBST_FILES.manpath= Makefile +SUBST_SED.manpath= -e 's,/man/,/${PKGMANDIR}/,' .include "../../mk/bsd.pkg.mk" |