aboutsummaryrefslogtreecommitdiffstats
path: root/science/euler/Makefile
blob: aa4dedd40601e8bfa67b9e0d5934175c8c9f744c (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
# ex:ts=8
# Ports collection Makefile for:    euler
# Date created:         May 14, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   euler
PORTVERSION=    1.61.0
CATEGORIES= science
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX=   .tgz

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

USE_GNOME=  gnometarget gtk20
GNU_CONFIGURE=  yes

post-patch:
    @${REINPLACE_CMD} -e '/^SUBDIRS/s|docs||g ; \
         /^install-data-am/s|install-eulerdocDATA||g' ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e '/^AM_CFLAGS/d ; \
         /-Wall/d ; \
         /-O3/d' ${WRKSRC}/src/Makefile.in

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC}/docs && ${FIND} . ! -name "*Makefile*" | \
        ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
    @${FIND} ${DOCSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
    @${FIND} ${DOCSDIR} -type d | ${XARGS} ${CHMOD} ${BINMODE}
.endif

.include <bsd.port.mk>