aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/fltk2/Makefile
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2006-07-24 10:00:22 +0800
committerrafan <rafan@FreeBSD.org>2006-07-24 10:00:22 +0800
commit8095676d97f76313ac5e0a5f09b962e065c0df44 (patch)
tree4b19e79a5ce9a08183abdd327fc4082e1d8fa9a8 /x11-toolkits/fltk2/Makefile
parentd6fdb64e1ce32f1b31b8a543df6e8f2614e086c6 (diff)
downloadfreebsd-ports-gnome-8095676d97f76313ac5e0a5f09b962e065c0df44.tar.gz
freebsd-ports-gnome-8095676d97f76313ac5e0a5f09b962e065c0df44.tar.zst
freebsd-ports-gnome-8095676d97f76313ac5e0a5f09b962e065c0df44.zip
- Update to snapshot r5256
- Add new option FLTK_CAIRO for cairo support (default off) PR: ports/100744 Submitted by: Thomas-Martin Seck <tmseck at netcologne.de> (maintainer)
Diffstat (limited to 'x11-toolkits/fltk2/Makefile')
-rw-r--r--x11-toolkits/fltk2/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/x11-toolkits/fltk2/Makefile b/x11-toolkits/fltk2/Makefile
index a75f76d99b4d..03386b70c014 100644
--- a/x11-toolkits/fltk2/Makefile
+++ b/x11-toolkits/fltk2/Makefile
@@ -26,9 +26,10 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg \
Xft.2:${PORTSDIR}/x11-fonts/libXft
-SNAPSHOT= r5170
+SNAPSHOT= r5256
-OPTIONS= FLTK_THREADS "Install with threads support" on
+OPTIONS= FLTK_THREADS "Install with threads support" on \
+ FLTK_CAIRO "Use cairo as graphics backend" off
LATEST_LINK= fltk2
@@ -63,6 +64,17 @@ LDFLAGS+= "${PTHREAD_LIBS}"
CONFIGURE_ARGS+= --disable-threads
.endif
+.if defined(WITH_FLTK_CAIRO)
+CONFIGURE_ARGS+= --enable-cairo
+LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo
+# XXX:
+# FLTK2's configure check currently depends on pkg-config being available...
+BUILD_DEPENDS+= pkg-config:${PORTSDIR}/devel/pkg-config
+.else
+CONFIGURE_ARGS+= --disable-cairo
+EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-test-Makefile
+.endif
+
post-patch:
${REINPLACE_CMD} -e 's:%%CXX%%:${CXX}:g' \
${WRKSRC}/fltk2-config.in \
@@ -72,6 +84,7 @@ post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/documentation && ${INSTALL_DATA} *.html *.gif ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README_fltk1_to_fltk2.txt ${DOCSDIR}
.endif
.include <bsd.port.post.mk>