ports/sysutils/dmidecode/files/patch-Makefile
2013-09-04 21:14:14 +00:00

41 lines
1.1 KiB
Text

--- Makefile.orig 2013-09-04 23:07:45.000000000 +0200
+++ Makefile 2013-09-04 23:09:52.000000000 +0200
@@ -12,30 +12,29 @@
# (at your option) any later version.
#
-CC = gcc
-CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
+CFLAGS+= -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
-Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef
#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