[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / emulators / dynagen

File: [cvs.NetBSD.org] / pkgsrc / emulators / dynagen / Makefile (download)

Revision 1.12, Fri Dec 4 20:45:16 2020 UTC (3 years, 2 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4
Changes since 1.11: +2 -2 lines

Revbump packages with a runtime Python dep but no version prefix.

For the Python 3.8 default switch.

# $NetBSD: Makefile,v 1.12 2020/12/04 20:45:16 nia Exp $

DISTNAME=	dynagen-0.11.0
PKGREVISION=	6
CATEGORIES=	emulators
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=dyna-gen/}

MAINTAINER=	pkgsrc-users@NetBSD.org
#HOMEPAGE=	http://dynagen.org/
COMMENT=	Network configuration generator for Dynamips
LICENSE=	gnu-gpl-v2

DEPENDS+=	dynamips>=0.2.8rc1:../../emulators/dynamips

NO_BUILD=		yes
PY_PATCHPLIST=		yes
REPLACE_PYTHON+=	dynagen confConsole.py console.py dynamips_lib.py pemu_lib.py \
			pemubin.py pemuwrapper.py

SUBST_CLASSES+=		paths
SUBST_STAGE.paths=	pre-configure
SUBST_FILES.paths=	dynagen
SUBST_SED.paths=	-e "s|@SYSCONFDIR@|${PKG_SYSCONFDIR}|"
SUBST_VARS.paths=	PREFIX

CONF_FILES+=		share/examples/dynagen/dynagen.ini ${PKG_SYSCONFDIR}/dynagen.ini

INSTALLATION_DIRS=	bin ${PYSITELIB}/dynagen share/dynagen \
			share/doc/dynagen/tutorial_files share/examples/dynagen

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/dynagen ${DESTDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/*.py* ${DESTDIR}${PREFIX}/${PYSITELIB}/dynagen
	${INSTALL_SCRIPT} ${FILESDIR}/*.py* ${DESTDIR}${PREFIX}/${PYSITELIB}/dynagen
	${INSTALL_DATA} ${WRKSRC}/configspec ${DESTDIR}${PREFIX}/share/dynagen
	${INSTALL_DATA} ${WRKSRC}/docs/*htm* ${DESTDIR}${PREFIX}/share/doc/dynagen
	${INSTALL_DATA} ${WRKSRC}/docs/tutorial_files/* \
		${DESTDIR}${PREFIX}/share/doc/dynagen/tutorial_files
	${INSTALL_DATA} ${WRKSRC}/dynagen.ini ${DESTDIR}${PREFIX}/share/examples/dynagen
	cp -R ${WRKSRC}/sample_labs/* ${DESTDIR}${PREFIX}/share/examples/dynagen

.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"