Репозитории ALT
Группа :: Мониторинг
Пакет: gkrellm-launch
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: gkrellmlaunch-0.5-alt-install.patch
Скачать
Скачать
diff -Naur gkrellmlaunch-0.5/Makefile gkrellmlaunch-0.5.new/Makefile
--- gkrellmlaunch-0.5/Makefile 2003-03-30 20:11:45 +0300
+++ gkrellmlaunch-0.5.new/Makefile 2003-03-30 20:13:00 +0300
@@ -1,14 +1,20 @@
# Sample Makefile for a GKrellM plugin
-GTK_INCLUDE = `pkg-config gtk+-2.0 --cflags`
-GTK_LIB = `pkg-config gtk+-2.0 --libs`
+GTK_CONFIG ?=pkg-config gtk+-2.0
+PLUGIN_DIR ?=/usr/local/lib/gkrellm2/plugins
+GTK_INCLUDE = `$(GTK_CONFIG) --cflags`
+GTK_LIB = `$(GTK_CONFIG) --libs`
+
+GKRELLM_INCLUDE= -I/usr/local/include
+
+INSTALL=install -c -m 755
FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) -g
#LIBS = $(GTK_LIB) $(IMLIB_LIB) -lefence
LIBS = $(GTK_LIB) $(IMLIB_LIB)
-LFLAGS = -shared -W1
+LFLAGS = -shared
LOCALEDIR := $(DESTDIR)/usr/share/locale
PACKAGE ?= gkrellmlaunch
@@ -32,5 +38,10 @@
(cd po && ${MAKE} clean )
rm -f *.o core *.so* *.bak *~
+install: gkrellmlaunch.so
+ (cd po && ${MAKE} install )
+ $(INSTALL) -d $(PLUGIN_DIR)
+ $(INSTALL) gkrellmlaunch.so $(PLUGIN_DIR)
+
gkrellmlaunch.o: gkrellmlaunch.c