diff --git a/databases/cdb/Makefile b/databases/cdb/Makefile index 5b32880e0899..8611cabdd0bb 100644 --- a/databases/cdb/Makefile +++ b/databases/cdb/Makefile @@ -1,30 +1,31 @@ PORTNAME= cdb PORTVERSION= 0.75 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= http://cr.yp.to/cdb/ MAINTAINER= ports@FreeBSD.org COMMENT= Fast lookup database library & utilities WWW= https://cr.yp.to/cdb.html ALL_TARGET= it CFLAGS_amd64= -fPIC do-configure: @${MV} ${WRKSRC}/conf-home ${WRKSRC}/conf-home.orig ${ECHO_CMD} ${PREFIX} > ${WRKSRC}/conf-home @${MV} ${WRKSRC}/conf-cc ${WRKSRC}/conf-cc.orig ${ECHO_CMD} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc @${MV} ${WRKSRC}/conf-ld ${WRKSRC}/conf-ld.orig ${ECHO_CMD} ${CC} -s > ${WRKSRC}/conf-ld do-install: .for file in cdbdump cdbget cdbmake cdbstats cdbtest ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/bin .endfor .for file in cdbmake-12 cdbmake-sv ${INSTALL_SCRIPT} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/bin .endfor .include diff --git a/databases/cdb/files/patch-error.h b/databases/cdb/files/patch-error.h new file mode 100644 index 000000000000..e35ddb04802a --- /dev/null +++ b/databases/cdb/files/patch-error.h @@ -0,0 +1,11 @@ +--- error.h.orig ++++ error.h +@@ -1,7 +1,7 @@ + #ifndef ERROR_H + #define ERROR_H + +-extern int errno; ++#include + + extern int error_intr; + extern int error_nomem;