pkgsrc/sysutils/mgm/Makefile
wiz 7eeb51b534 Bump for perl-5.20.0.
Do it for all packages that
* mention perl, or
* have a directory name starting with p5-*, or
* depend on a package starting with p5-
like last time, for 5.18, where this didn't lead to complaints.
Let me know if you have any this time.
2014-05-29 23:35:13 +00:00

45 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.19 2014/05/29 23:37:29 wiz Exp $
DISTNAME= mgm-1.1
PKGREVISION= 5
CATEGORIES= sysutils
MASTER_SITES= http://www.xiph.org/mgm/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://linuxmafia.com/mgm/
COMMENT= Moaning Goat Meter
DEPENDS+= p5-Tk-[0-9]*:../../x11/p5-Tk
WRKSRC= ${WRKDIR}/mgm
NO_BUILD= yes
USE_TOOLS+= perl:run
MGM_PERL_DIR= ${PREFIX}/lib/mgm
MGM_DOC_DIR= ${PREFIX}/share/doc/mgm
INSTALLATION_DIRS= bin
REPLACE_PERL+= mgm lib/xpm
post-patch:
${SED} -e 's|@@MGM_PERL_DIR@@|${MGM_PERL_DIR}|' \
${FILESDIR}/mgm.sh > ${WRKDIR}/mgm.sh
INSTALLATION_DIRS+= ${MGM_PERL_DIR}/modules ${MGM_DOC_DIR}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/mgm ${DESTDIR}${MGM_PERL_DIR}
set -e; \
cd ${WRKSRC}; \
for DIR in lib modules/*; do \
${INSTALL_DATA_DIR} ${DESTDIR}${MGM_PERL_DIR}/"$$DIR"; \
for FILE in "$$DIR"/*; do \
${INSTALL_DATA} "$$FILE" ${DESTDIR}${MGM_PERL_DIR}/"$$DIR"; \
done; \
done
cd ${WRKSRC}/doc && ${INSTALL_DATA} * ${DESTDIR}${MGM_DOC_DIR}
${INSTALL_SCRIPT} ${WRKDIR}/mgm.sh ${DESTDIR}${PREFIX}/bin/mgm
.include "../../mk/bsd.pkg.mk"