summaryrefslogtreecommitdiff
path: root/science/euler/Makefile
blob: 2f2b56e8fe5c13ed9eccbbb7f70901731ab6e0cd (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# ex:ts=8
# Ports collection Makefile for:	euler
# Date created:			May 14, 2002
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	euler
PORTVERSION=	1.60.6
CATEGORIES=	science
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A program computes with real and complex numbers and matrices

WRKSRC=		${WRKDIR}/${DISTNAME:R}/source

USE_GNOMENG=	yes
USE_GNOME=	gtk12
USE_REINPLACE=	yes
MAKEFILE=	makefile
ALL_TARGET=	euler

post-patch:
	@${REINPLACE_CMD} -e 's|^CC=gcc|CC+= \$$\{CFLAGS\}|g ; \
		 s|[(]INSTALL_DIR[)]|(PREFIX)|g ; \
		 s|-O2||g ; \
		 s|g++|\$$\{CXX\}|g ; \
		 s|gtk-config|\$$\{GTK_CONFIG\}|g ; \
		 s|glib-config|\$$\{GLIB_CONFIG\}|g' ${WRKSRC}/${MAKEFILE}
	@${REINPLACE_CMD} -e 's|_DIR,|_DIR |g' ${WRKSRC}/main.c

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/euler ${PREFIX}/bin
	@${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/help.txt ${DATADIR}
.for dir in progs progs/user
	@${MKDIR} ${DATADIR}/${dir}
	${INSTALL_DATA} ${WRKSRC}/../${dir}/*.* ${DATADIR}/${dir}
.endfor
.if !defined(NOPORTDOCS)
.for dir in . french german german/images images reference
	@${MKDIR} ${DOCSDIR}/${dir}
	${INSTALL_DATA} ${WRKSRC}/../docs/${dir}/*.* ${DOCSDIR}/${dir}
.endfor
.endif

.include <bsd.port.mk>