aboutsummaryrefslogtreecommitdiffstats
path: root/astro/boinc-setiathome-enhanced
diff options
context:
space:
mode:
authorrene <rene@FreeBSD.org>2011-02-01 06:10:40 +0800
committerrene <rene@FreeBSD.org>2011-02-01 06:10:40 +0800
commite3392b9c0d5bbae572630fc4e181034397bb8cc8 (patch)
tree1d4e568dbf700093a2b8fba86b0df9de2d87b3a0 /astro/boinc-setiathome-enhanced
parentfdbf5ed4da24a52add26018fb2033d12a3747d6f (diff)
downloadfreebsd-ports-gnome-e3392b9c0d5bbae572630fc4e181034397bb8cc8.tar.gz
freebsd-ports-gnome-e3392b9c0d5bbae572630fc4e181034397bb8cc8.tar.zst
freebsd-ports-gnome-e3392b9c0d5bbae572630fc4e181034397bb8cc8.zip
Improve Makefile logic: instead of breaking the port when
libboinc_graphics2.a is not found and the X11 option is selected, include it as a build dependency (which had a hardcoded trigger before). Feature safe: yes
Diffstat (limited to 'astro/boinc-setiathome-enhanced')
-rw-r--r--astro/boinc-setiathome-enhanced/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/astro/boinc-setiathome-enhanced/Makefile b/astro/boinc-setiathome-enhanced/Makefile
index 17aae705bf5b..54d55219f518 100644
--- a/astro/boinc-setiathome-enhanced/Makefile
+++ b/astro/boinc-setiathome-enhanced/Makefile
@@ -18,7 +18,6 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3 \
- ${LOCALBASE}/include/boinc/std_fixes.h:${PORTSDIR}/net/boinc-client \
${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
RUN_DEPENDS= boinc_client:${PORTSDIR}/net/boinc-client
LIB_DEPENDS= fftw3f:${PORTSDIR}/math/fftw3-float
@@ -40,20 +39,19 @@ BOINC_USER?= boinc
BOINC_GROUP?= nobody
BOINC_HOME?= /var/db/boinc
-OPTIONS= X11 "Build screensaver" off
+OPTIONS= X11 "Build screensaver (requires net/boinc-client with X11)" off
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_X11)
-.if !exists(${LOCALBASE}/lib/libboinc_graphics2.a)
-BROKEN=Reinstall net/boinc-client with X11 enabled for screensavers
-.endif
LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg \
xcb.2:${PORTSDIR}/x11/libxcb
USE_GL= gl glu glut
USE_XORG= ice sm x11 xau xext xi xdamage xdmcp xfixes xmu xt xxf86vm
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libboinc_graphics2.a:${PORTSDIR}/net/boinc-client
PLIST_SUB+= X11=""
.else
+BUILD_DEPENDS+= ${LOCALBASE}/include/boinc/std_fixes.h:${PORTSDIR}/net/boinc-client
CONFIGURE_ARGS+= --disable-graphics
PLIST_SUB+= X11="@comment "
.endif