1998-06-16 15:32:45 +00:00
|
|
|
# Ports collection Makefile for: Grail
|
1999-01-10 18:52:35 +00:00
|
|
|
# Version required: 0.5
|
|
|
|
# Date created: 1/11/1999
|
|
|
|
# Whom: nectar@FreeBSD.ORG
|
1998-06-16 15:32:45 +00:00
|
|
|
#
|
1999-04-07 16:38:23 +00:00
|
|
|
# $Id: Makefile,v 1.6 1999/01/10 18:52:34 nectar Exp $
|
1998-06-16 15:32:45 +00:00
|
|
|
#
|
|
|
|
|
1999-04-07 16:38:23 +00:00
|
|
|
DISTNAME= grail_05
|
|
|
|
PKGNAME= grail-0.5
|
1998-06-16 15:32:45 +00:00
|
|
|
CATEGORIES= www
|
1999-01-10 18:52:35 +00:00
|
|
|
MASTER_SITES= http://monty.cnri.reston.va.us/grail-0.5/source/
|
1999-04-07 16:38:23 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
1998-06-16 15:32:45 +00:00
|
|
|
|
1998-07-04 22:07:35 +00:00
|
|
|
MAINTAINER= nectar@freebsd.org
|
1998-06-16 15:32:45 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= python:${PORTSDIR}/lang/python
|
|
|
|
RUN_DEPENDS= python:${PORTSDIR}/lang/python
|
1998-09-25 10:05:14 +00:00
|
|
|
LIB_DEPENDS= tk80.1:${PORTSDIR}/x11-toolkits/tk80
|
1998-06-16 15:32:45 +00:00
|
|
|
|
1999-04-07 16:38:23 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME}
|
|
|
|
|
|
|
|
GRAILDIR= ${PREFIX}/share/grail
|
|
|
|
|
1998-06-16 15:32:45 +00:00
|
|
|
CHOWN?=chown
|
|
|
|
CHMOD?=chmod
|
|
|
|
FIND?=find
|
|
|
|
PYTHON?=python
|
|
|
|
|
|
|
|
do-build:
|
1999-04-07 16:38:23 +00:00
|
|
|
${PYTHON} -u -c 'from compileall import compile_dir; compile_dir("${WRKSRC}")'
|
1998-06-16 15:32:45 +00:00
|
|
|
|
|
|
|
do-install:
|
1999-04-07 16:38:23 +00:00
|
|
|
${MKDIR} ${GRAILDIR}
|
|
|
|
${TAR} --exclude '.cvsignore' -C ${WRKSRC} -cf - . | \
|
|
|
|
${TAR} -C ${GRAILDIR} -xvf -
|
|
|
|
${SED} 's|%%GRAILDIR%%|${GRAILDIR}|g' <${FILESDIR}/grail > \
|
|
|
|
${WRKDIR}/grail.tmp
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/grail.tmp ${PREFIX}/bin/grail
|
|
|
|
${RM} ${WRKDIR}/grail.tmp
|
|
|
|
${CHOWN} -R ${BINOWN}:${BINGRP} ${GRAILDIR}
|
|
|
|
${FIND} ${GRAILDIR} -type f -exec ${CHMOD} 0444 {} \;
|
|
|
|
${FIND} ${GRAILDIR} -type d -exec ${CHMOD} 0555 {} \;
|
1998-06-16 15:32:45 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|