opnsense-ports/lang/ucc/files/patch-Makefile
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

27 lines
609 B
Text

--- Makefile.orig 2011-12-31 14:41:27.000000000 +0800
+++ Makefile 2011-12-31 14:43:38.000000000 +0800
@@ -1,5 +1,5 @@
-UCCDIR = /usr/local/lib/ucc
-export UCCDIR
+UCCDIR = ${PREFIX}
+#export UCCDIR
all:
make -C driver
@@ -10,11 +10,11 @@
make -C ucl clean
install:
- mkdir -p $(UCCDIR)
- cp driver/ucc $(UCCDIR)
- cp ucl/ucl $(UCCDIR)
- cp ucl/assert.o $(UCCDIR)
- cp -r ucl/linux/include $(UCCDIR)
+ mkdir -p $(UCCDIR)/include/ucc
+ cp driver/ucc $(UCCDIR)/bin
+ cp ucl/ucl $(UCCDIR)/bin
+ cp ucl/assert.o $(UCCDIR)/lib
+ cp ucl/linux/include/* $(UCCDIR)/include/ucc/
test:
make -C ucl test