summaryrefslogtreecommitdiffstats
path: root/devel/fnorb/Makefile
blob: c4270aaacc6173aa38cc4f34e4b393d8674d0c8d (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:	fnorb
# Date created:		12 Septermber 2000
# Whom:	      		Johann Visagie <johann@egenetics.com>
#
# $FreeBSD$
#

PORTNAME=	fnorb
PORTVERSION=	1.1
PORTREVISION=	6
CATEGORIES=	devel python
MASTER_SITES=	http://www.fnorb.org/download/ \
		ftp://ftp.dstc.edu.au/DSTC/fnorb/

MAINTAINER=	johann@egenetics.com

NO_CDROM=	Free for academic, research and non-commercial purposes only
WRKSRC=		${WRKDIR}/Fnorb-${PORTVERSION}
BUILD_WRKSRC=	${WRKSRC}/src
INSTALL_WRKSRC=	${BUILD_WRKSRC}
USE_PYTHON=	yes
ALL_TARGET=

CPIO=		cpio --quiet -pdum -R
FNORB_DIR=	${PYTHON_SITELIBDIR}/Fnorb
FNORB_EGDIR=	${PREFIX}/share/examples/fnorb
FNORB_DOCDIR=	${PREFIX}/share/doc/fnorb
FNORB_BINS=	fnaming fnendian fnfeed fngen fnidl fnifr fnior fnlogger \
		fnmetrics fnmkior fnoptions fnping

do-configure:
	@ (cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
	  Makefile.pre.in boot)

post-build:
	@ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -f ${WRKSRC}
	@ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -f ${WRKSRC}

post-install:
	@ ${MKDIR} ${FNORB_DIR}/script
	@ (cd ${WRKSRC} && find *.py *.pyc *.pyo compiler cos orb parser \
	  script/*.py script/*.pyc script/*.pyo \! -name \*.orig \
	  | ${CPIO} ${BINOWN}:${BINGRP} ${FNORB_DIR})
	@ ${MKDIR} ${PREFIX}/bin
.for fnscript in ${FNORB_BINS}
	@ ${INSTALL_SCRIPT} ${WRKSRC}/script/${fnscript} ${PREFIX}/bin
.endfor
	@ ${INSTALL_DATA} ${WRKSRC}/etc/fnorb.cfg \
	  ${PREFIX}/etc/fnorb.cfg.sample
	@ ${MKDIR} ${FNORB_EGDIR}
	@ (cd ${WRKSRC}/examples && find * \
	  | ${CPIO} ${SHAREOWN}:${SHAREGRP} ${FNORB_EGDIR})
.if !defined(NOPORTDOCS)
	@ ${MKDIR} ${FNORB_DOCDIR}
	@ (cd ${WRKSRC}/doc && find . \
	  | ${CPIO} ${MANOWN}:${MANGRP} ${FNORB_DOCDIR})
	@ (${CHMOD} -R u-x ${FNORB_DOCDIR} && ${CHMOD} -R u+X ${FNORB_DOCDIR})
.for file in ANNOUNCE CHANGES README LICENSE.HTML
	@ ${INSTALL_MAN} ${WRKSRC}/${file} ${FNORB_DOCDIR}
.endfor
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud