openbsd-ports/archivers/lz4/patches/patch-programs_Makefile
2015-05-15 15:32:00 +00:00

35 lines
1.2 KiB
Plaintext

$OpenBSD: patch-programs_Makefile,v 1.4 2015/05/15 15:32:00 sthen Exp $
Don't build -m32 variants.
Don't build fuzzer/frametest (requires patches for ftime).
--- programs/Makefile.orig Thu May 7 12:23:39 2015
+++ programs/Makefile Fri May 15 16:26:49 2015
@@ -70,7 +70,7 @@ m32: lz4c32 fullbench32 fuzzer32 frametest32
bins: lz4 lz4c fullbench fuzzer frametest datagen
-all: bins m32
+all: bins
lz4: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c $(LZ4DIR)/lz4frame.c $(LZ4DIR)/xxhash.c bench.c lz4io.c lz4cli.c
$(CC) $(FLAGS) $^ -o $@$(EXT)
@@ -114,7 +114,7 @@ clean:
#------------------------------------------------------------------------
#make install is validated only for Linux, OSX, kFreeBSD and Hurd targets
-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU))
+ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD))
install: lz4 lz4c
@echo Installing binaries
@@ -141,7 +141,7 @@ uninstall:
rm -f $(DESTDIR)$(MANDIR)/unlz4.1
@echo lz4 programs successfully uninstalled
-test: test-lz4 test-lz4c test-frametest test-fullbench test-fuzzer test-mem
+test: test-lz4 test-lz4c test-fullbench
test32: test-lz4c32 test-frametest32 test-fullbench32 test-fuzzer32 test-mem32