aboutsummaryrefslogtreecommitdiffstats
path: root/databases/libpbl
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2006-01-22 03:36:15 +0800
committersem <sem@FreeBSD.org>2006-01-22 03:36:15 +0800
commitdf125d6848a7aba314e198cd72d7bee46272a262 (patch)
tree7778b5ea49900e7bf742cfbb9afdc165e3c4e68d /databases/libpbl
parent77340ba044417b418b23f37f5f2bcfe315d0894d (diff)
downloadfreebsd-ports-gnome-df125d6848a7aba314e198cd72d7bee46272a262.tar.gz
freebsd-ports-gnome-df125d6848a7aba314e198cd72d7bee46272a262.tar.zst
freebsd-ports-gnome-df125d6848a7aba314e198cd72d7bee46272a262.zip
- 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
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