aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/opengtl/Makefile
blob: ddf801eb758f66189d63597d68e4e08e4dbde606 (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
51
52
53
# New ports collection makefile for:    opengtl
# Date created:             28 September 2009
# Whom:                 Alberto Villa <villa.alberto@gmail.com>
#
# $FreeBSD$

PORTNAME=   opengtl
PORTVERSION=    0.9.15.1
CATEGORIES= graphics devel
MASTER_SITES=   http://download.${PORTNAME}.org/
DISTNAME=   OpenGTL-${PORTVERSION}

MAINTAINER= avilla@FreeBSD.org
COMMENT=    Graphics Transformation Languages

LICENSE=    LGPL20
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    png.6:${PORTSDIR}/graphics/png
BUILD_DEPENDS=  llvm>=2.7<2.10.*:${PORTSDIR}/devel/llvm

USE_BZIP2=  yes
USE_GCC=    4.2+
USE_PERL5=  yes
MAKE_JOBS_SAFE= yes
USE_CMAKE=  yes
USE_LDCONFIG=   yes

OPTIONS=    SHIVA   "Install filters and generators" on

.include <bsd.port.options.mk>

.ifndef(WITHOUT_SHIVA)
RUN_DEPENDS+=   ${LOCALBASE}/share/OpenGTL/shiva/kernels/oilify.shiva:${PORTSDIR}/graphics/shiva-collections
.endif

post-patch:
# Disable latex doc, it's not ready yet.
    ${REINPLACE_CMD} -e '/add_subdirectory.*doc/d' \
        ${PATCH_WRKSRC}/OpenShiva/CMakeLists.txt

pre-configure:
    ${REINPLACE_CMD} -e 's|set(OPENGTL_LIB_SOVERSION.*|set(OPENGTL_LIB_SOVERSION "0")|' \
        ${PATCH_WRKSRC}/CMakeLists.txt
    ${REINPLACE_CMD} -e 's|$${LIB_INSTALL_DIR}/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
        ${PATCH_WRKSRC}/OpenCTL/OpenCTL/CMakeLists.txt \
        ${PATCH_WRKSRC}/OpenGTL/GTLCore/CMakeLists.txt \
        ${PATCH_WRKSRC}/OpenGTL/GTLImageIO/CMakeLists.txt \
        ${PATCH_WRKSRC}/OpenShiva/OpenShiva/CMakeLists.txt
    ${REINPLACE_CMD} -e 's|(int) pthread_self|(unsigned long long) pthread_self|' \
        ${PATCH_WRKSRC}/OpenGTL/GTLCore/MemoryManager_p.cpp

.include <bsd.port.mk>