76079b1b64
- Take maintainership (tcltk@FreeBSD.org) - Add LICENSE - Switch to USES+=gmake tcl - Add regression-test target - STAGE-clean
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# Created by: Chuck Hein <geekdude@pacbell.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mpexpr
|
|
PORTVERSION= 1.1
|
|
CATEGORIES= math tcl
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= tcltk@FreeBSD.org
|
|
COMMENT= Multiple precision math for Tcl
|
|
|
|
LICENSE= BSD
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/unix
|
|
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
USES+= gmake tcl
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
|
--with-tcl=${TCL_LIBDIR}
|
|
CONFIGURE_ENV+= TCL_INC_DIR=${TCL_INCLUDEDIR} \
|
|
TCL_LIB_DIR=${TCL_LIBDIR}
|
|
|
|
PLIST_DIRS= lib/Mpexpr10
|
|
PLIST_FILES= lib/Mpexpr10/libMpexpr10.so \
|
|
lib/Mpexpr10/pkgIndex.tcl \
|
|
man/mann/mpexpr.n.gz
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|\.\.||' ${WRKSRC}/pkgIndex.tcl.in
|
|
${REINPLACE_CMD} -e '/set VERBOSE/s|0|1|' ${WRKSRC}/../tests/defs
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/Mpexpr10
|
|
${INSTALL_PROGRAM} ${WRKSRC}/libMpexpr10.so ${STAGEDIR}${PREFIX}/lib/Mpexpr10
|
|
${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl ${STAGEDIR}${PREFIX}/lib/Mpexpr10
|
|
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/doc/mpexpr.man ${STAGEDIR}${PREFIX}/man/mann/mpexpr.n
|
|
|
|
regression-test: build
|
|
cd ${WRKSRC} && ${GMAKE} test
|
|
|
|
.include <bsd.port.mk>
|