From nobody Thu Jan 18 21:56:47 2024 X-Original-To: dev-commits-ports-main@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 4TGGmd2Ltkz575FZ; Thu, 18 Jan 2024 21:56:49 +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 4TGGmc1DP9z4rDN; Thu, 18 Jan 2024 21:56:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705615008; 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=df9EknXEF0rE82FWBF5KelMPVP+tIJP2SpIVW12mqsM=; b=XL3l+wGiiA7gDuwhltRs3V4N9MeR8O2ApRY6oBKeyh1X/jGznsoH3dWPg/b2ePDts6UEob fcju5KkeYZdQPrMlLw4rSLrdiBc+wGDUFzC5opdCfkq3l9z3bE5dMG3UWYksgmf0xMbWdK nt3ke9Y+t3LDzblQ1BT/vwCt1vnmoA8t94W2aKQJaFv6l0U/PXfW9u46p7mtNGZk27DXcO 29GKr9boJ2WaqyL8Dc2bpKE8op6JYMxUfoPaLZ3SRMZDL2nBLigSAfdex2E3OELxM9kbU+ ORdlRwBE+RU8QAsPuE/DNc98xSL3sVn63wUJS799/B9DMAkdh6aXvu5n6gZmQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705615008; 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=df9EknXEF0rE82FWBF5KelMPVP+tIJP2SpIVW12mqsM=; b=Kx5QBi+jNPrCReY67OpJXaPJhwR4RdMZXzMXw22Ai6dHmTP4zKcY59OWx0zO9U78QC2mjk g4kNCkMsd5mvSt2vGm6PYPeOYE/0oQTYakmGFJKhqd9N2wmW6eI7LQDH9MVE6Y/TbZSjjJ 6v3eOBJhPxA/ccZN2NZD9UGA6EvQx3K4Gm/4qVn/9qEvXXoD/CtXroF/GFG75Whn9GZhSm JFtfPFvz4pPiWTsVOX7xb3yamacagwj67MUpeQqtegI7f9/1G2CJWfuW/d53iv5eMsoIgs PSCaJQluTuF+pzkOiC0FeJ2co4unMVMg2WJonOkXqpYtpkcWpO60HnZqyZTBDA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705615008; a=rsa-sha256; cv=none; b=EOEr507OA7I8mSBG1IrFiZ2AzpFmBFTHrsDwUSIMln26D1x568DraqCBgSIpfkKCApzGff EBf35hOFIzKgjKdkTMIHIWfK/HA4vxrqh5LOGDQoXRRrd46LCwlVXCGVskOp/k4IvxRMgl YQLHXxIRyXI50EKCCtolctUs9i1ycsA4hMnXGr2lJ/i5r+oCQnmKPoAlsynZ+5g1RNFYYy jwvAyFJ2h3uB9m0K2+Vle3idpZdWAgf39AgjVsA9TfxyReDTBAU5ojbF8ylcYXl9clvP5l gxwH2GC4nKLybHWAKMgzso0RVwnHqIkFE9Di4zS87yv+KXyX0qL50mdrvqODhw== 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 4TGGmc0JRlzPNT; Thu, 18 Jan 2024 21:56:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40ILulSo037559; Thu, 18 Jan 2024 21:56:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40ILul7m037556; Thu, 18 Jan 2024 21:56:47 GMT (envelope-from git) Date: Thu, 18 Jan 2024 21:56:47 GMT Message-Id: <202401182156.40ILul7m037556@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nuno Teixeira Subject: git: 06f249d2bec5 - main - graphics/zphoto: Fix build with graphics/imlib2 1.12.1 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eduardo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 06f249d2bec56fc85db36002d2c5fe243af86264 Auto-Submitted: auto-generated The branch main has been updated by eduardo: URL: https://cgit.FreeBSD.org/ports/commit/?id=06f249d2bec56fc85db36002d2c5fe243af86264 commit 06f249d2bec56fc85db36002d2c5fe243af86264 Author: Nuno Teixeira AuthorDate: 2024-01-18 21:55:03 +0000 Commit: Nuno Teixeira CommitDate: 2024-01-18 21:55:03 +0000 graphics/zphoto: Fix build with graphics/imlib2 1.12.1 - Add license - Pet portlint, portclippy, portfmt and Q/A check Add minimal support to `pkg-config imlib2`; imlib2-config has been dropped since imlib2-1.7.5. PR: 276430 --- graphics/zphoto/Makefile | 24 +++++++++++++--------- graphics/zphoto/files/patch-configure | 22 +++++++++++++++++--- graphics/zphoto/files/patch-exif.c | 22 ++++++++++---------- ....in => patch-templates_default_all_Makefile.in} | 6 +++--- graphics/zphoto/files/patch-util.c | 6 +++--- 5 files changed, 50 insertions(+), 30 deletions(-) diff --git a/graphics/zphoto/Makefile b/graphics/zphoto/Makefile index 3415c5d9ce95..54e804ec8b06 100644 --- a/graphics/zphoto/Makefile +++ b/graphics/zphoto/Makefile @@ -1,6 +1,6 @@ PORTNAME= zphoto PORTVERSION= 1.2 -PORTREVISION= 14 +PORTREVISION= 15 CATEGORIES= graphics www MASTER_SITES= http://namazu.org/~satoru/zphoto/ @@ -8,26 +8,30 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Zooming photo album generator WWW= http://namazu.org/~satoru/zphoto/ -LIB_DEPENDS= libming.so:graphics/ming \ - libpopt.so:devel/popt \ - libImlib2.so:graphics/imlib2 +LICENSE= LGPL21 +LICENSE_FILE= ${WRKSRC}/COPYING -USES= alias gmake localbase perl5 +LIB_DEPENDS= libImlib2.so:graphics/imlib2 \ + libming.so:graphics/ming \ + libpopt.so:devel/popt + +USES= alias gmake localbase perl5 pkgconfig USE_PERL5= build GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-avifile -OPTIONS_DEFINE= ZIP NLS +OPTIONS_DEFINE= NLS ZIP OPTIONS_DEFAULT= ZIP OPTIONS_SUB= yes -ZIP_DESC= Enable zip support -ZIP_RUN_DEPENDS= zip:archivers/zip -ZIP_CONFIGURE_OFF= --disable-zip +ZIP_DESC= Enable zip support -NLS_USES= gettext +NLS_USES= gettext-tools NLS_CONFIGURE_ENABLE= nls +ZIP_RUN_DEPENDS= zip:archivers/zip +ZIP_CONFIGURE_OFF= --disable-zip + post-patch: @${REINPLACE_CMD} -e 's|||g' ${WRKSRC}/*.c ${WRKSRC}/configure diff --git a/graphics/zphoto/files/patch-configure b/graphics/zphoto/files/patch-configure index 81857a226640..59d2b3606c5f 100644 --- a/graphics/zphoto/files/patch-configure +++ b/graphics/zphoto/files/patch-configure @@ -1,6 +1,9 @@ ---- configure.orig Wed May 5 16:27:51 2004 -+++ configure Wed May 5 16:44:18 2004 -@@ -4131,7 +4131,7 @@ +Add minimal support to `pkg-config imlib2`; imlib2-config has been +dropped since imlib2-1.7.5. + +--- configure.orig 2004-07-20 16:49:27 UTC ++++ configure +@@ -4494,7 +4494,7 @@ EOF SWFMovie_save(movie, "foo"); /* 0.2a API */ } EOF @@ -9,3 +12,16 @@ cat >>confdefs.h <<_ACEOF #define MING_0_2a 1 +@@ -4867,6 +4867,12 @@ IMLIB2CONFIG=$ac_cv_path_IMLIB2CONFIG + esac + fi + IMLIB2CONFIG=$ac_cv_path_IMLIB2CONFIG ++ ++if test -z "$IMLIB2CONFIG"; then ++ if pkg-config imlib2; then ++ IMLIB2CONFIG="pkg-config imlib2" ++ fi ++fi + + if test -n "$IMLIB2CONFIG"; then + echo "$as_me:$LINENO: result: $IMLIB2CONFIG" >&5 diff --git a/graphics/zphoto/files/patch-exif.c b/graphics/zphoto/files/patch-exif.c index 6963c63ed522..6042b6be5303 100644 --- a/graphics/zphoto/files/patch-exif.c +++ b/graphics/zphoto/files/patch-exif.c @@ -1,6 +1,6 @@ ---- exif.c.orig 2004-06-07 18:58:04.000000000 +0900 -+++ exif.c 2010-12-03 21:25:38.562390923 +0900 -@@ -33,11 +33,11 @@ +--- exif.c.orig 2004-06-07 09:58:04 UTC ++++ exif.c +@@ -33,11 +33,11 @@ enum { HEADER_OFFSET2 = 8 }; @@ -17,7 +17,7 @@ #define SWAP_ENDIAN_SHORT(val) ((unsigned short) ( \ (((unsigned short) (val) & (unsigned short) 0x00ff) << 8) | \ -@@ -46,14 +46,14 @@ +@@ -46,14 +46,14 @@ is_little_endian () static int is_little_endian () { @@ -35,7 +35,7 @@ if (memcmp(p, x, 4) == 0) { retval = 1; } else { -@@ -63,8 +63,8 @@ +@@ -63,8 +63,8 @@ is_little_endian () return retval; } @@ -46,7 +46,7 @@ { if (is_little_endian()) { return x; -@@ -83,8 +83,8 @@ +@@ -83,8 +83,8 @@ ushort_from_be (unsigned short x) } } @@ -57,7 +57,7 @@ { if (is_little_endian()) { return SWAP_ENDIAN_LONG(x); -@@ -115,7 +115,7 @@ +@@ -115,7 +115,7 @@ static int static int @@ -66,7 +66,7 @@ { int x = fseek(stream, offset, whence); if (x != 0) -@@ -142,16 +142,16 @@ +@@ -142,16 +142,16 @@ typedef void (*TraverseFunc) (FILE *fp, typedef void (*TraverseFunc) (FILE *fp, unsigned short tag, unsigned short type, @@ -87,7 +87,7 @@ void *data) { if (tag == 0x8769) { -@@ -163,12 +163,12 @@ +@@ -163,12 +163,12 @@ get_time (FILE *fp, get_time (FILE *fp, unsigned short tag, unsigned short type, @@ -103,7 +103,7 @@ char buf[BUFSIZ]; struct tm t; -@@ -204,16 +204,16 @@ +@@ -204,16 +204,16 @@ read_ushort (FILE *fp, int le_exif_p) return ushort_from_be(x); } @@ -126,7 +126,7 @@ } static int -@@ -225,12 +225,12 @@ +@@ -225,12 +225,12 @@ read_directory (FILE *fp, TraverseFunc func, void *dat n = read_ushort(fp, le_exif_p); for (i = 0; i < n; i++) { unsigned short tag, type; diff --git a/graphics/zphoto/files/patch-Makefile.in b/graphics/zphoto/files/patch-templates_default_all_Makefile.in similarity index 63% rename from graphics/zphoto/files/patch-Makefile.in rename to graphics/zphoto/files/patch-templates_default_all_Makefile.in index 2b920bc11c4f..0edc504cbfa3 100644 --- a/graphics/zphoto/files/patch-Makefile.in +++ b/graphics/zphoto/files/patch-templates_default_all_Makefile.in @@ -1,6 +1,6 @@ ---- templates/default/all/Makefile.in.org 2014-06-21 19:51:31.487457236 +0900 -+++ templates/default/all/Makefile.in 2014-06-21 19:51:46.935435015 +0900 -@@ -369,9 +369,9 @@ +--- templates/default/all/Makefile.in.orig 2004-07-20 16:49:24 UTC ++++ templates/default/all/Makefile.in +@@ -369,9 +369,9 @@ install-data-local: | sh install-data-local: diff --git a/graphics/zphoto/files/patch-util.c b/graphics/zphoto/files/patch-util.c index 9a3ea02f4a9d..f35f88a9c757 100644 --- a/graphics/zphoto/files/patch-util.c +++ b/graphics/zphoto/files/patch-util.c @@ -1,6 +1,6 @@ ---- util.c.orig 2010-12-04 00:36:16.000000000 +0900 -+++ util.c 2010-12-04 00:36:52.000000000 +0900 -@@ -389,7 +389,7 @@ +--- util.c.orig 2004-07-20 16:48:11 UTC ++++ util.c +@@ -389,7 +389,7 @@ zphoto_get_image_suffixes (void) zphoto_get_image_suffixes (void) { static char *empty[] = { NULL };