aboutsummaryrefslogtreecommitdiffstats
path: root/misc/xpns/Makefile
blob: 755022af9242beea8176b1e685f76fda8bdb4628 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Created by: Pedro Giffuni
# $FreeBSD$

PORTNAME=   xpns
PORTVERSION=    1.0
PORTREVISION=   3
CATEGORIES= misc cad
MASTER_SITES=   http://robotics.ee.uwa.edu.au/pns/ftp/
DISTNAME=   pns_source.tar
EXTRACT_SUFX=   .Z

MAINTAINER= ports@FreeBSD.org
COMMENT=    Petri-Net Simulator for Xwindows

NO_WRKSUBDIR=   yes

USE_XORG=   x11 xaw
MAKEFILE=   makefile
ALL_TARGET= pns
MAKE_JOBS_SAFE= yes

PORTDOCS=   *
PLIST_FILES=    bin/xpns \
        libexec/xpns/pns \
        %%DATADIR%%/pns.hlp \
        %%DATADIR%%/pns.shell
PLIST_DIRS= %%DATADIR%% \
        libexec/xpns

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/xpns

do-install:
    (cd ${WRKSRC} && ${INSTALL_SCRIPT} xpns ${PREFIX}/bin)
    @${MKDIR} ${PREFIX}/libexec/xpns
    (cd ${WRKSRC} && ${INSTALL_PROGRAM} pns ${PREFIX}/libexec/xpns)
    @${MKDIR} ${DATADIR}
    (cd ${WRKSRC} && ${INSTALL_DATA} pns.hlp pns.shell ${DATADIR})
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    (cd ${WRKSRC} && ${INSTALL_DATA} *.net ${DOCSDIR})
.endif

.include <bsd.port.mk>