freebsd-ports/sysutils/dmidecode/files/patch-Makefile
Anders Nordby 9871d4c0ed Update to 2.8.
Remove USE_REINPLACE (deprecated).

PR:		92894
Submitted by:	az
2006-02-07 08:51:09 +00:00

36 lines
989 B
Text

--- Makefile.orig Tue Feb 7 09:45:21 2006
+++ Makefile Tue Feb 7 09:47:11 2006
@@ -8,25 +8,25 @@
# Licensed under the GNU Public License.
#
-CC = gcc
-CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
- -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef
+CFLAGS+= -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
+ -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef
+CFLAGS+= ${CPPFLAGS}
#CFLAGS += -DBIGENDIAN
#CFLAGS += -DALIGNMENT_WORKAROUND
# When debugging, disable -O2 and enable -g.
-CFLAGS += -O2
+#CFLAGS += -O2
#CFLAGS += -g
# Pass linker flags here
-LDFLAGS =
+LDFLAGS+=
DESTDIR =
-prefix = /usr/local
+prefix = $(PREFIX)
sbindir = $(prefix)/sbin
-mandir = $(prefix)/share/man
+mandir = $(MANPREFIX)/man
man8dir = $(mandir)/man8
-docdir = $(prefix)/share/doc/dmidecode
+docdir = $(DOCSDIR)
INSTALL := install
INSTALL_DATA := $(INSTALL) -m 644