1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00

Fix the build with upcoming GCC 4.1.

This commit is contained in:
Alexey Dokuchaev 2006-10-04 00:02:05 +00:00
parent ad3bdb7a0c
commit f1f6d99e37
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=174415

View File

@ -30,12 +30,16 @@ MAN${i}!= ${CAT} ${FILESDIR}/man${i}
.endif
.endfor
pre-patch:
pre-patch: .SILENT
for file in ${WRKSRC}/utils/gtf/*.h; do \
${TR} -d '\015' < $${file} > $${file}.new; \
${MV} $${file}.new $${file}; \
done
${MKDIR} ${WRKSRC}/include/linux
# Fix for GCC 4.1
${REINPLACE_CMD} '30d' ${WRKSRC}/src/vgabg.h
${REINPLACE_CMD} -e 's,^ (unsigned [[:alpha:]]*),,' \
${WRKSRC}/src/apm.c
post-install:
${MKDIR} ${PREFIX}/include/linux