openbsd-ports/x11/slock/patches/patch-config_mk
wcmaier 48c639f70b Update to 0.8.
Diff originally from Gleydson Soares <gsoares at gmail dot com>, who
also takes maintainership. Thanks! Tweaks from kili@ (the Makefile
nazi) and myself.

ok kili@
2008-06-02 20:09:53 +00:00

44 lines
1.1 KiB
Plaintext

$OpenBSD: patch-config_mk,v 1.3 2008/06/02 20:09:53 wcmaier Exp $
--- config.mk.orig Thu Mar 13 11:58:47 2008
+++ config.mk Mon Jun 2 14:48:38 2008
@@ -4,18 +4,18 @@ VERSION = 0.8
# Customize below to fit your system
# paths
-PREFIX = /usr/local
+#PREFIX = /usr/local
-X11INC = /usr/X11R6/include
-X11LIB = /usr/X11R6/lib
+X11INC = ${X11BASE}/include
+X11LIB = ${X11BASE}/lib
# includes and libs
-INCS = -I. -I/usr/include -I${X11INC}
-LIBS = -L/usr/lib -lc -lcrypt -L${X11LIB} -lX11 -lXext
+INCS = -I${X11INC}
+LIBS = -L${X11LIB} -lX11 -lXext
# flags
-CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\" -DHAVE_SHADOW_H
-LDFLAGS = ${LIBS}
+CFLAGS += ${INCS} -DVERSION=\"${VERSION}\" -DHAVE_BSD_AUTH
+LDFLAGS += ${LIBS}
#CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" -DHAVE_SHADOW_H
#LDFLAGS = -g ${LIBS}
@@ -23,10 +23,10 @@ LDFLAGS = ${LIBS}
# On OpenBSD and Darwin remove -lcrypt from LIBS
# compiler and linker
-CC = cc
+CC ?= cc
LD = ${CC}
# Install mode. On BSD systems MODE=2755 and GROUP=auth
# On others MODE=4755 and GROUP=root
-#MODE=2755
-#GROUP=auth
+MODE=2755
+GROUP=auth