Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id B1ACA84CD8 for ; Tue, 27 Jun 2023 10:46:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id r2dDXHzWCnIo for ; Tue, 27 Jun 2023 10:46:16 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 1015384CCC for ; Tue, 27 Jun 2023 10:46:16 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 0DF7EFA89; Tue, 27 Jun 2023 10:46:16 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1687862776251880" MIME-Version: 1.0 Date: Tue, 27 Jun 2023 10:46:16 +0000 From: "Taylor R Campbell" Subject: CVS commit: pkgsrc/print/poppler To: pkgsrc-changes@NetBSD.org Approved: commit_and_comment Reply-To: riastradh@netbsd.org X-Mailer: log_accum Message-Id: <20230627104616.0DF7EFA89@cvs.NetBSD.org> This is a multi-part message in MIME format. --_----------=_1687862776251880 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: riastradh Date: Tue Jun 27 10:46:15 UTC 2023 Modified Files: pkgsrc/print/poppler: Makefile Log Message: print/poppler: Make this cross-compile. To generate a diff of this commit: cvs rdiff -u -r1.93 -r1.94 pkgsrc/print/poppler/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1687862776251880 Content-Disposition: inline Content-Length: 880 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/print/poppler/Makefile diff -u pkgsrc/print/poppler/Makefile:1.93 pkgsrc/print/poppler/Makefile:1.94 --- pkgsrc/print/poppler/Makefile:1.93 Tue Jun 27 10:46:03 2023 +++ pkgsrc/print/poppler/Makefile Tue Jun 27 10:46:15 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.93 2023/06/27 10:46:03 riastradh Exp $ +# $NetBSD: Makefile,v 1.94 2023/06/27 10:46:15 riastradh Exp $ PKGREVISION= 1 .include "../../print/poppler/Makefile.common" @@ -27,6 +27,11 @@ CMAKE_ARGS+= -DRUN_GPERF_IF_PRESENT=OFF .include "../../mk/bsd.prefs.mk" +.if ${USE_CROSS_COMPILE:tl} == "yes" +ALL_ENV+= PKG_CONFIG_SYSROOT_DIR=${CROSS_DESTDIR:Q} +CMAKE_ARGS+= -DCMAKE_SYSROOT:STRING=${CROSS_DESTDIR:Q} +.endif + # Passing "-ansi" turns "long long" support off on FreeBSD/amd64: .if ${OPSYS} == "FreeBSD" && ${MACHINE_ARCH} == "x86_64" CFLAGS+= -D__LONG_LONG_SUPPORTED= --_----------=_1687862776251880--