ports/sysutils/dmidecode/files/patch-Makefile
Brendan Fabeny 14ed37f49b Update to 2.11, plus two subsequent changes from
dmidecode CVS that add support for SMBIOS 2.7.1 and
fix boundary checks of memory array location codes

PR:		155664
Submitted by:	bf
Approved by:	maintainer timeout
2011-05-21 11:18:57 +00:00

43 lines
1.2 KiB
Text

--- Makefile.orig 2010-10-11 10:08:16.000000000 -0400
+++ Makefile 2011-03-18 12:55:54.000000000 -0400
@@ -12,30 +12,30 @@
# (at your option) any later version.
#
-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+= $(CFLAGS)
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
+INSTALL_DATA := $(BSD_INSTALL_DATA)
INSTALL_DIR := $(INSTALL) -m 755 -d
-INSTALL_PROGRAM := $(INSTALL) -m 755
+INSTALL_PROGRAM := $(BSD_INSTALL_PROGRAM)
RM := rm -f
# BSD make provides $MACHINE, but GNU make doesn't