openbsd-ports/databases/tinycdb/Makefile
2013-03-11 02:52:04 +00:00

38 lines
843 B
Makefile

# $OpenBSD: Makefile,v 1.3 2013/03/11 02:52:09 espie Exp $
COMMENT = creating and reading constant databases
V = 0.77
REVISION = 0
DISTNAME = tinycdb_$V
PKGNAME = tinycdb-$V
CATEGORIES = databases
SHARED_LIBS = cdb 0.0
HOMEPAGE = http://www.corpit.ru/mjt/tinycdb.html
MASTER_SITES = http://www.corpit.ru/mjt/tinycdb/
MAINTAINER = Christian Rueger <cr+openbsd@rueger-net.de>
# Public domain
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = c
WRKDIST = ${WRKDIR}/tinycdb-$V
MAKE_FLAGS += sysconfdir="${SYSCONFDIR}" LIBcdb_VERSION="${LIBcdb_VERSION}"
FAKE_FLAGS += ${MAKE_FLAGS} prefix="${PREFIX}"
.include <bsd.port.arch.mk>
.if ${PROPERTIES:Mno_shared}
TEST_TARGET = tests
.else
MAKE_FLAGS += INSTALLPROG="cdb-shared"
ALL_TARGET = all shared
INSTALL_TARGET = install install-sharedlib
TEST_TARGET = tests-shared
.endif
.include <bsd.port.mk>