# vim: ft=make ts=4 sw=4 noet
.DEFAULT_GOAL := all
NAME    = lzip
VERSION = 1.25
GARTYPE = v2

MASTER_SITES = http://download.savannah.nongnu.org/releases/lzip/
DISTFILES   += $(DISTNAME).tar.gz
LICENSE = COPYING

PACKAGES           += OZSWlzip
SPKG_DESC_OZSWlzip  = Lzip: LZMA-based data compressor
CATALOGNAME_OZSWlzip = lzip

EXTENSIONS = 1

# lzip uses a custom configure (not autoconf); only understands --prefix
CONFIGURE_ARGS = --prefix=$(prefix)

# lzip's Makefile drops LDFLAGS from the environment; force RPATH via override
BUILD_OVERRIDE_VARS += LDFLAGS
BUILD_OVERRIDE_VAR_LDFLAGS = $(LDFLAGS) -Wl,-R,$(prefix)/lib

INSTALL_OVERRIDE_VARS += LDFLAGS
INSTALL_OVERRIDE_VAR_LDFLAGS = $(LDFLAGS) -Wl,-R,$(prefix)/lib

include gar/category.mk
