openbsd-ports/x11/st/patches/patch-config_mk
bentley bcd958a614 Update to st-0.4.
ok jung@ (MAINTAINER)
2013-04-19 19:54:34 +00:00

40 lines
1.3 KiB
Plaintext

$OpenBSD: patch-config_mk,v 1.4 2013/04/19 19:54:34 bentley Exp $
--- config.mk.orig Fri Mar 29 12:13:26 2013
+++ config.mk Thu Apr 4 22:18:33 2013
@@ -4,24 +4,24 @@ VERSION = 0.4
# Customize below to fit your system
# paths
-PREFIX = /usr/local
-MANPREFIX = ${PREFIX}/share/man
+PREFIX ?= /usr/local
+MANPREFIX = ${PREFIX}/man
-X11INC = /usr/X11R6/include
-X11LIB = /usr/X11R6/lib
+X11INC = ${X11BASE}/include
+X11LIB = ${X11BASE}/lib
# includes and libs
INCS = -I. -I/usr/include -I${X11INC} \
- $(shell pkg-config --cflags fontconfig) \
- $(shell pkg-config --cflags freetype2)
+ `pkg-config --cflags fontconfig` \
+ `pkg-config --cflags freetype2`
LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lutil -lXext -lXft \
- $(shell pkg-config --libs fontconfig) \
- $(shell pkg-config --libs freetype2)
+ `pkg-config --libs fontconfig` \
+ `pkg-config --libs freetype2`
# flags
-CPPFLAGS = -DVERSION=\"${VERSION}\" -D_BSD_SOURCE -D_XOPEN_SOURCE=600
-CFLAGS += -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os ${INCS} ${CPPFLAGS}
-LDFLAGS += -g ${LIBS}
+CPPFLAGS += -DVERSION=\"${VERSION}\" -D_BSD_SOURCE -D_XOPEN_SOURCE=600
+CFLAGS += -std=c99 -pedantic -Wall -Wvariadic-macros ${INCS} ${CPPFLAGS}
+LDFLAGS += ${LIBS}
# compiler and linker
CC ?= cc