aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2005-10-25 07:45:22 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2005-10-25 07:45:22 +0000
commit1f8d779f258ecef3888518a9140bfa5f90ae2c7b (patch)
tree3e662ecbc297d8633d0917fdf588ae9584752b07 /Mk
parentf660c473ed9499e6d842db4723fae76ddefe99b7 (diff)
downloadports-1f8d779f258ecef3888518a9140bfa5f90ae2c7b.tar.gz
ports-1f8d779f258ecef3888518a9140bfa5f90ae2c7b.zip
Notes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.gnustep.mk20
1 files changed, 17 insertions, 3 deletions
diff --git a/Mk/bsd.gnustep.mk b/Mk/bsd.gnustep.mk
index 8c10d589c1a5..252edb1fafbc 100644
--- a/Mk/bsd.gnustep.mk
+++ b/Mk/bsd.gnustep.mk
@@ -14,6 +14,8 @@
# WITH_GNUSTEP_LIBART=yes
# use libart as backend instead of xlib.
#
+# WITH_GNUSTEP_CAIRO=yes
+# use cairo as backend instead of xlib.
#
# Options for a port before include this file:
# ============================================
@@ -61,6 +63,7 @@ GNUSTEP_GUI_PORT?= x11-toolkits/gnustep-gui
GNUSTEP_BACK_PORT?= x11-toolkits/gnustep-back
GNUSTEP_XDPS_PORT?= x11-toolkits/gnustep-xdps
GNUSTEP_ART_PORT?= x11-toolkits/gnustep-art
+GNUSTEP_CAIRO_PORT?= x11-toolkits/gnustep-cairo
.if ${MACHINE_ARCH} == "i386"
GNU_ARCH= ix86
@@ -131,14 +134,14 @@ RUN_DEPENDS+= ${COMBOLIBDIR}/libgnustep-gui.so:${PORTSDIR}/${GNUSTEP_GUI_PORT}
BACKSUFFIX?= -010
.if defined(WITH_GNUSTEP_XDPS)
GNUSTEP_WITH_XDPS=yes
-.else
-.if defined(WITH_GNUSTEP_LIBART)
+.elif defined(WITH_GNUSTEP_LIBART)
USE_GNUSTEP_LIBART=yes
+.elif defined(WITH_GNUSTEP_CAIRO)
+USE_GNUSTEP_CAIRO=yes
.else
USE_GNUSTEP_XLIB=yes
.endif
.endif
-.endif
# ---------------------------------------------------------------------------
# Backend using xlib
@@ -174,6 +177,17 @@ MAKE_FLAGS+= GUI_BACKEND_LIB=art
.endif
# ---------------------------------------------------------------------------
+# Backend using cairo
+#
+.if defined(USE_GNUSTEP_CAIRO)
+BUILD_DEPENDS+= ${BACKBUNDLEDIR}/libgnustep-cairo${BACKSUFFIX}:${PORTSDIR}/${GNUSTEP_CAIRO_PORT}
+RUN_DEPENDS+= ${BACKBUNDLEDIR}/libgnustep-cairo${BACKSUFFIX}:${PORTSDIR}/${GNUSTEP_CAIRO_PORT}
+
+BACKBUNDLEDIR= ${BUNDLEDIR}/libgnustep-cairo${BACKSUFFIX}.bundle
+MAKE_FLAGS+= GUI_BACKEND_LIB=cairo
+.endif
+
+# ---------------------------------------------------------------------------
# source GNUstep.sh
#
.if defined(USE_GNUSTEP_CONFIGURE)