1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-08 23:06:56 +00:00
freebsd-ports/www/grail/Makefile

51 lines
1.5 KiB
Makefile
Raw Normal View History

# Ports collection Makefile for: Grail
1999-01-10 18:52:35 +00:00
# Date created: 1/11/1999
# Whom: nectar@FreeBSD.org
#
1999-08-31 02:43:35 +00:00
# $FreeBSD$
#
PORTNAME= grail
PORTVERSION= 0.6
1999-05-28 20:52:30 +00:00
CATEGORIES= www python
MASTER_SITES= http://grail.cnri.reston.va.us/grail/source/
DISTNAME= ${PORTNAME}-06
EXTRACT_SUFX= .tgz
MAINTAINER= nectar@freebsd.org
BUILD_DEPENDS= python:${PORTSDIR}/lang/python
RUN_DEPENDS= ${PREFIX}/lib/python1.5/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
WRKSRC= ${WRKDIR}/${PKGNAME}
1999-05-28 20:52:30 +00:00
GRAILSUBDIR= share/grail
GRAILDIR= ${PREFIX}/${GRAILSUBDIR}
DIRS_CMD= ${CAT} ${PLIST} | ${GREP} '^@dirrm' | ${SED} 's,@dirrm ,,'
FILES_CMD= ${CAT} ${PLIST} | ${GREP} -v '^@' | ${SED} 's,${GRAILSUBDIR}/,,'
FIND?=find
PYTHON?=python
do-build:
${PYTHON} -u -c 'from compileall import compile_dir; compile_dir("${WRKSRC}")'
do-install:
1999-05-28 20:52:30 +00:00
@${ECHO} === Creating directories...
@for dir in `${DIRS_CMD}`; do \
${ECHO} ${PREFIX}/$$dir; \
${MKDIR} ${PREFIX}/$$dir; \
done
@${ECHO} === Installing grail files ...
@for file in `${FILES_CMD}`; do \
${ECHO} ${GRAILDIR}/$$file; \
${INSTALL_DATA} ${WRKSRC}/$$file ${GRAILDIR}/$$file; \
done
@${ECHO} === Installing grail script...
@${SED} 's,%%GRAILDIR%%,${GRAILDIR},g' <${FILESDIR}/grail > \
${WRKDIR}/grail.tmp
1999-05-28 20:52:30 +00:00
@${INSTALL_SCRIPT} ${WRKDIR}/grail.tmp ${PREFIX}/bin/grail
@${RM} ${WRKDIR}/grail.tmp
.include <bsd.port.mk>