Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
06f249d
commit ff4bc28
Showing
5 changed files
with
74 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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` | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <X11/Xatom.h> | ||
+ #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 <X11/Xatom.h> | ||
+#include "sys/stat.h" | ||
|
||
XImlib2Background::XImlib2Background(AbstractContainer * c, AbstractConfig * con): TimerControl(), | ||
container(c), config(con),delay(0), mode(0), save(NULL), show(NULL), |