* [gentoo-commits] gentoo-x86 commit in x11-misc/fspanel/files: fspanel-0.8_beta1-configure.patch
@ 2008-12-07 13:04 Santiago M. Mola (coldwind)
0 siblings, 0 replies; 2+ messages in thread
From: Santiago M. Mola (coldwind) @ 2008-12-07 13:04 UTC (permalink / raw
To: gentoo-commits
coldwind 08/12/07 13:04:53
Added: fspanel-0.8_beta1-configure.patch
Log:
Fix --as-needed (bug #210624, thanks to Christian Ruppert), X11 path, don't strip binary, use pkg-config for Xft, and avoid automagic deps on Xpm and Xft.
(Portage version: 2.2_rc17/cvs/Linux 2.6.27-gentoo-r2 x86_64)
Revision Changes Path
1.1 x11-misc/fspanel/files/fspanel-0.8_beta1-configure.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/fspanel/files/fspanel-0.8_beta1-configure.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/fspanel/files/fspanel-0.8_beta1-configure.patch?rev=1.1&content-type=text/plain
Index: fspanel-0.8_beta1-configure.patch
===================================================================
Source: Christian Ruppert <spooky85@gmail.com>
and Santiago M. Mola <coldwind@gentoo.org>
Upstream: yes
Reason: Fix --as-needed (Gentoo bug #210624), X11 path,
don't strip binary, use pkg-config for Xft, and
avoid automagic deps on Xpm and Xft.
--- a/configure 2008-12-07 13:15:16.000000000 +0100
+++ b/configure 2008-12-07 13:46:28.000000000 +0100
@@ -8,7 +8,7 @@
LDFLAGS="$LDFLAGS -L/usr/X/lib"
CFLAGS="$CFLAGS I/usr/include/X11"
else
- X11_PATH="/usr/X11R6"
+ X11_PATH="/usr"
fi
if test -e "$X11_PATH"; then
echo $X11_PATH
@@ -20,7 +20,8 @@
fi
CFLAGS="$CFLAGS -I$X11_PATH/include"
-LDFLAGS="$LDFLAGS -L$X11_PATH/lib -lX11"
+LDFLAGS="$LDFLAGS -L$X11_PATH/lib"
+LIBS="-lX11"
if test "_$CC" = "_"; then
CC="cc"
@@ -37,26 +38,44 @@
exit 1
fi
-echo -n "checking for X11/xpm.h... "
-xpm=no
-if test -e "$X11_PATH/include/X11/xpm.h"; then
- echo yes
- LDFLAGS="$LDFLAGS -lXpm"
- CFLAGS="$CFLAGS -DHAVE_XPM"
- xpm=yes
+if test "x$USE_XPM" = "xno"; then
+ xpm=no
else
- echo no
-fi
-
-echo -n "checking for X11/Xft/Xft.h... "
-xft=no
-if test -e "$X11_PATH/include/X11/Xft/Xft.h"; then
- echo yes
- LDFLAGS="$LDFLAGS -lXft"
- CFLAGS="$CFLAGS -DXFT"
- xft=yes
-else
- echo no
+ echo -n "checking for X11/xpm.h... "
+ xpm=no
+ if test -e "$X11_PATH/include/X11/xpm.h"; then
+ echo yes
+ LIBS="${LIBS} -lXpm"
+ CFLAGS="$CFLAGS -DHAVE_XPM"
+ xpm=yes
+ else
+ echo no
+ if test "x$USE_XPM" = "xyes"; then
+ echo
+ echo Cannot find xpm header\, aborting.
+ exit 1
+ fi
+ fi
+fi
+
+if test "x$USE_XFT" = "xno"; then
+ xft=no
+else
+ echo -n "checking for X11/Xft/Xft.h... "
+ xft=no
+ if pkg-config xft; then
+ echo yes
+ LIBS="${LIBS} `pkg-config --libs xft`"
+ CFLAGS="$CFLAGS -DXFT `pkg-config --cflags xft`"
+ xft=yes
+ else
+ echo no
+ if test "x$USE_XFT" = "xyes"; then
+ echo
+ echo Cannot find xft header\, aborting.
+ exit 1
+ fi
+ fi
fi
echo -n "checking for Linux... "
@@ -72,16 +91,15 @@
echo CC="$CC" > Makefile
echo CFLAGS="$CFLAGS" >> Makefile
echo LDFLAGS="$LDFLAGS" >> Makefile
+echo LIBS="${LIBS}" >> Makefile
echo PROGNAME="$PROGNAME" >> Makefile
+echo BINDIR="${BINDIR}" >> Makefile
echo >> Makefile
echo $\(PROGNAME\): Makefile fspanel.c fspanel.h icon.xpm >> Makefile
-echo \ $\(CC\) $\(CFLAGS\) $\(LDFLAGS\) fspanel.c -o $\(PROGNAME\) >> Makefile
-echo \ @ls -l $\(PROGNAME\) >> Makefile
-echo \ strip $\(PROGNAME\) >> Makefile
-echo \ @ls -l $\(PROGNAME\) >> Makefile
+echo \ $\(CC\) $\(CFLAGS\) $\(LDFLAGS\) fspanel.c -o $\(PROGNAME\) $\(LIBS\) >> Makefile
echo >> Makefile
echo install: >> Makefile
-echo \ install $\(PROGNAME\) /usr/local/bin >> Makefile
+echo \ install -D $\(PROGNAME\) $\(BINDIR\)/$\(PROGNAME\) >> Makefile
echo done
echo
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in x11-misc/fspanel/files: fspanel-0.8_beta1-configure.patch
@ 2011-06-08 7:19 Kacper Kowalik (xarthisius)
0 siblings, 0 replies; 2+ messages in thread
From: Kacper Kowalik (xarthisius) @ 2011-06-08 7:19 UTC (permalink / raw
To: gentoo-commits
xarthisius 11/06/08 07:19:19
Modified: fspanel-0.8_beta1-configure.patch
Log:
Fix underlinking wrt #368927 by Diego Elio Pettenò <flameeyes@gentoo.org>
(Portage version: 2.2.0_alpha37/cvs/Linux x86_64)
Revision Changes Path
1.2 x11-misc/fspanel/files/fspanel-0.8_beta1-configure.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/fspanel/files/fspanel-0.8_beta1-configure.patch?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/fspanel/files/fspanel-0.8_beta1-configure.patch?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/fspanel/files/fspanel-0.8_beta1-configure.patch?r1=1.1&r2=1.2
Index: fspanel-0.8_beta1-configure.patch
===================================================================
RCS file: /var/cvsroot/gentoo-x86/x11-misc/fspanel/files/fspanel-0.8_beta1-configure.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- fspanel-0.8_beta1-configure.patch 7 Dec 2008 13:04:53 -0000 1.1
+++ fspanel-0.8_beta1-configure.patch 8 Jun 2011 07:19:19 -0000 1.2
@@ -22,7 +22,7 @@
CFLAGS="$CFLAGS -I$X11_PATH/include"
-LDFLAGS="$LDFLAGS -L$X11_PATH/lib -lX11"
+LDFLAGS="$LDFLAGS -L$X11_PATH/lib"
-+LIBS="-lX11"
++LIBS="-lX11 -lc"
if test "_$CC" = "_"; then
CC="cc"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-08 7:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-08 7:19 [gentoo-commits] gentoo-x86 commit in x11-misc/fspanel/files: fspanel-0.8_beta1-configure.patch Kacper Kowalik (xarthisius)
-- strict thread matches above, loose matches on Subject: below --
2008-12-07 13:04 Santiago M. Mola (coldwind)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox