Skip to content

Instantly share code, notes, and snippets.

@romainguinot
Created March 1, 2013 16:57
Show Gist options
  • Save romainguinot/5066053 to your computer and use it in GitHub Desktop.
Save romainguinot/5066053 to your computer and use it in GitHub Desktop.
KWalletCli makefile patch, at least for fedora 18. I also needed to respectively symlink libkdecore.so.5 and libkdeui.so.5 to libkdecore.so and libkdeui.so, in /usr/lib64.
--- GNUmakefile 2011-04-09 23:45:20.000000000 +0200
+++ GNUmakefile 2013-02-28 19:33:22.689990288 +0100
@@ -19,8 +19,8 @@
# of said person’s immediate fault when using the work as intended.
SCRIPTS= kwalletaskpass kwalletcli_getpin pinentry-kwallet
-BINDIR?= /usr/bin
-MANDIR?= /usr/share/man/man
+BINDIR?= /usr/local/bin
+MANDIR?= /usr/local/share/man/man
BINMODE?= 755
MANMODE?= 444
@@ -30,7 +30,7 @@
SRCS= charconv.c main.c
OBJS= charconv.o main.o
-KDE_VER:= 3
+KDE_VER:= 4
ifeq (${KDE_VER},3)
KDE_INCS?= -I/usr/include/qt3 -I/usr/include/kde
SRCS+= kwif3.cc
@@ -38,7 +38,7 @@
LDADD+= -lkwalletclient -lkdecore -lqt-mt
else
ifeq (${KDE_VER},4)
-KDE_INCS?= -I/usr/include/qt4 -I/usr/include/qt4/QtCore
+KDE_INCS?= -I/usr/include/Qt -I/usr/include/QtCore -I/usr/include/kde4
SRCS+= kwif4.cc
OBJS+= kwif4.o
LDADD+= -lkdeui -lkdecore -lQtCore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment