blob: 7599d1ebd042b4290f4f9550c75c066b1d6be71f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# $NetBSD: Makefile,v 1.19 2010/01/29 19:31:33 joerg Exp $
#
DISTNAME= ucl-1.03
PKGREVISION= 1
CATEGORIES= devel archivers
MASTER_SITES= http://www.oberhumer.com/opensource/ucl/download/
MAINTAINER= cjep@NetBSD.org
HOMEPAGE= http://www.oberhumer.com/opensource/ucl/
COMMENT= Portable lossless data compression library
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
USE_LIBTOOL= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --enable-shared=yes
# Avoid path to build directory in example Makefile
SUBST_CLASSES+= example
SUBST_STAGE.example= post-patch
SUBST_FILES.example= examples/Makefile.in
SUBST_SED.example= -e "s|@MAKEINFO@||g"
INSTALLATION_DIRS= bin share/examples/ucl
post-install:
for i in simple.c lutil.h uclpack.c; do \
${INSTALL_DATA} ${WRKSRC}/examples/$$i ${DESTDIR}${PREFIX}/share/examples/ucl;\
done;
cd ${WRKSRC}/examples && libtool --mode=install ${INSTALL_PROGRAM} uclpack ${DESTDIR}${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"
|