0971cda226
pkgsrc changes: * simplify subst with SUBST_VARS. * build and install shared library. * install pkgconfig file. package changes: tinycdb-0.77 - bugfix release: manpage typos, portability fixes and the like - bugfix: improper logic in EINTR handling in _cdb_make_full_write routine which may lead to corruped .cdb file.
36 lines
887 B
Makefile
36 lines
887 B
Makefile
# $NetBSD: Makefile,v 1.5 2010/09/11 08:26:04 obache Exp $
|
|
#
|
|
|
|
DISTNAME= tinycdb_0.77
|
|
PKGNAME= ${DISTNAME:S/_/-/}
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://www.corpit.ru/mjt/tinycdb/
|
|
|
|
MAINTAINER= schmonz@NetBSD.org
|
|
HOMEPAGE= http://www.corpit.ru/mjt/tinycdb.html
|
|
COMMENT= Create and read constant databases
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
CONFLICTS+= cdb-[0-9]*
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
|
|
|
BUILD_TARGET= all sharedlib
|
|
INSTALL_TARGET= install install-sharedlib
|
|
|
|
SUBST_CLASSES+= paths
|
|
SUBST_STAGE.paths= do-configure
|
|
SUBST_FILES.paths= Makefile debian/libcdb.pc
|
|
SUBST_VARS.paths= PREFIX PKG_SYSCONFDIR PKGMANDIR
|
|
SUBST_MESSAGE.paths= Configuring pkgsrc paths.
|
|
|
|
PKGCONFIG_OVERRIDE+= debian/libcdb.pc
|
|
|
|
INSTALLATION_DIRS+= lib/pkgconfig
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/debian/libcdb.pc \
|
|
${DESTDIR}${PREFIX}/lib/pkgconfig
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|