1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/devel/fnorb/Makefile
2003-08-20 09:35:46 +00:00

71 lines
2.0 KiB
Makefile

# New ports collection makefile for: fnorb
# Date created: 12 Septermber 2000
# Whom: Johann Visagie <johann@egenetics.com>
#
# $FreeBSD$
#
PORTNAME= fnorb
PORTVERSION= 1.1
PORTREVISION= 9
CATEGORIES= devel python
MASTER_SITES= http://www.fnorb.org/download/
MAINTAINER= wjv@FreeBSD.org
COMMENT= A CORBA 2.0 ORB written in Python
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
WRKSRC= ${WRKDIR}/Fnorb-${PORTVERSION}
BUILD_WRKSRC= ${WRKSRC}/src
INSTALL_WRKSRC= ${BUILD_WRKSRC}
USE_PYTHON= yes
USE_REINPLACE= yes
ALL_TARGET=
CPIO= cpio --quiet -pdum -R
FNORB_DIR= ${PREFIX}/lib/${PYTHON_VERSION}/site-packages/Fnorb
FNORB_BINS= fnaming fnendian fnfeed fngen fnidl fnifr fnior fnlogger \
fnmetrics fnmkior fnoptions fnping
.include <bsd.port.pre.mk>
do-configure:
@ cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
Makefile.pre.in boot
post-patch:
.if ${PYTHON_REL} >= 230
@ ${REINPLACE_CMD} -e 's,@DEFS@,,g' ${WRKSRC}/src/Makefile.pre.in
.endif
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
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${EXAMPLESDIR}
@ cd ${WRKSRC}/examples && find * \
| ${CPIO} ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
@ ${MKDIR} ${DOCSDIR}
@ cd ${WRKSRC}/doc && find . \
| ${CPIO} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
@ ${CHMOD} -R u-x ${DOCSDIR} && ${CHMOD} -R u+X ${DOCSDIR}
.for file in ANNOUNCE CHANGES README LICENSE.HTML
@ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>