summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-01-26 07:54:29 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-01-26 07:54:29 +0000
commit56666de09755fd060a0433499f7f1f550613a94c (patch)
treec4f847e765d2c0565e151ae3c0b642a8b60a101f /misc
parentUnbreak on -current, and don't hardwire CC or CFLAGS (diff)
Fix build on -current
Notes
Notes: svn path=/head/; revision=53766
Diffstat (limited to 'misc')
-rw-r--r--misc/astrolog/Makefile4
-rw-r--r--misc/bb/Makefile3
-rw-r--r--misc/colortail/Makefile4
3 files changed, 11 insertions, 0 deletions
diff --git a/misc/astrolog/Makefile b/misc/astrolog/Makefile
index 92523e08ced2..74a7db5ed5a6 100644
--- a/misc/astrolog/Makefile
+++ b/misc/astrolog/Makefile
@@ -29,6 +29,10 @@ DIST_SUBDIR= astrolog
ALL_TARGET= astrolog
NO_WRKSUBDIR= yes
+pre-patch:
+ @${PERL} -pi.orig -e "s@malloc.h@stdlib.h@g" \
+ ${WRKSRC}/astrolog.h ${WRKSRC}/placalc.h
+
do-install:
-@${MKDIR} ${PREFIX}/lib/astrolog
cd ${DISTDIR}/${DIST_SUBDIR} && \
diff --git a/misc/bb/Makefile b/misc/bb/Makefile
index 49ef42e644e3..e8048ce32b34 100644
--- a/misc/bb/Makefile
+++ b/misc/bb/Makefile
@@ -19,6 +19,9 @@ LIB_DEPENDS= aa.1:${PORTSDIR}/graphics/aalib
MAKEFILE= makefile
GNU_CONFIGURE= yes
+pre-patch:
+ ${FIND} ${WRKSRC} -type f | ${XARGS} ${PERL} -pi -e "s@#include +<malloc.h>@#include <stdlib.h>@g"
+
pre-build:
@ cd ${WRKSRC}/mikunix; make
diff --git a/misc/colortail/Makefile b/misc/colortail/Makefile
index d8ad90f5bc30..b67f34848589 100644
--- a/misc/colortail/Makefile
+++ b/misc/colortail/Makefile
@@ -16,6 +16,10 @@ LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
GNU_CONFIGURE= yes
+pre-patch:
+ @${PERL} -pi.orig -e "s@malloc.h@stdlib.h@g" \
+ ${WRKSRC}/CfgFileParser.cc
+
post-install:
@ ${MKDIR} ${PREFIX}/share/colortail
@ ${INSTALL_DATA} ${WRKSRC}/example-conf/conf* ${PREFIX}/share/colortail/