From nobody Thu Jan 18 22:07:26 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 4TGH0v3pN7z576rR; Thu, 18 Jan 2024 22:07:27 +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 4TGH0v1QyVz4th2; Thu, 18 Jan 2024 22:07:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705615647; 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=qshG0jJsnTp6PZJrTVtZk9rBs9nzZKrvKtmwN5Ug+a0=; b=AWyZDiHQQvdbJprx+5N+FbrQwHIvl39Vbcn3qti/Prhc/noTx0tczPQq7hJ4GMeQpRUhCG +JvyDxr2r+E2Q6uvzlZOUbx3VGuAfBa2FAOceD3lqTYJ3i/1bUl+DRqXhdsm0kkzPmd3T6 rDSfhhdlnQYdMQmvaaVaNQOnHo1L0Psqkjysb5E7lRYNdPk7uefK4O8ErIeTEond/tU/iT 3YB7SG0DL/F8FHC8yi7PtvyQu3kU1P70REWpoR7px/hMnYDIUrVBwMmXJlHuelnbtu5aMA WNy1Cv986Mlv7p+caxQ+Im7DEBqwb3/Vrp93xTBNTY/h+EbigjyqElzp6MJ5OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705615647; 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=qshG0jJsnTp6PZJrTVtZk9rBs9nzZKrvKtmwN5Ug+a0=; b=vhxsOg8B7/h9EnwZoZzkBatzEzYXqh1jbdkcmP9XxebiL1XwoTMWi8hcAp9lnQiiaH2s5q 4gjt701IrOklbfrfzqw/b4ZDW59J1IR6EPzaRSKUNZj7kRhsDXuH6INxwN+BXn15QISAeZ sc0NhP0DEPZlbRRNrNtelXNJuuu55Yc1gdmIXpGe6syDo3HP8lBkVyltvEZ/YbxdBSVo/T VtcTRmW6wSzc81C74Iczw/zWNtX78+oQ4tc7cptkv8Sgjnq2Z2QWJpRdbNQVZP8c3Gatbh FoH3gHCvG0w4eEQinFy2gIwkj3dmjPusNzEvH0rtH2Jav+2YDXNtTMaj8ZL8HA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705615647; a=rsa-sha256; cv=none; b=R4jM3+sr6OQdiE0BCmYARBaAN7J8wmjBqJbOmdloxjgdTQZEUBflk0a75DrRlf5m+FV+Uj K3urcQZbWktooowZZuMUG3Oknk0LyEldK/5D/F445s9QT0kBoK572L86+wYSzY3X9eI62Y ItXF8s58TKEeWJAzhvKd6+G8OCFJWF9xCZmSP2tBpFFvtvqrWAHJNUfc7XfB1W03uwYc4S wf5foeCaC+kkkdgO9NM9/uOE7D4uFFHecnSON8YTgyS/WqNuYvgSsn2gys2NhNewbRUoK0 rc2hFoHSPRnbR6RjqpnLbGCn4ARppdQKK2OM3VoghhSf2KXW3LPvRllwotvbsA== 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 4TGH0v0HTvzPg0; Thu, 18 Jan 2024 22:07:27 +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 40IM7QWq054916; Thu, 18 Jan 2024 22:07:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40IM7Q1Q054912; Thu, 18 Jan 2024 22:07:26 GMT (envelope-from git) Date: Thu, 18 Jan 2024 22:07:26 GMT Message-Id: <202401182207.40IM7Q1Q054912@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: ff4bc28d1eb9 - main - x11/idesk: 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: ff4bc28d1eb9df3c651af62568bd848fa59c0f67 Auto-Submitted: auto-generated The branch main has been updated by eduardo: URL: https://cgit.FreeBSD.org/ports/commit/?id=ff4bc28d1eb9df3c651af62568bd848fa59c0f67 commit ff4bc28d1eb9df3c651af62568bd848fa59c0f67 Author: Nuno Teixeira AuthorDate: 2024-01-18 22:05:42 +0000 Commit: Nuno Teixeira CommitDate: 2024-01-18 22:05:42 +0000 x11/idesk: Fix build with graphics/imlib2 1.12.1 - Fix build with imlib2 1.12.1 due to imlib2-config drop in 1.7.5 in favor of pkgconfig - Fix SN option build (lib depends) - Add license - Pet portlint, portclippy, portfmt and Q/A check PR: 276370 --- x11/idesk/Makefile | 32 +++++++++++++++---------- x11/idesk/files/patch-configure | 32 +++++++++++++++++++++++++ x11/idesk/files/patch-src_DesktopConfig.cpp | 26 ++++++++------------ x11/idesk/files/patch-src_Timer.cpp | 4 ++-- x11/idesk/files/patch-src_XImlib2Background.cpp | 26 ++++++++------------ 5 files changed, 74 insertions(+), 46 deletions(-) diff --git a/x11/idesk/Makefile b/x11/idesk/Makefile index a4bc85455abd..f8cf5786c06f 100644 --- a/x11/idesk/Makefile +++ b/x11/idesk/Makefile @@ -1,6 +1,6 @@ PORTNAME= idesk PORTVERSION= 0.7.5 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= x11 MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} @@ -8,25 +8,33 @@ MAINTAINER= acm@FreeBSD.org COMMENT= Place launch icons and background directly on your desktop WWW= https://idesk.sourceforge.net -LIB_DEPENDS= libXft.so:x11-fonts/libXft \ - libImlib2.so:graphics/imlib2 +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYING -GNU_CONFIGURE= yes -USES= gmake pkgconfig tar:bzip2 +LIB_DEPENDS= libImlib2.so:graphics/imlib2 \ + libXft.so:x11-fonts/libXft -OPTIONS_DEFINE= SHAPE SN DOCS -SHAPE_DESC= Support of XShape extension -SN_DESC= Startup notification support -OPTIONS_DEFAULT= SHAPE +USES= gmake pkgconfig tar:bzip2 xorg +USE_XORG= ice sm x11 + +GNU_CONFIGURE= yes -CXXFLAGS+= `imlib2-config --cflags` `freetype-config --cflags` -MAKE_ARGS= cc="${CXX}" cflags="${CXXFLAGS}" +MAKE_ARGS= cc="${CXX}" \ + cflags="${CXXFLAGS}" SUB_FILES= pkg-message PLIST_FILES= bin/${PORTNAME} PORTDOCS= README +OPTIONS_DEFINE= DOCS SHAPE SN +OPTIONS_DEFAULT= SHAPE + +SHAPE_DESC= Support of XShape extension +SN_DESC= Startup notification support + +SHAPE_USE= XORG=xext SHAPE_CONFIGURE_ENABLE= shape -SN_LIB_DEPENDS= libstartup-notification.so:x11/startup-notification + +SN_LIB_DEPENDS= libstartup-notification-1.so:x11/startup-notification SN_CONFIGURE_ON= --enable-libsn do-install: diff --git a/x11/idesk/files/patch-configure b/x11/idesk/files/patch-configure new file mode 100644 index 000000000000..ec9459eb870d --- /dev/null +++ b/x11/idesk/files/patch-configure @@ -0,0 +1,32 @@ +work around removed imlib2-config + +Index: configure +--- configure.orig 2005-11-10 23:31:38 UTC ++++ configure +@@ -7030,13 +7030,8 @@ echo $ECHO_N "checking for imlib2... $ECHO_C" >&6 + echo "$as_me:$LINENO: checking for imlib2" >&5 + echo $ECHO_N "checking for imlib2... $ECHO_C" >&6 + no_imlib2="" +- if test "$IMLIB2_CONFIG" = "no" ; then +- no_imlib2=yes +- else +- IMLIB2_CFLAGS="`$IMLIB2_CONFIG $imlib2_config_args --cflags`" +- IMLIB2_LIBS="`$IMLIB2_CONFIG $imlib2_config_args --libs`" +- +- fi ++ IMLIB2_CFLAGS="`pkg-config --cflags imlib2`" ++ IMLIB2_LIBS="`pkg-config --libs imlib2`" + if test "x$no_imlib2" = x ; then + echo "$as_me:$LINENO: result: yes" >&5 + echo "${ECHO_T}yes" >&6 +@@ -7067,8 +7062,8 @@ echo "$as_me: error: Cannot find imlib2: Is imlib2-con + + + +-IMLIB_LIBS=`imlib2-config --libs` +-IMLIB_CFLAGS=`imlib2-config --cflags` ++IMLIB_LIBS=`pkg-config --libs imlib2` ++IMLIB_CFLAGS=`pkg-config --cflags imlib2` + + + diff --git a/x11/idesk/files/patch-src_DesktopConfig.cpp b/x11/idesk/files/patch-src_DesktopConfig.cpp index 9667990a003a..c87db678e7e3 100644 --- a/x11/idesk/files/patch-src_DesktopConfig.cpp +++ b/x11/idesk/files/patch-src_DesktopConfig.cpp @@ -1,16 +1,10 @@ -*** src/DesktopConfig.cpp.orig Mon Sep 5 21:03:05 2005 ---- src/DesktopConfig.cpp Mon Sep 12 22:38:55 2005 -*************** -*** 22,31 **** ---- 22,32 ---- - * (See the included file COPYING / BSD ) - */ - - #include "DesktopConfig.h" - #include "Util.h" -+ #include "sys/stat.h" - - //the initilizer list just sets the program defaults for non-necessary options - DesktopConfig::DesktopConfig(Database db, string ideskrcFile) : - AbstractConfig(ideskrcFile) - { +--- src/DesktopConfig.cpp.orig 2005-11-10 23:07:58 UTC ++++ src/DesktopConfig.cpp +@@ -24,6 +24,7 @@ + + #include "DesktopConfig.h" + #include "Util.h" ++#include "sys/stat.h" + + //the initilizer list just sets the program defaults for non-necessary options + DesktopConfig::DesktopConfig(Database db, string ideskrcFile) : diff --git a/x11/idesk/files/patch-src_Timer.cpp b/x11/idesk/files/patch-src_Timer.cpp index c6418f440437..f7b8f5bde910 100644 --- a/x11/idesk/files/patch-src_Timer.cpp +++ b/x11/idesk/files/patch-src_Timer.cpp @@ -1,5 +1,5 @@ ---- src/Timer.cpp.orig Mon Aug 15 07:26:39 2005 -+++ src/Timer.cpp Tue Sep 13 23:14:32 2005 +--- src/Timer.cpp.orig 2005-08-15 05:26:39 UTC ++++ src/Timer.cpp @@ -26,6 +26,7 @@ #include "Database.h" #include diff --git a/x11/idesk/files/patch-src_XImlib2Background.cpp b/x11/idesk/files/patch-src_XImlib2Background.cpp index f55c49d10aa4..d7dd9162b9af 100644 --- a/x11/idesk/files/patch-src_XImlib2Background.cpp +++ b/x11/idesk/files/patch-src_XImlib2Background.cpp @@ -1,16 +1,10 @@ -*** src/XImlib2Background.cpp.orig Tue Sep 6 01:03:34 2005 ---- src/XImlib2Background.cpp Mon Sep 12 22:39:11 2005 -*************** -*** 23,32 **** ---- 23,33 ---- - */ - - #include "Database.h" - #include "XImlib2Background.h" - #include -+ #include "sys/stat.h" - - XImlib2Background::XImlib2Background(AbstractContainer * c, AbstractConfig * con): TimerControl(), - container(c), config(con),delay(0), mode(0), save(NULL), show(NULL), - srctime(0), images(""), directory(""), OneShot(false) - { +--- src/XImlib2Background.cpp.orig 2005-11-10 23:08:55 UTC ++++ src/XImlib2Background.cpp +@@ -26,6 +26,7 @@ + #include "Database.h" + #include "XImlib2Background.h" + #include ++#include "sys/stat.h" + + XImlib2Background::XImlib2Background(AbstractContainer * c, AbstractConfig * con): TimerControl(), + container(c), config(con),delay(0), mode(0), save(NULL), show(NULL),