freebsd-ports/sysutils/dmidecode/files/patch-Makefile
Pav Lucistnik 0adb0c207e - Update to 2.7
PR:		ports/86209, ports/88431
Submitted by:	Armin Gruner <ag-freebsd@space.net>,
		Andrew Pantyukhin <sat@proxy.gubkin.ru>
Approved by:	maintainer timeout (anders; 2 months)
2005-11-25 19:34:54 +00:00

36 lines
973 B
Text

--- Makefile.orig Wed Jun 15 20:22:35 2005
+++ Makefile Fri Nov 25 20:31:58 2005
@@ -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
+CFLAGS+= -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
+ -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline
+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