aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/diacanvas2/Makefile
blob: 49675dd5cc0863ed9116101155da1b655499b6fa (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   diacanvas2
PORTVERSION=    0.15.4
PORTREVISION=   5
CATEGORIES= graphics gnome
MASTER_SITES=   SF/diacanvas/DiaCanvas2/${PORTVERSION}
DISTNAME=   ${PORTNAME}_${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    General drawing canvas from dia dialog editor

LICENSE=    GPLv2

USES=       gmake pathfix pkgconfig libtool
USE_GNOME=  pygnome2
USE_PYTHON= yes
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
MAKE_JOBS_UNSAFE=   yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib -lm

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

OPTIONS_DEFINE= NLS PRINT
OPTIONS_DEFAULT=PRINT
PRINT_DESC= GNOME print support
OPTIONS_SUB=    yes

PRINT_CONFIGURE_ENABLE= gnome-print

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MPRINT}
USE_GNOME+= libgnomeprintui
.endif

post-patch:
    @${REINPLACE_CMD} -e '/SUBDIRS/s|doc||' ${WRKSRC}/Makefile.in

.if ! ${PORT_OPTIONS:MNLS}
    @${REINPLACE_CMD} -e 's|po diacanvas po |diacanvas |' \
        ${WRKSRC}/Makefile.in
.endif

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.0
.for l in _canvasmodule shapemodule viewmodule geometrymodule
    ${STRIP_CMD} ${STAGEDIR}${PYTHON}${PYTHON_SITELIBDIR}/diacanvas/${l}.so
.endfor

.include <bsd.port.mk>