update Tue May 18 00:37:00 PDT 2010
[pkgsrc.git] / devel / ucl / Makefile
1 # $NetBSD: Makefile,v 1.20 2010/02/26 10:28:31 wiz Exp $
2 #
3
4 DISTNAME=       ucl-1.03
5 PKGREVISION=    1
6 CATEGORIES=     devel archivers
7 MASTER_SITES=   http://www.oberhumer.com/opensource/ucl/download/
8
9 MAINTAINER=     pkgsrc-users@NetBSD.org
10 HOMEPAGE=       http://www.oberhumer.com/opensource/ucl/
11 COMMENT=        Portable lossless data compression library
12
13 PKG_INSTALLATION_TYPES= overwrite pkgviews
14 PKG_DESTDIR_SUPPORT=    user-destdir
15
16 USE_LIBTOOL=    YES
17 GNU_CONFIGURE=  YES
18 CONFIGURE_ARGS+=        --enable-shared=yes
19
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"
25
26 INSTALLATION_DIRS=      bin share/examples/ucl
27
28 post-install:
29         for i in simple.c lutil.h uclpack.c; do         \
30         ${INSTALL_DATA} ${WRKSRC}/examples/$$i ${DESTDIR}${PREFIX}/share/examples/ucl;\
31                 done;
32         cd ${WRKSRC}/examples && libtool --mode=install ${INSTALL_PROGRAM} uclpack ${DESTDIR}${PREFIX}/bin
33
34 .include "../../mk/bsd.pkg.mk"