2001-09-16 20:09:03 +02:00
|
|
|
# New ports collection makefile for: kseg
|
|
|
|
# Date created: 4 September 2001
|
|
|
|
# Whom: Kuang-che Wu <kcwu@ck.tp.edu.tw>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= kseg
|
2003-02-23 14:40:57 +01:00
|
|
|
PORTVERSION= 0.352
|
2001-09-16 20:09:03 +02:00
|
|
|
CATEGORIES= math graphics
|
|
|
|
MASTER_SITES= http://www.mit.edu/~ibaran/
|
|
|
|
|
|
|
|
MAINTAINER= kcwu@ck.tp.edu.tw
|
2003-02-21 13:51:06 +01:00
|
|
|
COMMENT= A simulator of euclidean geometry
|
2001-09-16 20:09:03 +02:00
|
|
|
|
2003-02-22 01:25:26 +01:00
|
|
|
USE_QT_VER= 3
|
2001-09-16 20:09:03 +02:00
|
|
|
USE_X_PREFIX= yes
|
2002-06-19 23:09:05 +02:00
|
|
|
USE_REINPLACE= yes
|
2001-09-16 20:09:03 +02:00
|
|
|
|
2003-02-23 14:40:57 +01:00
|
|
|
pre-patch:
|
|
|
|
${REINPLACE_CMD} -e "s@\$$(QTDIR)@${QT_PREFIX}@; s@^CC =@#CC =@; s@-O2@${CFLAGS} ${PTHREAD_CFLAGS}@" ${WRKSRC}/Makefile ${WRKSRC}/formula/Makefile
|
2003-02-22 01:25:26 +01:00
|
|
|
${REINPLACE_CMD} -e "s@-lqt@-lqt-mt ${PTHREAD_LIBS}@; " ${WRKSRC}/Makefile
|
2001-09-16 20:09:03 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/kseg ${PREFIX}/bin
|
2003-02-22 01:25:26 +01:00
|
|
|
${MKDIR} ${PREFIX}/lib/X11/kseg
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/lib/X11/kseg
|
2003-02-23 14:40:57 +01:00
|
|
|
.for TRANS in de en es fr hu nb nl pt xx
|
2003-02-22 01:25:26 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/kseg_${TRANS}.qm ${PREFIX}/lib/X11/kseg
|
2001-09-16 20:09:03 +02:00
|
|
|
.endfor
|
2003-02-23 14:40:57 +01:00
|
|
|
.for TRANS in en es
|
2003-02-22 01:25:26 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/kseg_help_${TRANS}.html ${PREFIX}/lib/X11/kseg
|
|
|
|
.endfor
|
|
|
|
${MKDIR} ${PREFIX}/lib/X11/kseg/examples
|
|
|
|
for EXAMPLES in ${WRKSRC}/examples/*;do \
|
|
|
|
${INSTALL_DATA} $${EXAMPLES} ${PREFIX}/lib/X11/kseg/examples;done
|
2001-09-16 20:09:03 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|