Depend on libDesktop instead of Gtk+ 2 or 3
This will simplify configuration greatly.
This commit is contained in:
parent
7d33ccf1fb
commit
b0afc90b95
|
@ -6,6 +6,6 @@ libdir=${exec_prefix}/lib
|
|||
Name: Panel
|
||||
Description: DeforaOS Desktop Panel applets
|
||||
Version: @VERSION@
|
||||
Requires: gtk+-2.0
|
||||
Requires: libDesktop
|
||||
Cflags: -I${includedir}
|
||||
Libs: -Wl,-rpath-link,${libdir} -Wl,-rpath,${libdir} -L${libdir} -lPanel
|
||||
|
|
|
@ -3,12 +3,8 @@ cppflags_force=-I ../../include
|
|||
#cppflags=-D EMBEDDED
|
||||
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector
|
||||
ldflags=
|
||||
#for Gtk+ 2
|
||||
#cflags_force=`pkg-config --cflags libSystem gtk+-2.0` -fPIC
|
||||
#ldflags_force=`pkg-config --libs libSystem gtk+-2.0` -lPanel -L$(OBJDIR)..
|
||||
#for Gtk+ 3
|
||||
cflags_force=-W `pkg-config --cflags libSystem gtk+-3.0` -fPIC
|
||||
ldflags_force=`pkg-config --libs libSystem gtk+-3.0` -lPanel -L$(OBJDIR)..
|
||||
cflags_force=-W `pkg-config --cflags libDesktop` -fPIC
|
||||
ldflags_force=`pkg-config --libs libDesktop` -lPanel -L$(OBJDIR)..
|
||||
dist=Makefile,tasks.atoms
|
||||
|
||||
[battery]
|
||||
|
|
|
@ -45,10 +45,6 @@ depends=../include/Panel.h,panel.h,../config.h
|
|||
type=binary
|
||||
sources=run.c
|
||||
cppflags=-D PREFIX=\"$(PREFIX)\"
|
||||
#for Gtk+ 2
|
||||
#cflags=`pkg-config --cflags libSystem gtk+-2.0` -fPIE
|
||||
#ldflags=`pkg-config --libs libSystem gtk+-2.0` -lintl -pie
|
||||
#for Gtk+ 3
|
||||
cflags=`pkg-config --cflags libSystem gtk+-3.0` -fPIE
|
||||
ldflags=`pkg-config --libs libSystem gtk+-3.0` -lintl -pie
|
||||
cflags=`pkg-config --cflags libDesktop` -fPIE
|
||||
ldflags=`pkg-config --libs libDesktop` -lintl -pie
|
||||
install=$(BINDIR)
|
||||
|
|
Loading…
Reference in New Issue
Block a user