d07a08d79e
WANTLIB while here.
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
$OpenBSD: patch-config_mk,v 1.3 2010/06/07 07:24:00 landry Exp $
|
|
use TRUEPREFIX instead of patching Makefile to remove DESTDIR
|
|
--- config.mk.orig Sun May 30 22:05:25 2010
|
|
+++ config.mk Mon Jun 7 09:20:47 2010
|
|
@@ -4,20 +4,20 @@ VERSION = 0.4
|
|
# Customize below to fit your system
|
|
|
|
# paths
|
|
-PREFIX = /usr/local
|
|
-MANPREFIX = ${PREFIX}/share/man
|
|
+PREFIX = ${TRUEPREFIX}
|
|
+MANPREFIX = ${PREFIX}/man
|
|
|
|
-GTKINC=$(shell pkg-config --cflags gtk+-2.0 webkit-1.0)
|
|
-GTKLIB=$(shell pkg-config --libs gtk+-2.0 webkit-1.0)
|
|
+GTKINC!= pkg-config --cflags gtk+-2.0 webkit-1.0
|
|
+GTKLIB!= pkg-config --libs gtk+-2.0 webkit-1.0
|
|
|
|
|
|
# includes and libs
|
|
-INCS = -I. -I/usr/include ${GTKINC}
|
|
-LIBS = -L/usr/lib -lc ${GTKLIB} -lgthread-2.0
|
|
+INCS = ${GTKINC}
|
|
+LIBS = -pthread ${GTKLIB}
|
|
|
|
# flags
|
|
CPPFLAGS = -DVERSION=\"${VERSION}\"
|
|
-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
|
|
+CFLAGS += -std=c99 ${INCS} ${CPPFLAGS}
|
|
LDFLAGS = -g ${LIBS}
|
|
|
|
# Solaris
|
|
@@ -25,4 +25,4 @@ LDFLAGS = -g ${LIBS}
|
|
#LDFLAGS = ${LIBS}
|
|
|
|
# compiler and linker
|
|
-CC = cc
|
|
+#CC = cc
|