2001-03-21 13:25:33 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: rpc
|
|
|
|
# Date created: Mar 21, 2001
|
|
|
|
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= rpc
|
2003-10-18 14:02:41 +00:00
|
|
|
PORTVERSION= 0.98
|
2004-02-04 05:10:27 +00:00
|
|
|
PORTREVISION= 1
|
2001-03-21 13:25:33 +00:00
|
|
|
CATEGORIES= math
|
|
|
|
MASTER_SITES= http://www.eecs.umich.edu/~pelzlpj/rpc/
|
|
|
|
|
2001-08-16 12:10:17 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= A full-screen RPN calculator program
|
2001-03-21 13:25:33 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libccm.so:${PORTSDIR}/math/ccmath
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/libccm.so:${PORTSDIR}/math/ccmath
|
|
|
|
|
2002-09-20 07:08:13 +00:00
|
|
|
USE_GMAKE= yes
|
2001-08-16 12:10:17 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2002-09-20 07:08:13 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2001-08-16 12:10:17 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2002-09-20 07:08:13 +00:00
|
|
|
|
2005-02-15 16:53:02 +00:00
|
|
|
post-patch:
|
|
|
|
#
|
|
|
|
# Get rid of inline function body in implementation...
|
|
|
|
#
|
|
|
|
@${REINPLACE_CMD} -e '483,488d' ${WRKSRC}/src/RpcComplex.cpp
|
|
|
|
@${REINPLACE_CMD} -e '428,433d' ${WRKSRC}/src/RpcComplexMatrix.cpp
|
|
|
|
@${REINPLACE_CMD} -e '591,596d' ${WRKSRC}/src/RpcDouble.cpp
|
|
|
|
@${REINPLACE_CMD} -e '350,355d' ${WRKSRC}/src/RpcIntegerConst.cpp
|
|
|
|
@${REINPLACE_CMD} -e '394,399d' ${WRKSRC}/src/RpcRealMatrix.cpp
|
|
|
|
#
|
|
|
|
# ...and put it right into class declaration instead, to please newer GCC
|
|
|
|
#
|
|
|
|
@${REINPLACE_CMD} -E 's,([[:alnum:]]+ getData\( void \));,inline \1 { return data; },' \
|
|
|
|
${WRKSRC}/src/RpcComplex.h ${WRKSRC}/src/RpcComplexMatrix.h \
|
|
|
|
${WRKSRC}/src/RpcDouble.h ${WRKSRC}/src/RpcIntegerConst.h \
|
|
|
|
${WRKSRC}/src/RpcRealMatrix.h
|
|
|
|
|
2002-09-20 07:08:13 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/manual ${DOCSDIR}
|
|
|
|
.endif
|
2001-08-16 12:10:17 +00:00
|
|
|
|
2001-03-21 13:25:33 +00:00
|
|
|
.include <bsd.port.mk>
|