aboutsummaryrefslogtreecommitdiffstats
path: root/astro/orsa/Makefile
blob: a11dfb64c732c5e5ee835a6871a9a051abdacb1e (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
# ex:ts=8
# Ports collection makefile for:    orsa
# Date created:         Dec 9, 2004
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   orsa
PORTVERSION=    0.7.0
PORTREVISION=   3
CATEGORIES= astro
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Orbit Reconstruction, Simulation and Analysis

LIB_DEPENDS=    gsl.12:${PORTSDIR}/math/gsl \
        cln.4:${PORTSDIR}/math/cln \
        fftw.2:${PORTSDIR}/math/fftw \
        ginac-1.3.8:${PORTSDIR}/math/GiNaC

USE_AUTOTOOLS=  libtool:15
USE_QT_VER= 3
USE_GL=     gl
USE_GNOME=  gnometarget
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_LDCONFIG=   yes

post-patch:
    @${REINPLACE_CMD} -e 's,Body::,,' \
        ${WRKSRC}/src/liborsa/orsa_body.h
    @${REINPLACE_CMD} -E 's,[[:alnum:]]+::(compare\(),\1,' \
        ${WRKSRC}/src/libxorsa/xorsa_analysis.h \
        ${WRKSRC}/src/libxorsa/xorsa_import_astorb_objects.h \
        ${WRKSRC}/src/libxorsa/xorsa_object_selector.cc \
        ${WRKSRC}/src/orsa/xorsa.h
    @${REINPLACE_CMD} -e 's,^extern,& "C",' \
        ${WRKSRC}/src/libxorsa/xorsa_plot_area.h
    @${REINPLACE_CMD} -e '/nprintf/s,std::,,' \
        ${WRKSRC}/src/libxorsa/xorsa_wrapper.cc

.include <bsd.port.mk>