aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2006-10-04 08:02:05 +0800
committerdanfe <danfe@FreeBSD.org>2006-10-04 08:02:05 +0800
commitf327144eca7bdca3dd67da2b6e960c0b80b96bb1 (patch)
tree3d41db514e37ba027f9aa23b12e1a79d69da2ce7
parenta72d1ad669278c1c518e96a2f1d5005615aa758b (diff)
downloadfreebsd-ports-gnome-f327144eca7bdca3dd67da2b6e960c0b80b96bb1.tar.gz
freebsd-ports-gnome-f327144eca7bdca3dd67da2b6e960c0b80b96bb1.tar.zst
freebsd-ports-gnome-f327144eca7bdca3dd67da2b6e960c0b80b96bb1.zip
Fix the build with upcoming GCC 4.1.
-rw-r--r--graphics/svgalib/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/graphics/svgalib/Makefile b/graphics/svgalib/Makefile
index 950dc336ce83..a5312b3148e2 100644
--- a/graphics/svgalib/Makefile
+++ b/graphics/svgalib/Makefile
@@ -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