freebsd-ports/graphics/diacanvas2/Makefile
Koop Mast 1889c7cb03 Fix build with glib 2.34 [1] and while here make it build with clang.
Also add support for GNOME print which wasn't handled.

Submitted by:	pointyhat via miwi [1]
2013-05-21 11:35:49 +00:00

43 lines
912 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= diacanvas2
PORTVERSION= 0.15.4
PORTREVISION= 4
CATEGORIES= graphics gnome
MASTER_SITES= SF/diacanvas/DiaCanvas2/${PORTVERSION}
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A general drawing canvas from dia dialog editor
USES= pathfix pkgconfig
USE_GNOME= pygnome2
USE_PYTHON= 2.2+
USE_GMAKE= yes
USE_AUTOTOOLS= libtool
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= yes
USE_DISPLAY= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
OPTIONS_DEFINE= PRINT
OPTIONS_DEFAULT=PRINT
PRINT_DESC= GNOME print support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPRINT}
USE_GNOME+= libgnomeprintui
CONFIGURE_ARGS+=--enable-gnome-print
.else
CONFIGURE_ARGS+=--disable-gnome-print
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|unit_tests doc|unit_tests|g' ${WRKSRC}/Makefile.in
.include <bsd.port.mk>