aboutsummaryrefslogtreecommitdiffstats
path: root/math/kseg/Makefile
blob: 07c227e4bb376f89d680ba6f9ff49bc514efb4a0 (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
29
30
31
32
33
34
35
# New ports collection makefile for:    kseg
# Date created:     4 September 2001
# Whom:         Kuang-che Wu <kcwu@ck.tp.edu.tw>
#
# $FreeBSD$
#

PORTNAME=   kseg
PORTVERSION=    0.3
CATEGORIES= math graphics
MASTER_SITES=   http://www.mit.edu/~ibaran/

MAINTAINER= kcwu@ck.tp.edu.tw

USE_QT_VER= 2
USE_X_PREFIX=   yes
USE_REINPLACE=  yes

pre-configure:
    ${REINPLACE_CMD} -e "s@\\$$\(QTDIR\)/include@${PREFIX}/include/qt2@" ${WRKSRC}/Makefile ${WRKSRC}/formula/Makefile
    ${REINPLACE_CMD} -e "s@\\$$\(QTDIR\)/lib -lqt@${PREFIX}/lib -lqt2@" ${WRKSRC}/Makefile 
    ${REINPLACE_CMD} -e "s@^MOC =.*@MOC = ${MOC}@" ${WRKSRC}/Makefile ${WRKSRC}/formula/Makefile
    ${REINPLACE_CMD} -e 's@"LanguageDir", "\."@"LanguageDir", "${PREFIX}/share/doc/kseg"@' ${WRKSRC}/main.cpp

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/kseg ${PREFIX}/bin
    ${MKDIR} ${PREFIX}/share/doc/kseg
    ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/kseg
.for TRANS in de en fr pt xx
    ${INSTALL_DATA} ${WRKSRC}/kseg_${TRANS}.qm ${PREFIX}/share/doc/kseg
.endfor
    ${MKDIR} ${PREFIX}/share/doc/kseg/examples
    for EXAMPLES in ${WRKSRC}/examples/*;do ${INSTALL_DATA} $${EXAMPLES} ${PREFIX}/share/doc/kseg/examples;done

.include <bsd.port.mk>