1 # $NetBSD: Makefile,v 1.20 2010/02/26 10:28:31 wiz Exp $
6 CATEGORIES= devel archivers
7 MASTER_SITES= http://www.oberhumer.com/opensource/ucl/download/
9 MAINTAINER= pkgsrc-users@NetBSD.org
10 HOMEPAGE= http://www.oberhumer.com/opensource/ucl/
11 COMMENT= Portable lossless data compression library
13 PKG_INSTALLATION_TYPES= overwrite pkgviews
14 PKG_DESTDIR_SUPPORT= user-destdir
18 CONFIGURE_ARGS+= --enable-shared=yes
20 # Avoid path to build directory in example Makefile
21 SUBST_CLASSES+= example
22 SUBST_STAGE.example= post-patch
23 SUBST_FILES.example= examples/Makefile.in
24 SUBST_SED.example= -e "s|@MAKEINFO@||g"
26 INSTALLATION_DIRS= bin share/examples/ucl
29 for i in simple.c lutil.h uclpack.c; do \
30 ${INSTALL_DATA} ${WRKSRC}/examples/$$i ${DESTDIR}${PREFIX}/share/examples/ucl;\
32 cd ${WRKSRC}/examples && libtool --mode=install ${INSTALL_PROGRAM} uclpack ${DESTDIR}${PREFIX}/bin
34 .include "../../mk/bsd.pkg.mk"