aboutsummaryrefslogtreecommitdiffstats
path: root/science/step/Makefile
blob: 0e1eda188146eb3c0f7da70e3211cf8f158c3b18 (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
# New ports collection Makefile for:    step
# Date created:             6 September 2011
# Whom:                 Alberto Villa <avilla@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   step
PORTVERSION=    ${KDE4_VERSION}
PORTREVISION=   1
CATEGORIES= science kde
MASTER_SITES=   ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src
DIST_SUBDIR=    KDE

MAINTAINER= kde@FreeBSD.org
COMMENT=    KDE 4 interactive physics simulator

LIB_DEPENDS=    qalculate.5:${PORTSDIR}/math/libqalculate \
        gsl.16:${PORTSDIR}/math/gsl

BUILD_DEPENDS=  eigen>=2.0.b3:${PORTSDIR}/math/eigen2

CONFLICTS=  kdeedu-4.[0-6].*

USE_KDE4=   kdehier kdelibs kdeprefix automoc4
KDE4_BUILDENV=  yes
USE_QT_VER= 4
QT_COMPONENTS=  opengl xml moc_build qmake_build rcc_build uic_build
USE_XZ= yes
MAKE_JOBS_SAFE= yes

pre-configure:
    # Fix GSL_INCLUDE_DIR.
    ${REINPLACE_CMD} -e 's|gsl_|gsl/gsl_|g' \
        ${WRKSRC}/cmake/modules/FindGSL.cmake
    # Avoid building translations, should the user pass
    # CURRENT_LANG to CMake.
    ${REINPLACE_CMD} -e '/set(STEP_BUILD_TRANSLATIONS 1)/ d' \
        ${WRKSRC}/${PORTNAME}/data/CMakeLists.txt

.include <bsd.port.mk>