freebsd-ports/net/danamics/Makefile
Joe Marcus Clarke b213c0c4e1 Generate plist either statically or before do-install phase for
compatibility with upcoming bsd.port.mk patches.

Submitted by:	Sergey Matveychuk <sem@ciam.ru>
2003-07-05 19:01:41 +00:00

44 lines
955 B
Makefile

# New ports collection makefile for: danamics
# Date created: 18 March 2003
# Whom: mwest@uct.ac.za
#
# $FreeBSD$
#
PORTNAME= danamics
PORTVERSION= 1.1
CATEGORIES= net java
MASTER_SITES= ftp://ftp.cs.uct.ac.za/pub/FreeBSD/distfiles-local/
MAINTAINER= mwest@uct.ac.za
COMMENT= Petri Net editor for correctness and performance analysis
USE_JAVA= 1.1+
NO_BUILD= yes
WRKSRC= ${WRKDIR}/DaNAMiCS
.include <bsd.port.pre.mk>
PLIST= ${WRKDIR}/plist
SORT?= /usr/bin/sort
pre-install:
cd ${WRKSRC}; ${FIND} . -type f \
| ${SORT} | ${SED} -e 's|^\.|danamics|' >${PLIST}
cd ${WRKSRC}; ${FIND} . -type d \
| ${SORT} -r | ${SED} -e 's|^\.|@dirrm danamics|' >>${PLIST}
${ECHO} bin/danamics >>${PLIST}
do-install:
${MKDIR} ${PREFIX}/danamics
${CP} -R ${WRKSRC}/* ${PREFIX}/danamics
${SED} \
-e s,%%PREFIX%%,${PREFIX},g \
< ${FILESDIR}/danamics.sh > ${PREFIX}/bin/danamics; \
${CHMOD} a+x ${PREFIX}/bin/danamics
.include <bsd.port.post.mk>