# $OpenBSD: Makefile,v 1.16 2017/04/10 11:45:22 sthen Exp $

COMMENT=	java-like zip interface

DISTNAME=	zipios++-0.1.5.9+cvs.2004.02.07
PKGNAME=	zipios++-0.1.5.9
REVISION=	2
CATEGORIES=	devel archivers
MASTER_SITES=	https://distfiles.nl/
MASTER_SITES0=	${MASTER_SITE_GNU:=automake/}
SHARED_LIBS +=	zipios               1.0      # .0.0

DISTFILES=	zipios++_0.1.5.9+cvs.2004.02.07.orig.tar.gz \
		automake-1.7.tar.gz:0

# LGPLv2.1
PERMIT_PACKAGE_CDROM=	Yes

WANTLIB=		m ${LIBCXX} z

CONFIGURE_STYLE=	gnu

post-extract:
	for i in depcomp install-sh missing mkinstalldirs; do \
		rm ${WRKDIST}/$$i; \
		cp ${WRKDIR}/automake-1.7/lib/$$i ${WRKDIST}; \
	done

MAKE_FLAGS=SUBDIRS='zipios++ src'

post-install:
	${INSTALL_DATA} ${WRKBUILD}/zipios++/zipios-config.h ${PREFIX}/include/zipios++/

.include <bsd.port.mk>
