2016-07-09 08:38:30 +02:00
|
|
|
# $NetBSD: Makefile,v 1.39 2016/07/09 06:38:49 wiz Exp $
|
2002-11-08 00:18:01 +01:00
|
|
|
#
|
|
|
|
|
2014-03-03 04:30:52 +01:00
|
|
|
PKGNAME= pkgdepgraph-2.8
|
2016-07-09 08:38:30 +02:00
|
|
|
PKGREVISION= 6
|
2002-11-08 00:18:01 +01:00
|
|
|
CATEGORIES= pkgtools devel
|
|
|
|
|
2010-03-21 17:29:38 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2005-05-08 00:24:04 +02:00
|
|
|
HOMEPAGE= ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/doc/pkgsrc.html
|
2002-11-08 00:18:01 +01:00
|
|
|
COMMENT= Visual representation of installed NetBSD packages
|
|
|
|
|
2002-12-26 06:40:48 +01:00
|
|
|
# removed so that pkgdepgraph can be used on "client" machines -- @@@
|
|
|
|
# DEPENDS+= graphviz-[0-9]*:../../graphics/graphviz
|
2002-11-08 00:18:01 +01:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2002-11-08 00:18:01 +01:00
|
|
|
|
|
|
|
NO_CONFIGURE= yes
|
|
|
|
|
2014-03-03 04:30:52 +01:00
|
|
|
DISTVER= ${PKGVERSION_NOREV}
|
2002-11-08 00:18:01 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2007-01-07 10:13:46 +01:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1
|
2005-06-17 05:50:19 +02:00
|
|
|
|
2002-12-29 17:25:24 +01:00
|
|
|
do-extract:
|
|
|
|
${CP} ${FILESDIR}/pkgdepgraph.pl ${WRKSRC}/pkgdepgraph.pl
|
|
|
|
${CP} ${FILESDIR}/pkgdepgraph.1 ${WRKSRC}/pkgdepgraph.1.in
|
2004-04-11 23:29:52 +02:00
|
|
|
${CP} ${FILESDIR}/pkgdepgraph.0 ${WRKSRC}/pkgdepgraph.0.in
|
2002-12-29 17:25:24 +01:00
|
|
|
|
2002-11-08 00:18:01 +01:00
|
|
|
do-build:
|
2013-04-06 15:24:18 +02:00
|
|
|
.for file in pkgdepgraph
|
2002-11-08 00:18:01 +01:00
|
|
|
${SED} -e 's|@PREFIX@|${PREFIX}|g' \
|
|
|
|
-e 's|@PKG_DBDIR@|${PKG_DBDIR}|g' \
|
2004-10-07 04:01:37 +02:00
|
|
|
-e 's|@PKGSRCDIR@|${PKGSRCDIR}|g' \
|
2002-11-08 00:18:01 +01:00
|
|
|
-e 's|@DISTVER@|${DISTVER}|g' \
|
2014-03-03 06:06:43 +01:00
|
|
|
-e 's|@PERL5@|${PERL5}|g' \
|
2013-04-06 15:24:18 +02:00
|
|
|
< ${WRKSRC}/${file}.pl \
|
|
|
|
> ${WRKSRC}/${file}
|
2002-11-08 00:18:01 +01:00
|
|
|
.endfor
|
2013-04-06 15:24:18 +02:00
|
|
|
.for file in pkgdepgraph.1 pkgdepgraph.0
|
2002-11-08 00:18:01 +01:00
|
|
|
${SED} -e 's|@PKG_DBDIR@|${PKG_DBDIR}|g' \
|
2004-10-07 04:01:37 +02:00
|
|
|
-e 's|@PKGSRCDIR@|${PKGSRCDIR}|g' \
|
2013-04-06 15:24:18 +02:00
|
|
|
< ${WRKSRC}/${file}.in \
|
|
|
|
> ${WRKSRC}/${file}
|
2002-11-08 00:18:01 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
2009-02-10 01:15:20 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pkgdepgraph ${DESTDIR}${PREFIX}/bin/pkgdepgraph
|
2010-02-02 11:45:59 +01:00
|
|
|
.if !empty(MANINSTALL:Mcatinstall)
|
2013-09-12 13:18:40 +02:00
|
|
|
. if defined(CATMAN_SECTION_SUFFIX) && !empty(CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss])
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pkgdepgraph.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/pkgdepgraph.1
|
|
|
|
. else
|
2009-02-10 01:15:20 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/pkgdepgraph.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
|
2013-09-12 13:18:40 +02:00
|
|
|
. endif
|
2010-02-02 11:45:59 +01:00
|
|
|
.endif
|
|
|
|
.if !empty(MANINSTALL:Mmaninstall)
|
2009-02-10 01:15:20 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/pkgdepgraph.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
2010-02-02 11:45:59 +01:00
|
|
|
.endif
|
2002-11-08 00:18:01 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|