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

PORTNAME=   orsa
PORTVERSION=    0.7.0
PORTREVISION=   6
CATEGORIES= astro
MASTER_SITES=   SF

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

LIB_DEPENDS=    gsl.12:${PORTSDIR}/math/gsl \
        cln.5:${PORTSDIR}/math/cln \
        fftw.2:${PORTSDIR}/math/fftw \
        ginac-1.4.0:${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>