1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/www/grail/Makefile
Satoshi Asami 016268dfb5 Change PYTHON_LIBDIR to PYTHON_SITELIBDIR so this thing builds. While
I'm here, define DISTFILES instead of all three of DISTNAME,
EXTRACT_SUFX and wrksrc.

(Actually I was here to fix the latter when I stumbled upon the
former, but who's counting. :)
2000-09-25 12:15:20 +00:00

48 lines
1.4 KiB
Makefile

# Ports collection Makefile for: Grail
# Date created: 1/11/1999
# Whom: nectar@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= grail
PORTVERSION= 0.6
CATEGORIES= www python
MASTER_SITES= http://grail.cnri.reston.va.us/grail/source/
DISTFILES= ${PORTNAME}-06.tgz
MAINTAINER= nectar@freebsd.org
USE_PYTHON= yes
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
GRAILSUBDIR= share/grail
GRAILDIR= ${PREFIX}/${GRAILSUBDIR}
DIRS_CMD= ${SED} -e '/^@dirrm/bok' -e 'D' -e ':ok' -e 's,@dirrm ,,' < ${PLIST}
FILES_CMD= ${SED} -e '/^share\//bok' -e 'D' -e ':ok' -e 's,${GRAILSUBDIR}/,,' < ${PLIST}
FIND?=find
PYTHON?=python
do-build:
${PYTHON} -u -c 'from compileall import compile_dir; compile_dir("${WRKSRC}")'
do-install:
@${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
@${INSTALL_SCRIPT} ${WRKDIR}/grail.tmp ${PREFIX}/bin/grail
@${RM} ${WRKDIR}/grail.tmp
.include <bsd.port.mk>