summaryrefslogtreecommitdiff
path: root/sysutils/mgm/Makefile
diff options
context:
space:
mode:
authorlukem <lukem@pkgsrc.org>2001-10-08 07:10:08 +0000
committerlukem <lukem@pkgsrc.org>2001-10-08 07:10:08 +0000
commit5c54da29cfc3b509f4bcdb93bfb36af465b8002d (patch)
tree90bc65d29cb70a14d4dbe43c267dd94a010f0348 /sysutils/mgm/Makefile
parent9da334dc9a457bdb66ac16410ed121660e3d9891 (diff)
downloadpkgsrc-5c54da29cfc3b509f4bcdb93bfb36af465b8002d.tar.gz
MGM, the Moaning Goat Meter, is the ultimate sixty-ton cast
iron lawn ornament for the desktops of today's hacker set: A gorgeous, highly configurable load and status meter written entirely in Perl. Serious pink-flamingo territory. For evil geniuses only.
Diffstat (limited to 'sysutils/mgm/Makefile')
-rw-r--r--sysutils/mgm/Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/sysutils/mgm/Makefile b/sysutils/mgm/Makefile
new file mode 100644
index 00000000000..86656133ef8
--- /dev/null
+++ b/sysutils/mgm/Makefile
@@ -0,0 +1,49 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/10/08 07:13:11 lukem Exp $
+
+DISTNAME= mgm-1.1
+CATEGORIES= sysutils
+MASTER_SITES= http://www.xiph.org/mgm/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= lukem@netbsd.org
+HOMEPAGE= http://www.xiph.org/mgm/
+COMMENT= Moaning Goat Meter
+
+DEPENDS+= p5-Tk-[0-9]*:../../x11/p5-Tk
+
+NO_BUILD= # defined
+USE_PERL5= YES
+PERL_SCRIPTS= mgm
+
+WRKSRC= ${WRKDIR}/${DISTNAME:C/-.*$//}
+
+MGM_PERL_DIR= ${PREFIX}/lib/${DISTNAME:C/-.*$//}
+MGM_DOC_DIR= ${PREFIX}/share/doc/html/${DISTNAME:C/-.*$//}
+
+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
+ ${INSTALL_DATA_DIR} ${MGM_DOC_DIR}
+ 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"