Changeset View
Changeset View
Standalone View
Standalone View
graphics/cairo/Makefile
# Created by: Michael Johnson <ahze@FreeBSD.org> | # Created by: Michael Johnson <ahze@FreeBSD.org> | ||||
tcberner: I think the cairo update should be done separately to not bloat this one :) | |||||
Done Inline ActionsCairo update: https://reviews.freebsd.org/D29793 That needs to be merged before this can be merged, since GTK4 needs a newer Cairo. nc: Cairo update: https://reviews.freebsd.org/D29793
That needs to be merged before this can be… | |||||
PORTNAME= cairo | PORTNAME= cairo | ||||
PORTVERSION= 1.16.0 # update to 1.17.2 causes problems, see bug#249290 | PORTVERSION= 1.17.4 | ||||
PORTEPOCH= 3 | PORTEPOCH= 3 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= graphics | CATEGORIES= graphics | ||||
MASTER_SITES= http://cairographics.org/releases/ \ | MASTER_SITES= http://cairographics.org/releases/ \ | ||||
http://cairographics.org/snapshots/ | http://cairographics.org/snapshots/ | ||||
MAINTAINER= desktop@FreeBSD.org | MAINTAINER= desktop@FreeBSD.org | ||||
COMMENT= Vector graphics library with cross-device output support | COMMENT= Vector graphics library with cross-device output support | ||||
LICENSE= LGPL21 MPL11 | LICENSE= LGPL21 MPL11 | ||||
LICENSE_COMB= dual | LICENSE_COMB= dual | ||||
LICENSE_FILE_LGPL21= ${WRKSRC}/COPYING-LGPL-2.1 | LICENSE_FILE_LGPL21= ${WRKSRC}/COPYING-LGPL-2.1 | ||||
LICENSE_FILE_MPL11= ${WRKSRC}/COPYING-MPL-1.1 | LICENSE_FILE_MPL11= ${WRKSRC}/COPYING-MPL-1.1 | ||||
LIB_DEPENDS= libfreetype.so:print/freetype2 \ | LIB_DEPENDS= libfreetype.so:print/freetype2 \ | ||||
libpng.so:graphics/png \ | libpng.so:graphics/png \ | ||||
libfontconfig.so:x11-fonts/fontconfig | libfontconfig.so:x11-fonts/fontconfig | ||||
PORTSCOUT= skipv:5c-1.1,5c-1.2,5c-1.5 | PORTSCOUT= skipv:5c-1.1,5c-1.2,5c-1.5 | ||||
USES= cpe gnome libtool pathfix pkgconfig tar:xz xorg | USES= autoreconf cpe gnome libtool pathfix pkgconfig tar:xz xorg | ||||
Done Inline Actionshm, autoconf still? Here's the patch I use for meson: https://github.com/DankBSD/ports/commit/6c52e9a5296626bb6fca8422e09b07c9cccd8c1e val_packett.cool: hm, autoconf still? Here's the patch I use for meson: https://github. | |||||
Done Inline ActionsI need autoreconf to prevent this error: WARNING: 'aclocal-1.16' is missing on your system. You should only need it if you modified 'acinclude.m4' or 'configure.ac' or m4 files included by 'configure.ac'. The 'aclocal' program is part of the GNU Automake package: <https://www.gnu.org/software/automake> It also requires GNU Autoconf, GNU m4 and Perl in order to run: <https://www.gnu.org/software/autoconf> <https://www.gnu.org/software/m4/> <https://www.perl.org/> But the patch you use for meson does in fact work. I didn't know about this so I just imported the patch into files/patch-* nc: I need autoreconf to prevent this error:
```
WARNING: 'aclocal-1.16' is missing on your… | |||||
CPE_VENDOR= cairographics | CPE_VENDOR= cairographics | ||||
USE_XORG= pixman | USE_XORG= pixman | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ARGS= --with-html-dir=${DOCSDIR} \ | CONFIGURE_ARGS= --with-html-dir=${DOCSDIR} \ | ||||
--disable-directfb \ | --disable-directfb \ | ||||
Show All 32 Lines | |||||
XCB_USE= xorg=xcb | XCB_USE= xorg=xcb | ||||
XCB_CONFIGURE_ENABLE= xcb | XCB_CONFIGURE_ENABLE= xcb | ||||
# this has another option --enable-xlib-xcb=auto but it is buggy. | # this has another option --enable-xlib-xcb=auto but it is buggy. | ||||
MIPS_BUILD_DEPENDS= ${LOCALBASE}/include/atomic_ops.h:devel/libatomic_ops | MIPS_BUILD_DEPENDS= ${LOCALBASE}/include/atomic_ops.h:devel/libatomic_ops | ||||
MIPS_USES= localbase | MIPS_USES= localbase | ||||
MIPS_CONFIGURE_ENV= cairo_cv_atomic_primitives="libatomic-ops" | MIPS_CONFIGURE_ENV= cairo_cv_atomic_primitives="libatomic-ops" | ||||
PLIST_SUB+= LIBVER=2.11600.0 | PLIST_SUB+= LIBVER=2.11704.0 | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e '/strings/s/ - / -a /' \ | @${REINPLACE_CMD} -e '/strings/s/ - / -a /' \ | ||||
-e '/test/s/==/=/g' \ | -e '/test/s/==/=/g' \ | ||||
-e '/LIBS/s/-lrt//' -e '/LIBS/s|-ldld||' \ | -e '/LIBS/s/-lrt//' -e '/LIBS/s|-ldld||' \ | ||||
-e '/LIBS/s|-ldl||' \ | -e '/LIBS/s|-ldl||' \ | ||||
${WRKSRC}/configure | ${WRKSRC}/configure | ||||
@${REINPLACE_CMD} -e 's|-lcairo|-lcairo -lpthread|' \ | @${REINPLACE_CMD} -e 's|-lcairo|-lcairo -lpthread|' \ | ||||
Show All 12 Lines |
I think the cairo update should be done separately to not bloat this one :)