openbsd-ports/x11/ion/patches/patch-system_mk
naddy bd57de5022 Initial import of ion-20001229; from Brian Kifiak <bk@rt.fm>.
Ion is a new kind of window manager that brings a text-editorish, keyboard
friendly user interface to window management.
2001-01-02 14:50:35 +00:00

76 lines
1.9 KiB
Plaintext

$OpenBSD: patch-system_mk,v 1.1.1.1 2001/01/02 14:50:35 naddy Exp $
--- system.mk.orig Thu Dec 28 14:42:07 2000
+++ system.mk Sat Dec 30 21:33:08 2000
@@ -7,13 +7,14 @@
## Installation paths
##
-PREFIX=/usr/local
+#PREFIX=/usr/local
# No need to modify these usually
BINDIR=$(PREFIX)/bin
-ETCDIR=$(PREFIX)/etc
+ETCDIR=$(SYSCONFDIR)
MANDIR=$(PREFIX)/man
-DOCDIR=$(PREFIX)/doc
+DOCDIR=$(PREFIX)/share/doc
+EXAMPLEDIR=$(PREFIX)/share/examples
# Not used
INCDIR=$(PREFIX)/include
LIBDIR=$(PREFIX)/lib
@@ -23,7 +24,7 @@ LIBDIR=$(PREFIX)/lib
## X libraries, includes and options
##
-X11_PREFIX=/usr/X11R6
+X11_PREFIX=$(X11BASE)
# SunOS/Solaris
#X11_PREFIX=/usr/openwin
@@ -44,14 +45,14 @@ X11_DEFINES=
# asprintf and vasprintf in the c library. (gnu libc has.)
# If HAS_SYSTEM_ASPRINTF is not defined, an implementation
# in sprintf_2.2/ is used.
-#HAS_SYSTEM_ASPRINTF=1
+HAS_SYSTEM_ASPRINTF=1
##
## C compiler
##
-CC=gcc
+#CC=gcc
# The POSIX_SOURCE, XOPEN_SOURCE and WARN options should not be necessary,
# they're mainly for development use. So, if they cause trouble (not
@@ -60,7 +61,7 @@ CC=gcc
# libtu/ uses POSIX_SOURCE
-POSIX_SOURCE=-ansi -D_POSIX_SOURCE
+#POSIX_SOURCE=-ansi -D_POSIX_SOURCE
# and . (ion) XOPEN_SOURCE.
# There is variation among systems what should be used and how they interpret
@@ -73,13 +74,13 @@ POSIX_SOURCE=-ansi -D_POSIX_SOURCE
# Same as '-Wall -pedantic-errors' without '-Wunused' as callbacks often
# have unused variables.
-WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \
- -Wtrigraphs -Wformat -Wchar-subscripts \
- -Wparentheses -pedantic-errors -Wuninitialized
+#WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \
+# -Wtrigraphs -Wformat -Wchar-subscripts \
+# -Wparentheses -pedantic-errors -Wuninitialized
-CFLAGS=-g -O2 $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES)
-LDFLAGS=-g $(LIBS) $(EXTRA_LIBS)
+CFLAGS+= $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES)
+LDFLAGS+= $(LIBS) $(EXTRA_LIBS)
##