summaryrefslogtreecommitdiff
path: root/databases/tinycdb/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/tinycdb/Makefile')
-rw-r--r--databases/tinycdb/Makefile21
1 files changed, 15 insertions, 6 deletions
diff --git a/databases/tinycdb/Makefile b/databases/tinycdb/Makefile
index 8c607a098b7..60f4eda34ef 100644
--- a/databases/tinycdb/Makefile
+++ b/databases/tinycdb/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2008/06/20 01:09:11 joerg Exp $
+# $NetBSD: Makefile,v 1.5 2010/09/11 08:26:04 obache Exp $
#
-DISTNAME= tinycdb_0.76
+DISTNAME= tinycdb_0.77
PKGNAME= ${DISTNAME:S/_/-/}
CATEGORIES= databases
MASTER_SITES= http://www.corpit.ru/mjt/tinycdb/
@@ -16,12 +16,21 @@ 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
-SUBST_SED.paths= -e 's|@PREFIX@|${PREFIX}|g'
-SUBST_SED.paths+= -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g'
-SUBST_SED.paths+= -e 's|@PKGMANDIR@|${PKGMANDIR}|g'
+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"