2002-04-19 09:19:19 -04:00
|
|
|
$OpenBSD: patch-Makefile,v 1.3 2002/04/19 13:19:19 wilfried Exp $
|
|
|
|
--- Makefile.orig Sat Mar 23 13:51:36 2002
|
|
|
|
+++ Makefile Fri Apr 19 15:02:52 2002
|
|
|
|
@@ -1,36 +1,29 @@
|
2001-04-01 11:17:53 -04:00
|
|
|
-prefix = /usr/local
|
|
|
|
+prefix = ${PREFIX}
|
|
|
|
BINDIR = $(prefix)/bin
|
2001-10-29 05:57:27 -05:00
|
|
|
MANDIR = $(prefix)/man
|
2001-04-01 11:17:53 -04:00
|
|
|
-ETCDIR = $(prefix)/etc
|
|
|
|
+ETCDIR = $(prefix)/share/wmmenu
|
|
|
|
|
2002-04-19 09:19:19 -04:00
|
|
|
-# comment out both lines to get the old, Xpm-only, version
|
2001-04-01 11:17:53 -04:00
|
|
|
-GDKPIXBUF = 1
|
2002-04-19 09:19:19 -04:00
|
|
|
-#GDKPIXBUF2 = 1
|
|
|
|
-
|
2001-04-01 11:17:53 -04:00
|
|
|
-XROOT = /usr/X11R6
|
|
|
|
-DAROOT = /usr/local
|
|
|
|
+XROOT = ${X11BASE}
|
|
|
|
+DAROOT = ${LOCALBASE}
|
|
|
|
|
|
|
|
# If you want to use gdk-pixbuf, pass GDKPIXBUF=1 to make command
|
|
|
|
-ifdef GDKPIXBUF
|
2002-04-19 09:19:19 -04:00
|
|
|
+.if GDKPIXBUF
|
2001-04-01 11:17:53 -04:00
|
|
|
PIXBUF_DEF = -DWITH_GDKPIXBUF
|
|
|
|
-PIXBUF_INC := $(shell gdk-pixbuf-config --cflags)
|
|
|
|
-PIXBUF_LIB := -rdynamic -L$(shell gdk-pixbuf-config --prefix)/lib -lgdk_pixbuf_xlib
|
|
|
|
-endif
|
2002-04-19 09:19:19 -04:00
|
|
|
+PIXBUF_INC != gdk-pixbuf-config --cflags
|
|
|
|
+PIXBUF_LIB = -lgdk_pixbuf_xlib -lgtk -lgdk -lgmodule -lglib -lintl -lXext -lX11 -lm -ltiff -ljpeg -lpng -lz
|
|
|
|
+.endif
|
|
|
|
|
|
|
|
# If you want to use gdk-pixbuf-2.0, pass GDKPIXBUF2=1 to make command
|
|
|
|
-ifdef GDKPIXBUF2
|
|
|
|
+.if GDKPIXBUF2
|
|
|
|
PIXBUF_CFG = /opt/gtk2/bin/pkg-config gdk-pixbuf-xlib-2.0
|
|
|
|
PIXBUF_DEF = -DWITH_GDKPIXBUF
|
|
|
|
PIXBUF_INC := $(shell $(PIXBUF_CFG) --cflags)
|
|
|
|
PIXBUF_LIB := -rdynamic -L$(shell $(PIXBUF_CFG) --variable=prefix)/lib -lgdk_pixbuf_xlib-2.0
|
|
|
|
-endif
|
|
|
|
+.endif
|
|
|
|
|
2001-04-01 11:17:53 -04:00
|
|
|
-CC = gcc #-g
|
|
|
|
-CFLAGS = -pipe $(CPPFLAGS) -O2
|
|
|
|
-CPPFLAGS = -MMD -ansi -pedantic -Wall $(INCDIRS) $(DEFINES)
|
|
|
|
+CFLAGS += $(INCDIRS) $(DEFINES)
|
|
|
|
INCDIRS = -I$(DAROOT)/include -I$(XROOT)/include $(PIXBUF_INC)
|
|
|
|
DEFINES = -DETCDIR='"$(ETCDIR)"' $(PIXBUF_DEF)
|
|
|
|
-LDFLAGS = -s
|
|
|
|
LIBDIRS = -L$(DAROOT)/lib -L$(XROOT)/lib $(PIXBUF_LIB)
|
|
|
|
LDLIBS = -ldockapp -lXpm -lXext -lX11 -lm
|
|
|
|
|
2002-04-19 09:19:19 -04:00
|
|
|
@@ -67,4 +60,3 @@ clean :
|
2001-04-01 11:17:53 -04:00
|
|
|
$(RM) *.o *.d core tags $(PRGS)
|
|
|
|
|
|
|
|
# dependencies -- do not change lines below
|
|
|
|
--include *.d
|