# Created by: ijliao # $FreeBSD: head/graphics/diacanvas2/Makefile 393429 2015-08-02 15:03:19Z tijl $ PORTNAME= diacanvas2 PORTVERSION= 0.15.4 PORTREVISION= 6 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= gettext-tools gmake libtool pathfix pkgconfig python USE_GNOME= pygnome2 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 .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