aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ipe/Makefile
blob: 97f5075e862ddec8f85945a5c5a9d12edd2b812e (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:    Ipe
# Date created:             October 25 2000
# Whom:                 bremner@unb.ca
#
# $FreeBSD$
#

PORTNAME=   ipe
DISTVERSION=    7.1.2
PORTREVISION=   1
CATEGORIES= graphics
MASTER_SITES=   SF
MASTER_SITE_SUBDIR= ${PORTNAME}7/${PORTNAME}/7.1.0
DISTNAME=   ${PORTNAME}-${DISTVERSION}-src

MAINTAINER= tkjacobsen@gmail.com
COMMENT=    Extensible drawing editor

LIB_DEPENDS=    cairo.2:${PORTSDIR}/graphics/cairo
RUN_DEPENDS=    latex:${PORTSDIR}/print/teTeX

WRKSRC=     ${WRKDIR}/${PORTNAME}-${DISTVERSION}/src

USE_LDCONFIG=   yes
USE_LUA=    5.1
USE_GMAKE=  yes
USE_GNOME=  pkgconfig
USE_QT4=    gui qt3support qmake_build moc_build uic_build rcc_build
MAN1=       ipe.1 ipe6upgrade.1 ipeextract.1 iperender.1 ipetoipe.1 ipescript.1

.if defined(NOPORTDOCS)
EXTRA_PATCHES+= ${FILESDIR}/extrapatch-ipe__Makefile
.endif

PLIST_SUB+= VERSION="${DISTVERSION}"

post-install:
    cd ${WRKSRC}/../fontmaps && ${MKDIR} ${DATADIR}/${DISTVERSION} && \
    ${SED} s,/usr/share/fonts/type1/gsfonts,${PREFIX}/share/ghostscript/fonts, \
    < gsfonts-fontmap.xml > ${DATADIR}/${DISTVERSION}/fontmap.xml

.include <bsd.port.mk>