aboutsummaryrefslogtreecommitdiff
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
parentcfedb2f0e8688cff389d5cce2531ba643b7d2cda (diff)
downloadports-79031ead2a112fd02997550be6f2bf61fd175290.tar.gz
ports-79031ead2a112fd02997550be6f2bf61fd175290.zip
Notes
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