and this? attachment http://marc.info/?l=openbsd-ports&m=133371383731021&q=p3
On 2012/04/06 12:58, Stuart Henderson wrote: > On 2012/04/01 11:19, Christian Rueger wrote: > > tinycdb is a small, fast and reliable utility and subroutine library for > > creating and reading constant databases. The database structure is tuned > > for fast reading. > > > > See http://www.corpit.ru/mjt/tinycdb.html > > > > tested on i386, sparc64, amd64 > > > > -- > > Christian Rueger > > > > I think I prefer it with this change, I guess it doesn't matter so much > now we have REVISION but I think it's usually better not to base WRKDIST on > PKGNAME, also uses ${PROPERTIES:Mno_shared} rather than > '!defined(NO_SHARED_LIBS) || ${NO_SHARED_LIBS:L} != "yes"' > > Any OKs to import it? > > > diff --git a/databases/tinycdb/Makefile b/databases/tinycdb/Makefile > index 9bfde3d..ce45917 100644 > --- a/databases/tinycdb/Makefile > +++ b/databases/tinycdb/Makefile > @@ -2,8 +2,9 @@ > > COMMENT = creating and reading constant databases > > -DISTNAME = tinycdb_0.77 > -PKGNAME = ${DISTNAME:S/_/-/} > +V = 0.77 > +DISTNAME = tinycdb_$V > +PKGNAME = tinycdb-$V > CATEGORIES = databases > SHARED_LIBS = cdb 0.0 > > @@ -20,17 +21,19 @@ PERMIT_DISTFILES_FTP = Yes > > WANTLIB = c > > -WRKDIST = ${WRKDIR}/${PKGNAME} > +WRKDIST = ${WRKDIR}/tinycdb-$V > MAKE_FLAGS += sysconfdir="${SYSCONFDIR}" > LIBcdb_VERSION="${LIBcdb_VERSION}" > FAKE_FLAGS += ${MAKE_FLAGS} prefix="${PREFIX}" > > -.include <bsd.port.mk> > +.include <bsd.port.arch.mk> > > -.if !defined(NO_SHARED_LIBS) || ${NO_SHARED_LIBS:L} != "yes" > +.if ${PROPERTIES:Mno_shared} > +REGRESS_TARGET = tests > +.else > MAKE_FLAGS += INSTALLPROG="cdb-shared" > -ALL_TARGET += shared > -INSTALL_TARGET += install-sharedlib > +ALL_TARGET = all shared > +INSTALL_TARGET = install install-sharedlib > REGRESS_TARGET = tests-shared > -.else > -REGRESS_TARGET = tests > .endif > + > +.include <bsd.port.mk>