aboutsummaryrefslogtreecommitdiffstats
path: root/math/kseg/Makefile
blob: ed65e6bdff7da7c03c2eae4dae2e7d8b1964520e (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.402
PORTEPOCH=  1
CATEGORIES= math graphics
MASTER_SITES=   http://www.mit.edu/~ibaran/

MAINTAINER= kcwu@csie.org
COMMENT=    A simulator of euclidean geometry

USE_QT_VER= 3
USE_X_PREFIX=   yes
USE_REINPLACE=  yes

pre-patch:
    ${REINPLACE_CMD} -e "s@\$$(QTDIR)@${QT_PREFIX}@; s@^CC =@#CC =@; s@-O2@${CFLAGS} ${PTHREAD_CFLAGS}@" ${WRKSRC}/Makefile ${WRKSRC}/formula/Makefile
    ${REINPLACE_CMD} -e "s@-lqt@-lqt-mt ${PTHREAD_LIBS}@; " ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/kseg ${PREFIX}/bin
    ${MKDIR} ${PREFIX}/lib/X11/kseg
    ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/lib/X11/kseg
    ${INSTALL_DATA} ${WRKSRC}/kseg_??.qm ${PREFIX}/lib/X11/kseg
    ${RM} ${PREFIX}/lib/X11/kseg/kseg_xx.qm
    ${INSTALL_DATA} ${WRKSRC}/kseg_help_??.html ${PREFIX}/lib/X11/kseg
    ${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}

.include <bsd.port.mk>