pkgsrc/devel/ucl/Makefile
jperkin 5393242c73 *: Move SUBST_STAGE from post-patch to pre-configure
Performing substitutions during post-patch breaks tools such as mkpatches,
making it very difficult to regenerate correct patches after making changes,
and often leading to substituted string replacements being committed.
2018-07-04 13:40:07 +00:00

32 lines
942 B
Makefile

# $NetBSD: Makefile,v 1.24 2018/07/04 13:40:16 jperkin Exp $
#
DISTNAME= ucl-1.03
PKGREVISION= 1
CATEGORIES= devel archivers
MASTER_SITES= http://www.oberhumer.com/opensource/ucl/download/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.oberhumer.com/opensource/ucl/
COMMENT= Portable lossless data compression library
LICENSE= gnu-gpl-v2
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= pre-configure
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"