Fix build on -current
This commit is contained in:
parent
cb9dd52951
commit
56666de097
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=53766
@ -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} && \
|
||||
|
@ -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
|
||||
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user