aboutsummaryrefslogtreecommitdiffstats
path: root/math/spar/Makefile
blob: 40f1802a6f31431d90a65cf380550ee0e129fb21 (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   spar
PORTVERSION=    0.5.10
PORTREVISION=   4
CATEGORIES= math devel
MASTER_SITES=   SF/${PORTNAME}/Spar/${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Modular math parser

USES=       dos2unix libtool ncurses readline
DOS2UNIX_FILES= lib/randist/rand.c
GNU_CONFIGURE=  yes
USE_CSTD=   gnu89
USE_LDCONFIG=   yes

post-patch:
    @${REINPLACE_CMD} -e "s,-ldl,,g" \
        ${WRKSRC}/lib/Makefile.in ${WRKSRC}/lib/module/Makefile.in
    @${REINPLACE_CMD} -e 's|-lcurses|-lncurses|' ${WRKSRC}/configure

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/spar/*.so

.include <bsd.port.mk>