aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/tulip/Makefile
blob: 27a10534259ea57e22dd54c6fbc5b4576e25bbd9 (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
54
55
56
57
58
59
60
# ex:ts=8
# Ports collection makefile for:    tulip
# Date created:         Feb 8, 2003
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   tulip
PORTVERSION=    3.6.0
CATEGORIES= graphics
MASTER_SITES=   SF/auber/${PORTNAME}/${PORTNAME}-${PORTVERSION}
DISTFILES=  ${DISTNAME}-src${EXTRACT_SUFX}

MAINTAINER= gahr@FreeBSD.org
COMMENT=    A system dedicated to the visualization of huge graphs

LIB_DEPENDS=    freetype.9:${PORTSDIR}/print/freetype2 \
        gzstream.0:${PORTSDIR}/devel/gzstream \
        ftgl.2:${PORTSDIR}/graphics/ftgl \
        qscintilla2:${PORTSDIR}/devel/qscintilla2 \
        jpeg.11:${PORTSDIR}/graphics/jpeg

USE_QT_VER= 4
QT_COMPONENTS=  corelib moc_build uic_build rcc_build gui opengl xml network qmake_build \
        designer assistant assistantclient
USE_GL=     glew glut
USE_GNOME=  libxml2
USE_PYTHON= yes
USE_CMAKE=  yes
CMAKE_OUTSOURCE=yes
CMAKE_ARGS+=    -DLOCALBASE:PATH=${LOCALBASE} \
        -DPYTHON_INCLUDEDIR:PATH=${PYTHON_INCLUDEDIR} \
        -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE
USE_LDCONFIG=   ${PREFIX}/lib/tlp

WRKSRC=     ${WRKDIR}/${DISTNAME}-src

PLIST_SUB+= TULIP_VERSION=${PORTVERSION} \
        TULIP_VERS=${PORTVERSION:R}

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+=    -fPIC
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|<qtimer.h>|<QtCore/qtimer.h>|;s|<qlocale.h>|<QtCore/qlocale.h>|' \
        ${WRKSRC}/software/tulip/src/main.cpp

.if !defined(NOPORTDOCS)
DISTFILES+= ${PORTNAME}-${PORTVERSION}-html.tar.bz2
PORTDOCS=   *
post-install:
    ${INSTALL} -d ${DOCSDIR}
    (cd ${WRKDIR}/${PORTNAME}-${PORTVERSION}-html && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif

.include <bsd.port.post.mk>