diff options
author | thierry <thierry@FreeBSD.org> | 2004-05-08 06:33:39 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2004-05-08 06:33:39 +0800 |
commit | bb801225e9b23cd619410c62c8c4362949566dde (patch) | |
tree | 270cd074398a76aa9552c1d1018cb5ce92c8ff27 /graphics/diacanvas2 | |
parent | 5abc3bb8de320aaa87c5fcd509ccb35cd22b7789 (diff) | |
download | freebsd-ports-gnome-bb801225e9b23cd619410c62c8c4362949566dde.tar.gz freebsd-ports-gnome-bb801225e9b23cd619410c62c8c4362949566dde.tar.zst freebsd-ports-gnome-bb801225e9b23cd619410c62c8c4362949566dde.zip |
Fixing broken pkg-plist and make it build fine with python-bindings.
PR: ports/65815
Submitted by: Jens Rehsack <rehsack@liwing.de>
Diffstat (limited to 'graphics/diacanvas2')
-rw-r--r-- | graphics/diacanvas2/Makefile | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/graphics/diacanvas2/Makefile b/graphics/diacanvas2/Makefile index f991f54f4b5c..40919b37ee78 100644 --- a/graphics/diacanvas2/Makefile +++ b/graphics/diacanvas2/Makefile @@ -18,8 +18,6 @@ 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 -BROKEN= "Broken pkg-plist" - USE_GNOME= gnomehack libgnomeprint libgnomeprintui libartlgpl2 \ libgnomecanvas USE_PYTHON= 2.2+ @@ -30,10 +28,34 @@ 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} |