freebsd-ports/sysutils/sbase/files/patch-config.mk
Yuri Victorovich 814352f774 New port: sysutils/sbase: Collection of UNIX tools that are portable across UNIX-like systems
Another project from the suckless team: https://core.suckless.org/sbase

PR:		225410
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D14096
2018-01-31 06:25:40 +00:00

23 lines
594 B
Makefile

--- config.mk.orig 2017-11-11 02:19:32 UTC
+++ config.mk
@@ -2,8 +2,8 @@
VERSION = 0.0
# paths
-PREFIX = /usr/local
-MANPREFIX = $(PREFIX)/share/man
+PREFIX ?= /usr/local
+MANPREFIX = $(PREFIX)/man
CC = cc
AR = ar
@@ -11,6 +11,6 @@ RANLIB = ranlib
# for NetBSD add -D_NETBSD_SOURCE
# -lrt might be needed on some systems
-CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_FILE_OFFSET_BITS=64
-CFLAGS = -std=c99 -Wall -pedantic
-LDFLAGS = -s
+CPPFLAGS += -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_FILE_OFFSET_BITS=64
+CFLAGS += -std=c99 -Wall -pedantic
+LDFLAGS += -s