Files
pkgsrc-ng/archivers/upx/patches/patch-src_Makefile
2016-01-21 23:40:00 +01:00

15 lines
546 B
Plaintext

$NetBSD: patch-src_Makefile,v 1.2 2014/05/26 01:30:39 rodent Exp $
Enable ZLIB support.
--- src/Makefile.orig 2013-09-30 15:51:00.000000000 +0000
+++ src/Makefile
@@ -57,6 +57,7 @@ ifneq ($(wildcard $(UPX_UCLDIR)/include/
INCLUDES += -I$(UPX_UCLDIR)/include
LIBS += $(addprefix -L,$(dir $(wildcard $(UPX_UCLDIR)/libucl$(libext) $(UPX_UCLDIR)/src/.libs/libucl$(libext))))
endif
+DEFS += -DWITH_ZLIB
LIBS += -lucl -lz
# you should set envvar UPX_LZMADIR to point to your unpacked LZMA SDK
include $(top_srcdir)/src/stub/src/c/Makevars.lzma