aboutsummaryrefslogblamecommitdiff
path: root/math/kseg/Makefile
blob: 9de12b0303f1b3a571e928bfe9409e6e4a148fdc (plain) (tree)
1
2
3
4
5
6
7
8
9
10







                                                        

                   



                                           
                                                 
 
                 
                   
                   
 

                                                                                                                                                          
                                                                                  


                                                       

                                                               
                                              
                                                                         
       
                      




                                                                                 

                      
# 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.4
PORTEPOCH=	1
CATEGORIES=	math graphics
MASTER_SITES=	http://www.mit.edu/~ibaran/

MAINTAINER=	kcwu@ck.tp.edu.tw
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
.for TRANS in de en es fr hu it ja nb nl pt xx
	${INSTALL_DATA} ${WRKSRC}/kseg_${TRANS}.qm ${PREFIX}/lib/X11/kseg
.endfor
.for TRANS in en es it
	${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

.include <bsd.port.mk>