2005-06-17 05:50:19 +02:00
|
|
|
# $NetBSD: Makefile,v 1.8 2005/06/17 03:50:34 jlam Exp $
|
2001-10-08 09:10:08 +02:00
|
|
|
|
|
|
|
DISTNAME= mgm-1.1
|
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= http://www.xiph.org/mgm/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2004-05-30 04:19:16 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2001-10-08 09:10:08 +02:00
|
|
|
HOMEPAGE= http://www.xiph.org/mgm/
|
|
|
|
COMMENT= Moaning Goat Meter
|
|
|
|
|
|
|
|
DEPENDS+= p5-Tk-[0-9]*:../../x11/p5-Tk
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:C/-.*$//}
|
2001-10-08 09:10:08 +02:00
|
|
|
NO_BUILD= # defined
|
|
|
|
USE_PERL5= YES
|
|
|
|
PERL_SCRIPTS= mgm
|
|
|
|
|
|
|
|
MGM_PERL_DIR= ${PREFIX}/lib/${DISTNAME:C/-.*$//}
|
|
|
|
MGM_DOC_DIR= ${PREFIX}/share/doc/html/${DISTNAME:C/-.*$//}
|
|
|
|
|
2005-06-17 05:50:19 +02:00
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
2001-10-08 09:10:08 +02:00
|
|
|
post-patch:
|
|
|
|
${SED} -e 's|@@MGM_PERL_DIR@@|${MGM_PERL_DIR}|' \
|
|
|
|
${FILESDIR}/mgm.sh > ${WRKDIR}/mgm.sh
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
for FILE in ${PERL_SCRIPTS}; do \
|
|
|
|
${CP} $$FILE $${FILE}.orig; \
|
|
|
|
${SED} -e 's#/usr/bin/perl#${PERL5}#g' \
|
|
|
|
<$${FILE}.orig >$$FILE; \
|
|
|
|
done
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${MGM_PERL_DIR} ${MGM_PERL_DIR}/modules
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/mgm ${MGM_PERL_DIR}
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
for DIR in lib modules/*; do \
|
|
|
|
${INSTALL_DATA_DIR} ${MGM_PERL_DIR}/$$DIR; \
|
|
|
|
for FILE in $$DIR/*; do \
|
|
|
|
${INSTALL_DATA} $$FILE ${MGM_PERL_DIR}/$$DIR; \
|
|
|
|
done; \
|
|
|
|
done
|
2002-12-23 17:24:59 +01:00
|
|
|
${INSTALL_DATA_DIR} ${MGM_DOC_DIR}
|
2001-10-08 09:10:08 +02:00
|
|
|
for FILE in ${WRKSRC}/doc/*; do \
|
|
|
|
${INSTALL_DATA} $$FILE ${MGM_DOC_DIR}; \
|
|
|
|
done
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/mgm.sh ${PREFIX}/bin/mgm
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|