mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
54 lines
1.6 KiB
Makefile
54 lines
1.6 KiB
Makefile
# Ports collection Makefile for: Grail
|
|
# Version required: 0.5
|
|
# Date created: 1/11/1999
|
|
# Whom: nectar@FreeBSD.ORG
|
|
#
|
|
# $Id: Makefile,v 1.7 1999/04/07 16:38:22 nectar Exp $
|
|
#
|
|
|
|
DISTNAME= grail-06
|
|
PKGNAME= grail-0.6
|
|
CATEGORIES= www python
|
|
MASTER_SITES= http://grail.cnri.reston.va.us/grail/source/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= nectar@freebsd.org
|
|
|
|
BUILD_DEPENDS= python:${PORTSDIR}/lang/python
|
|
RUN_DEPENDS= python:${PORTSDIR}/lang/python
|
|
LIB_DEPENDS= tk80.1:${PORTSDIR}/x11-toolkits/tk80
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME}
|
|
|
|
GRAILSUBDIR= share/grail
|
|
GRAILDIR= ${PREFIX}/${GRAILSUBDIR}
|
|
DIRS_CMD= ${CAT} ${PLIST} | ${GREP} '^@dirrm' | ${SED} 's,@dirrm ,,'
|
|
FILES_CMD= ${CAT} ${PLIST} | ${GREP} -v '^@' | ${SED} 's,${GRAILSUBDIR}/,,'
|
|
|
|
CHOWN?=chown
|
|
CHMOD?=chmod
|
|
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>
|