mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
4a65d405da
These ports require msgfmt. FreeBSD doesn't fail to build these ports because a default option on gvfs brings in this tool. The same gvfs option is off by default on DragonFly and thus the missing dependencies were unmasked. Explicitly add gettext-tools to get msgfmt.
55 lines
1.2 KiB
Makefile
55 lines
1.2 KiB
Makefile
# 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= 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 <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>
|