diff options
Diffstat (limited to 'www/grail/Makefile')
-rw-r--r-- | www/grail/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/www/grail/Makefile b/www/grail/Makefile new file mode 100644 index 00000000000..15406b0ce8b --- /dev/null +++ b/www/grail/Makefile @@ -0,0 +1,39 @@ +# $NetBSD: Makefile,v 1.1 1998/07/22 01:56:09 tsarna Exp $ +# + +DISTNAME= grail_04 +PKGNAME= grail-0.4 +CATEGORIES= www +MASTER_SITES= http://monty.cnri.reston.va.us/grail-0.4/source/ +EXTRACT_SUFX= .tgz + +MAINTAINER= tsarna@netbsd.org + +DEPENDS+= python-1.5.1:../../lang/python +DEPENDS+= py-Tk-1.5.1:../../x11/py-Tk + +EXTRACT_ONLY= +NO_CONFIGURE= yes +NO_BUILD= yes + +WRKSRC= ${WRKDIR}/grail-0.4 +GRAILBASE= share/misc +GRAILDIR= ${GRAILBASE}/grail-0.4 +PLIST_SRC= ${WRKDIR}/.PLIST_SRC + +do-install: + ${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC} + ${SED} -e "s,@PREFIX@,${PREFIX}," -e "s,@GRAILDIR@,${GRAILDIR}," \ + <${FILESDIR}/grail >${PREFIX}/bin/grail + chmod 555 ${PREFIX}/bin/grail + (cd ${PREFIX}/${GRAILBASE}; \ + ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \ + ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \ + ${EXTRACT_AFTER_ARGS}) + ${PREFIX}/bin/python \ + ${PREFIX}/lib/python1.5/compileall.py ${PREFIX}/${GRAILDIR} + (cd ${PREFIX}; find ${GRAILDIR} -type f -print >>${PLIST_SRC}) + (cd ${PREFIX}; find -d ${GRAILDIR} -type d -print | \ + ${SED} -e "s/^/@dirrm /" >>${PLIST_SRC}) + +.include "../../mk/bsd.pkg.mk" |