aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/tulip/Makefile
blob: 4982a98ea87e05d4fc8ce5612b41128fa498efcc (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
61
62
# ex:ts=8
# Ports collection makefile for:    tulip
# Date created:         Feb 8, 2003
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   tulip
PORTVERSION=    3.1.2
CATEGORIES= graphics
MASTER_SITES=   SF/auber/${PORTNAME}/${PORTNAME}-${PORTVERSION}:src \
            http://tulip.labri.fr/userHandbook/:doc
DISTFILES=  ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:src \
            userManual.pdf:doc
DIST_SUBDIR=    tulip/${PDFUPDATE}
EXTRACT_ONLY=   ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}

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

LIB_DEPENDS=    GLEW.1:${PORTSDIR}/graphics/glew \
        freetype.9:${PORTSDIR}/print/freetype2

USE_BZIP2=  yes
USE_QT_VER= 4
QT_COMPONENTS=  corelib moc_build uic_build rcc_build gui opengl xml network \
        designer assistant assistantclient
USE_GL= glut
USE_GMAKE=  yes
USE_GNOME=  libxml2
USE_AUTOTOOLS=  libtool:22
USE_LDCONFIG=   yes

PORTDOCS=   userManual.pdf
PDFUPDATE=  2

PLIST_SUB+= TULIP_VERSION=${PORTVERSION}

.include <bsd.port.pre.mk>

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

post-extract:
    @${FIND} ${WRKSRC} -name "moc_*" -delete

post-patch:
    @${REINPLACE_CMD} -e 's|<qdir.h>|<QtCore/qdir.h>|' \
        ${WRKSRC}/software/tulip/src/Application.cpp
    @${REINPLACE_CMD} -e 's|<qtimer.h>|<QtCore/qtimer.h>|' \
        ${WRKSRC}/software/tulip/src/main.cpp
    @${REINPLACE_CMD} -e 's|docs||g' ${WRKSRC}/Makefile.am ${WRKSRC}/Makefile.in

.if !defined(NOPORTDOCS)
post-install:
    ${INSTALL} -d ${DOCSDIR}
    ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/userManual.pdf ${DOCSDIR}
.endif

.include <bsd.port.post.mk>