summaryrefslogtreecommitdiff
path: root/databases/libpbl
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2006-01-21 19:36:15 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2006-01-21 19:36:15 +0000
commit79031ead2a112fd02997550be6f2bf61fd175290 (patch)
tree7512e97ee3849609f00c0250ecd33d66c876661b /databases/libpbl
parentExplicitly create directory to install files in. (diff)
- makes the port honour $CC setting
- do not use %zd on FreeBSD 4.x - note there is no <malloc.h> in pbl.h to be replaced PR: ports/92001 Submitted by: Johan van Selst <johans@stack.nl> Approved by: maintainer
Notes
Notes: svn path=/head/; revision=154083
Diffstat (limited to 'databases/libpbl')
-rw-r--r--databases/libpbl/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/databases/libpbl/Makefile b/databases/libpbl/Makefile
index 1aefaa950ea7..9517895e6d3f 100644
--- a/databases/libpbl/Makefile
+++ b/databases/libpbl/Makefile
@@ -26,11 +26,14 @@ PORTDOCS= *
.include <bsd.port.pre.mk>
post-extract:
- @${REINPLACE_CMD} -e 's/= -Wall -O3/+= -Wall/' ${WRKSRC}/makefile
+ @${REINPLACE_CMD} -e 's/= -Wall -O3/+= -Wall/' \
+ -e 's/^CC=/CC?=/' ${WRKSRC}/makefile
+.if ${OSVERSION} >= 500000
@${REINPLACE_CMD} -e 's/%d/%zd/' ${WRKSRC}/pbl.c
+.endif
@${REINPLACE_CMD} -e 's/dir\.h/dirent\.h/' ${WRKSRC}/pbl.h
@${REINPLACE_CMD} -e 's/malloc\.h/stdlib\.h/' \
- ${WRKSRC}/pbl.h ${WRKSRC}/pbl.c ${WRKSRC}/pblhash.c
+ ${WRKSRC}/pbl.c ${WRKSRC}/pblhash.c
do-install:
@${INSTALL_DATA} ${WRKSRC}/libpbl.a ${LOCALBASE}/lib