From nobody Fri May 27 09:55:07 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A56631B4B13F; Fri, 27 May 2022 09:55:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L8gCJ2zv4z4Z8H; Fri, 27 May 2022 09:55:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653645308; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=u0bdJoGJQY6ktN1ochN0UxOIusF4Tft4GFjdDTctRTg=; b=heIN3ZJRSBM0K938lAcpX43n1z6NIwgZnEQmKi9WUsHxa8ZGJz81Mi8fmhkjY6ceDug/87 vkW/GM/qmByZPLGAnjmsglsNKa0vdsjhTmPotvnAQvaVli9qj7B73fnEDJSFr77Vrjuqka TXbQamQkqrcPA5EPa54GI99lbsvf9M8Bv5rrV8BMGgb4AylphrK5DVgf4F6LAnGCODCWqt FxTGu6rBFqbL3b2oiBw8UuX8iOwuAjKug/CQpJvoxvIhZnQBi7sTjDGuullbJGFbSO8ZZw hBppSbqcUWTbJ5Xga9zs/hR6lGC47b/oDPjWD+eu8BMWUJt5N8jitpExe42Svg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0514E203AC; Fri, 27 May 2022 09:55:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24R9t7RB069672; Fri, 27 May 2022 09:55:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24R9t7vH069671; Fri, 27 May 2022 09:55:07 GMT (envelope-from git) Date: Fri, 27 May 2022 09:55:07 GMT Message-Id: <202205270955.24R9t7vH069671@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Tijl Coosemans Subject: git: 6fd90bd6606b - main - graphics/cairo: prepare for autoconf 2.71 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tijl X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6fd90bd6606b1a8f648cf807b2f959e037505c66 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653645308; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=u0bdJoGJQY6ktN1ochN0UxOIusF4Tft4GFjdDTctRTg=; b=RE3oRmFRbPewA6YYVyePB11qHPQKUwIaCC64yIWXXM9tdvYjk/8WVt0GW6VXIH+CctpXky Tlj7JfFlljZIs3ZwN3vp8VOuK+L1kM1CQm1/wPJohrAv/gsHesxi6SPSTTVqVBkAsYkzV/ aWat0YcFGRy+tUsPjMyR6ALtnQ7HtUofR/46eMpqP0YP5fDoUT0SjdOSnD0j/CKrEqPm1R ERYw3+8icidqGvJ2bEencwgHpFw5SMW3sFBybVRn0mFIG4FRvfR1+GT9DSNRePfqX8HL4/ kMPLcj05ksvu1TroKncKNbbngZb5SYM2mGBdZV+lmJxDkaXNLDJUgrIq64nweQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653645308; a=rsa-sha256; cv=none; b=d0ACHVbKOEYgd/pxLw9OSFpeDZ4p+hYyTQw97QbcLwRcgWEkPZ4RvwkMzgHzZKldCVyH/4 yrSF7KFAsYxe5pwUQ+krgYdsf2JhP/doqVH97qcbhD51KoEpq7Odq8IEGOuTh9+CqdiocB SNRBbOqnm22U290xaIlmjGx2JCpkNiTjvmGImFkIgIytnYV0sg0uuB1M+7CRGzwTt+NiqR /9lJVprpUPk6QsXzKwRdx9DaLe6hhI9gGDtI0Lcs9ey4ExygX13iS6f+9X0mverO0t0ZjK MRYCIQW6xLa4LcCSyve6k5AryJq2clHloobPWciVSpvgUkg3qRk3eU05tSBSDg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tijl: URL: https://cgit.FreeBSD.org/ports/commit/?id=6fd90bd6606b1a8f648cf807b2f959e037505c66 commit 6fd90bd6606b1a8f648cf807b2f959e037505c66 Author: Tijl Coosemans AuthorDate: 2022-05-04 14:29:21 +0000 Commit: Tijl Coosemans CommitDate: 2022-05-27 09:11:04 +0000 graphics/cairo: prepare for autoconf 2.71 - configure.ac contains GTK_DOC_CHECK and the new autoreconf runs gtkdocize in that case so add a build dependency. - fix post-patch commands that patch files which are regenerated by autoreconf. - remove old patches while here. PR: 263454 --- graphics/cairo/Makefile | 28 +++++++-------------- graphics/cairo/files/patch-Makefile.am | 10 ++++++++ .../cairo/files/patch-build_configure.ac.system | 17 +++++++++++++ graphics/cairo/files/patch-configure.ac | 11 ++++++++ graphics/cairo/files/patch-perf_cairo-perf-micro.c | 10 -------- graphics/cairo/files/patch-src_cairo-gl.h | 29 ---------------------- .../cairo/files/patch-src_cairo-xlib-display.c | 14 ----------- graphics/cairo/files/patch-test_Makefile.am | 14 ----------- .../cairo/files/patch-util_cairo-sphinx_sphinx.c | 11 -------- 9 files changed, 47 insertions(+), 97 deletions(-) diff --git a/graphics/cairo/Makefile b/graphics/cairo/Makefile index 1bc9dc1fe9a1..520140f46d36 100644 --- a/graphics/cairo/Makefile +++ b/graphics/cairo/Makefile @@ -2,6 +2,7 @@ PORTNAME= cairo DISTVERSION= 1.17.4 +PORTREVISION= 1 PORTEPOCH= 3 CATEGORIES= graphics MASTER_SITES= https://cairographics.org/releases/ \ @@ -24,15 +25,14 @@ LIB_DEPENDS= libfreetype.so:print/freetype2 \ PORTSCOUT= skipv:5c-1.1,5c-1.2,5c-1.5 -USES= autoreconf cpe gnome libtool pathfix pkgconfig tar:xz xorg +USES= autoreconf cpe gnome libtool pkgconfig tar:xz xorg CPE_VENDOR= cairographics USE_XORG= pixman USE_LDCONFIG= yes INSTALL_TARGET= install-strip GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-html-dir=${DOCSDIR} \ - --disable-directfb \ +CONFIGURE_ARGS= --disable-directfb \ --disable-gallium \ --disable-wgl \ --enable-tee @@ -44,6 +44,9 @@ OPTIONS_DEFAULT=OPENGL XCB GLIB X11 OPTIONS_SLAVE= ${ARCH:tu} OPTIONS_SUB= yes +DOCS_BUILD_DEPENDS= gtkdocize:textproc/gtk-doc +DOCS_CONFIGURE_ON= --with-html-dir=${DOCSDIR} + X11_USES= xorg X11_USE= xorg=x11,xext,xorgproto,xrender X11_CONFIGURE_ENABLE=xlib @@ -75,22 +78,9 @@ MIPS_CONFIGURE_ENV= cairo_cv_atomic_primitives="libatomic-ops" PLIST_SUB+= LIBVER=2.11704.0 -post-patch: - @${REINPLACE_CMD} -e '/strings/s/ - / -a /' \ - -e '/test/s/==/=/g' \ - -e '/LIBS/s/-lrt//' -e '/LIBS/s|-ldld||' \ - -e '/LIBS/s|-ldl||' \ - ${WRKSRC}/configure - @${REINPLACE_CMD} -e 's|-lcairo|-lcairo -lpthread|' \ - ${WRKSRC}/src/*.pc.in - @${REINPLACE_CMD} -e '/@CAIRO_HAS_PNG_FUNCTIONS_TRUE@.*=/d' \ - ${WRKSRC}/Makefile.in - @${REINPLACE_CMD} -e 's|-ldl||g' \ - ${WRKSRC}/util/*/Makefile.in \ - ${WRKSRC}/boilerplate/Makefile.in - post-patch-DOCS-off: - @${REINPLACE_CMD} -e 's|public||g' \ - ${WRKSRC}/doc/Makefile.in + @${REINPLACE_CMD} '/^SUBDIRS/s/doc//' ${WRKSRC}/Makefile.am + @${REINPLACE_CMD} -e '/^GTK_DOC_CHECK/d' -e '/doc\/.*Makefile/d' \ + ${WRKSRC}/configure.ac .include diff --git a/graphics/cairo/files/patch-Makefile.am b/graphics/cairo/files/patch-Makefile.am new file mode 100644 index 000000000000..ce92235ec815 --- /dev/null +++ b/graphics/cairo/files/patch-Makefile.am @@ -0,0 +1,10 @@ +--- Makefile.am.orig 2020-11-26 23:20:59 UTC ++++ Makefile.am +@@ -20,7 +20,6 @@ if CAIRO_HAS_PNG_FUNCTIONS + SUBDIRS = src doc util + # libpng is required for our test programs + if CAIRO_HAS_PNG_FUNCTIONS +-SUBDIRS += boilerplate test perf + endif + + doc: diff --git a/graphics/cairo/files/patch-build_configure.ac.system b/graphics/cairo/files/patch-build_configure.ac.system new file mode 100644 index 000000000000..fbef9e951e1e --- /dev/null +++ b/graphics/cairo/files/patch-build_configure.ac.system @@ -0,0 +1,17 @@ +--- build/configure.ac.system.orig 2020-11-26 23:20:59 UTC ++++ build/configure.ac.system +@@ -53,11 +53,11 @@ LIBS="$LIBS $LIBM" + AC_CHECK_LIBM + LIBS="$LIBS $LIBM" + +-AC_CHECK_LIB(rt, sched_yield) ++AC_CHECK_LIB(c, sched_yield) + + has_shm_open= +-AC_CHECK_LIB(rt, shm_open, [ +- SHM_LIBS=-lrt ++AC_CHECK_LIB(c, shm_open, [ ++ SHM_LIBS= + has_shm_open=yes + ], [SHM_LIBS=]) + AM_CONDITIONAL(HAVE_SHM, test "x$has_shm_open" = "xyes") diff --git a/graphics/cairo/files/patch-configure.ac b/graphics/cairo/files/patch-configure.ac new file mode 100644 index 000000000000..43fdaa49a871 --- /dev/null +++ b/graphics/cairo/files/patch-configure.ac @@ -0,0 +1,11 @@ +--- configure.ac.orig 2020-11-26 23:20:59 UTC ++++ configure.ac +@@ -842,7 +842,7 @@ save_LIBS="$LIBS" + AM_CONDITIONAL(BUILD_SPHINX, test "x$have_glib" = "xyes" -a "x$have_windows" = "xno" -a "x$have_png" = "xyes") + + save_LIBS="$LIBS" +-AC_CHECK_LIB(rt, shm_open, shm_LIBS="-lrt") ++AC_CHECK_LIB(c, shm_open, shm_LIBS="") + AC_SUBST(shm_LIBS) + LIBS="$save_LIBS" + diff --git a/graphics/cairo/files/patch-perf_cairo-perf-micro.c b/graphics/cairo/files/patch-perf_cairo-perf-micro.c deleted file mode 100644 index 5d5ba85905df..000000000000 --- a/graphics/cairo/files/patch-perf_cairo-perf-micro.c +++ /dev/null @@ -1,10 +0,0 @@ ---- perf/cairo-perf-micro.c.orig 2020-11-26 23:20:59 UTC -+++ perf/cairo-perf-micro.c -@@ -43,6 +43,7 @@ - #endif - - #ifdef HAVE_SCHED_H -+#define _WITH_CPU_SET_T - #include - #endif - diff --git a/graphics/cairo/files/patch-src_cairo-gl.h b/graphics/cairo/files/patch-src_cairo-gl.h deleted file mode 100644 index ab45af9bc00d..000000000000 --- a/graphics/cairo/files/patch-src_cairo-gl.h +++ /dev/null @@ -1,29 +0,0 @@ ---- src/cairo-gl.h.orig 2015-03-10 22:21:07 UTC -+++ src/cairo-gl.h -@@ -92,7 +92,7 @@ cairo_public void - cairo_gl_device_set_thread_aware (cairo_device_t *device, - cairo_bool_t thread_aware); - --#if CAIRO_HAS_GLX_FUNCTIONS -+#if defined(CAIRO_HAS_GLX_FUNCTIONS) - #include - - cairo_public cairo_device_t * -@@ -110,7 +110,7 @@ cairo_gl_surface_create_for_window (cair - int width, int height); - #endif - --#if CAIRO_HAS_WGL_FUNCTIONS -+#if defined(CAIRO_HAS_WGL_FUNCTIONS) - #include - - cairo_public cairo_device_t * -@@ -126,7 +126,7 @@ cairo_gl_surface_create_for_dc (cairo_de - int height); - #endif - --#if CAIRO_HAS_EGL_FUNCTIONS -+#if defined(CAIRO_HAS_EGL_FUNCTIONS) - #include - - cairo_public cairo_device_t * diff --git a/graphics/cairo/files/patch-src_cairo-xlib-display.c b/graphics/cairo/files/patch-src_cairo-xlib-display.c deleted file mode 100644 index 2b31da881c26..000000000000 --- a/graphics/cairo/files/patch-src_cairo-xlib-display.c +++ /dev/null @@ -1,14 +0,0 @@ ---- src/cairo-xlib-display.c.orig 2015-03-10 22:21:07 UTC -+++ src/cairo-xlib-display.c -@@ -263,11 +263,7 @@ _cairo_xlib_device_create (Display *dpy) - /* Prior to Render 0.10, there is no protocol support for gradients and - * we call function stubs instead, which would silently consume the drawing. - */ --#if RENDER_MAJOR == 0 && RENDER_MINOR < 10 - display->buggy_gradients = TRUE; --#else -- display->buggy_gradients = FALSE; --#endif - display->buggy_pad_reflect = FALSE; - display->buggy_repeat = FALSE; - diff --git a/graphics/cairo/files/patch-test_Makefile.am b/graphics/cairo/files/patch-test_Makefile.am deleted file mode 100644 index 92c772be88b9..000000000000 --- a/graphics/cairo/files/patch-test_Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -https://gitlab.freedesktop.org/cairo/cairo/-/issues/101 - ---- test/Makefile.am.orig 2021-05-28 10:52:08 UTC -+++ test/Makefile.am -@@ -18,7 +18,9 @@ endif - endif - - if CAIRO_HAS_GL_SURFACE -+if CAIRO_HAS_GLX_FUNCTIONS - test_sources += $(gl_surface_test_sources) -+endif - endif - - if CAIRO_HAS_EGL_FUNCTIONS diff --git a/graphics/cairo/files/patch-util_cairo-sphinx_sphinx.c b/graphics/cairo/files/patch-util_cairo-sphinx_sphinx.c deleted file mode 100644 index 47825296f3da..000000000000 --- a/graphics/cairo/files/patch-util_cairo-sphinx_sphinx.c +++ /dev/null @@ -1,11 +0,0 @@ ---- util/cairo-sphinx/sphinx.c.orig 2015-03-10 22:21:07 UTC -+++ util/cairo-sphinx/sphinx.c -@@ -1337,7 +1337,7 @@ client_shm (const char *shm_path) - - base = mmap (NULL, DATA_SIZE, - PROT_READ | PROT_WRITE, -- MAP_SHARED | MAP_NORESERVE, -+ MAP_SHARED, - fd, 0); - close (fd); -