Fix build on -current

This commit is contained in:
Kris Kennaway 2002-01-26 07:54:29 +00:00
parent cb9dd52951
commit 56666de097
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=53766
3 changed files with 11 additions and 0 deletions

View File

@ -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} && \

View File

@ -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

View File

@ -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/