ea617e7fdc
PR: ports/65815 Submitted by: Jens Rehsack <rehsack@liwing.de>
67 lines
1.7 KiB
Makefile
67 lines
1.7 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: diacanvas2
|
|
# Date created: Feb 9, 2003
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= diacanvas2
|
|
PORTVERSION= 0.12.0
|
|
CATEGORIES= graphics gnome
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= diacanvas
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A general drawing canvas from dia dialog editor
|
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gnome/__init__.py:${PORTSDIR}/x11-toolkits/py-gnome2
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gnome/__init__.py:${PORTSDIR}/x11-toolkits/py-gnome2
|
|
|
|
USE_GNOME= gnomehack libgnomeprint libgnomeprintui libartlgpl2 \
|
|
libgnomecanvas
|
|
USE_PYTHON= 2.2+
|
|
USE_REINPLACE= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
INSTALLS_SHLIB= yes
|
|
|
|
.if !defined(DISPLAY)
|
|
BUILD_DEPENDS+= Xvfb:${PORTSDIR}/x11-servers/XFree86-4-VirtualFramebufferServer
|
|
CONFIGURE_ENV+= DISPLAY=localhost:1001
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|unit_tests doc|unit_tests|g' ${WRKSRC}/Makefile.in
|
|
|
|
pre-configure:
|
|
.if exists(${WRKDIR}/.Xvfb.pid)
|
|
@-${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill
|
|
@${RM} -f ${WRKDIR}/.Xvfb.pid
|
|
.endif
|
|
.if !defined(DISPLAY)
|
|
#
|
|
# This is a UGLY hack to not have to specify a X-Display.
|
|
#
|
|
${X11BASE}/bin/Xvfb :1001 -screen 0 800x600x24 > /dev/null 2>&1 & ${ECHO} $$! > ${WRKDIR}/.Xvfb.pid
|
|
@sleep 5
|
|
.endif
|
|
|
|
post-configure:
|
|
.if !defined(DISPLAY)
|
|
@-${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill
|
|
@${RM} -f ${WRKDIR}/.Xvfb.pid
|
|
.endif
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/ref/html/*.html ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/ref/html/*.png ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|