summaryrefslogtreecommitdiff
path: root/sysutils/superiotool/files
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2013-02-01 15:06:45 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2013-02-01 15:06:45 +0000
commit9594ff9de0cf5a412abbcfbc83be02818fc7ea39 (patch)
treee9eb8b2a0ba0d8a630aa3d77a3d958e0e7690d2e /sysutils/superiotool/files
parent- Fix all cases of 'No newline at end of file' in ports tree (diff)
- Update to 20121019
PR: 175761 Submitted by: Andriy Gapon <avg@icyb.net.ua> (maintainer)
Notes
Notes: svn path=/head/; revision=311382
Diffstat (limited to 'sysutils/superiotool/files')
-rw-r--r--sysutils/superiotool/files/patch-Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/sysutils/superiotool/files/patch-Makefile b/sysutils/superiotool/files/patch-Makefile
new file mode 100644
index 000000000000..1ce55d7e8bc3
--- /dev/null
+++ b/sysutils/superiotool/files/patch-Makefile
@@ -0,0 +1,49 @@
+--- Makefile.orig 2012-10-19 16:44:32.000000000 +0300
++++ Makefile 2012-10-20 01:32:35.427651135 +0300
+@@ -20,28 +20,24 @@
+
+ PROGRAM = superiotool
+
+-CC = gcc
+-INSTALL = /usr/bin/install
+-PREFIX = /usr/local
++CC ?= gcc
++INSTALL ?= /usr/bin/install
++PREFIX ?= /usr/local
+
+ # Set the superiotool version string to the output of 'git describe'.
+
+-VERSION := -D'SUPERIOTOOL_VERSION="$(shell git describe 2>/dev/null)"'
+-
+-CFLAGS += -O2 -Wall -Wstrict-prototypes -Wundef -Wstrict-aliasing \
+- -Werror-implicit-function-declaration -ansi -pedantic $(VERSION)
+-LDFLAGS += -lz
++VERSION ?= -D'SUPERIOTOOL_VERSION="$(shell git describe 2>/dev/null)"'
+
+ OBJS = superiotool.o serverengines.o ali.o fintek.o ite.o nsc.o nuvoton.o \
+ smsc.o winbond.o infineon.o
+
+-OS_ARCH = $(shell uname)
++OS_ARCH = FreeBSD
+ ifeq ($(OS_ARCH), Darwin)
+ LIBS = -framework IOKit -framework DirectHW -lpci -lz
+ endif
+ ifeq ($(OS_ARCH), FreeBSD)
+-CFLAGS = -O2 -Wall -Werror -Wstrict-prototypes -Wundef -Wstrict-aliasing \
+- -Werror-implicit-function-declaration -ansi $(VERSION) \
++CFLAGS += -Wall -Werror -Wstrict-prototypes -Wundef -Wstrict-aliasing \
++ -Werror-implicit-function-declaration $(VERSION) \
+ -I/usr/local/include
+ LDFLAGS += -L/usr/local/lib
+ LIBS = -lz
+@@ -69,8 +65,8 @@ $(PROGRAM): $(OBJS) superiotool.h
+ install: $(PROGRAM)
+ mkdir -p $(DESTDIR)$(PREFIX)/sbin
+ $(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/sbin
+- mkdir -p $(DESTDIR)$(PREFIX)/share/man/man8
+- $(INSTALL) $(PROGRAM).8 $(DESTDIR)$(PREFIX)/share/man/man8
++ mkdir -p $(DESTDIR)$(PREFIX)/man/man8
++ $(INSTALL) $(PROGRAM).8 $(DESTDIR)$(PREFIX)/man/man8
+
+ clean:
+ rm -f $(PROGRAM) *.o \ No newline at end of file