aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/goocanvas2/Makefile
blob: ac15dddbe654cddd619d718883aacb6d97b6b7d4 (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
# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
#    $MCom: ports/trunk/graphics/goocanvas2/Makefile 17268 2013-04-01 05:13:11Z marcus $

PORTNAME=   goocanvas
PORTVERSION=    2.0.1
CATEGORIES= graphics
MASTER_SITES=   GNOME
PKGNAMESUFFIX=  2

MAINTAINER= kwm@FreeBSD.org
COMMENT=    Canvas widget for GTK+ 3

LATEST_LINK=    goocanvas2

BUILD_DEPENDS=  g-ir-scanner:${PORTSDIR}/devel/gobject-introspection

USES=       pathfix pkgconfig
USE_GNOME=  gtk30 ltverhack
USE_GMAKE=  yes
USE_AUTOTOOLS=  libtool
USE_LDCONFIG=   yes
USE_XZ=     yes

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

PORTDOCS=   *
DOCSDIR=    ${PREFIX}/share/gtk-doc/html/goocanvas2

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USES+=      gettext
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif

post-patch:
.if ! ${PORT_OPTIONS:MDOCS}
    @${REINPLACE_CMD} -e '/^SUBDIRS/s|docs||g' ${WRKSRC}/Makefile.in
.endif
.if ! ${PORT_OPTIONS:MNLS}
    @${REINPLACE_CMD} -e '/^SUBDIRS/s|po||g' ${WRKSRC}/Makefile.in
.endif

.include <bsd.port.mk>