summaryrefslogtreecommitdiff
path: root/sysutils/dmidecode/files/patch-Makefile
diff options
context:
space:
mode:
authorAnders Nordby <anders@FreeBSD.org>2005-03-20 21:24:32 +0000
committerAnders Nordby <anders@FreeBSD.org>2005-03-20 21:24:32 +0000
commit1a8f4e6d2dd62ce42fba7ad3f92c1b57bd47649a (patch)
tree2003392fa5fd15b1986dee01edc7fde3ff00fcbd /sysutils/dmidecode/files/patch-Makefile
parentUpdate to 2.2.5. (diff)
Fix build for 4.x.
Make port respect PREFIX and CC again. PR: 79039 Submitted by: Tod McQuillin <devin@spamcop.net>
Notes
Notes: svn path=/head/; revision=131788
Diffstat (limited to 'sysutils/dmidecode/files/patch-Makefile')
-rw-r--r--sysutils/dmidecode/files/patch-Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/sysutils/dmidecode/files/patch-Makefile b/sysutils/dmidecode/files/patch-Makefile
new file mode 100644
index 000000000000..406565c4f852
--- /dev/null
+++ b/sysutils/dmidecode/files/patch-Makefile
@@ -0,0 +1,31 @@
+--- Makefile.orig Mon Feb 28 21:43:00 2005
++++ Makefile Sun Mar 20 22:16:32 2005
+@@ -8,9 +8,9 @@
+ # Licensed under the GNU Public License.
+ #
+
+-CC = gcc
+-CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
+- -Wcast-align -Wwrite-strings -Wmissing-prototypes
++CFLAGS += -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
++ -Wcast-align -Wwrite-strings -Wmissing-prototypes ${CPPFLAGS} \
++ -DHAVE_DECL_GETOPT
+ #CFLAGS += -DBIGENDIAN
+ #CFLAGS += -DALIGNMENT_WORKAROUND
+
+@@ -19,12 +19,11 @@
+ #CFLAGS += -g
+
+ # Pass linker flags here
+-LDFLAGS =
++LDFLAGS +=
+
+ DESTDIR =
+-prefix = /usr/local
+-sbindir = $(prefix)/sbin
+-mandir = $(prefix)/man
++sbindir = $(PREFIX)/sbin
++mandir = $(PREFIX)/man
+ man8dir = $(mandir)/man8
+
+ all : dmidecode biosdecode ownership vpddecode