1998-06-16 15:32:45 +00:00
|
|
|
# Ports collection Makefile for: Grail
|
|
|
|
# Version required: 0.4
|
|
|
|
# Date created: 6/11/1998
|
|
|
|
# Whom: n@nectar.com
|
|
|
|
#
|
1998-09-25 10:05:14 +00:00
|
|
|
# $Id: Makefile,v 1.4 1998/08/07 23:56:48 asami Exp $
|
1998-06-16 15:32:45 +00:00
|
|
|
#
|
|
|
|
|
1998-07-04 22:07:35 +00:00
|
|
|
DISTNAME= grail-0.4
|
1998-06-16 15:32:45 +00:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://monty.cnri.reston.va.us/grail-0.4/source/
|
1998-07-04 22:07:35 +00:00
|
|
|
DISTFILES= grail_04.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
|
|
|
|
|
|
|
CHOWN?=chown
|
|
|
|
CHMOD?=chmod
|
|
|
|
FIND?=find
|
|
|
|
PYTHON?=python
|
|
|
|
GREP?=grep
|
1998-07-04 22:07:35 +00:00
|
|
|
SED?=sed
|
1998-06-16 15:32:45 +00:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
${PYTHON} -c 'from compileall import compile_dir; compile_dir("${WRKSRC}")'
|
|
|
|
|
|
|
|
do-install:
|
1998-07-04 22:07:35 +00:00
|
|
|
${MKDIR} ${PREFIX}/lib/grail
|
|
|
|
(cd ${WRKSRC} && tar --exclude '.cvsignore' \
|
|
|
|
--exclude '*.orig' -cf - .) | \
|
|
|
|
(cd ${PREFIX}/lib/grail && tar xf -)
|
|
|
|
(sed 's|%%PREFIX%%|${PREFIX}|g' <${FILESDIR}/grail \
|
|
|
|
>${WRKDIR}/grail.$$$$ && \
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/grail.$$$$ ${PREFIX}/bin/grail && \
|
|
|
|
${RM} ${WRKDIR}/grail.$$$$)
|
1998-06-16 15:32:45 +00:00
|
|
|
${CHOWN} -R ${BINOWN}.${BINGRP} ${PREFIX}/lib/grail
|
|
|
|
${FIND} ${PREFIX}/lib/grail -type f -exec ${CHMOD} 0444 {} \;
|
|
|
|
${FIND} ${PREFIX}/lib/grail -type d -exec ${CHMOD} 0555 {} \;
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|