aboutsummaryrefslogtreecommitdiffstats
path: root/biology
diff options
context:
space:
mode:
authortrevor <trevor@FreeBSD.org>2004-04-07 23:39:34 +0800
committertrevor <trevor@FreeBSD.org>2004-04-07 23:39:34 +0800
commit889d6dbaf8149f89d53f37d70307fa85ecfca1a6 (patch)
tree75a0df2793a5a764680c921152ccedc48cefc67e /biology
parent4bfe10405f5e83fd27c98408185d1c657a410fa0 (diff)
downloadfreebsd-ports-gnome-889d6dbaf8149f89d53f37d70307fa85ecfca1a6.tar.gz
freebsd-ports-gnome-889d6dbaf8149f89d53f37d70307fa85ecfca1a6.tar.zst
freebsd-ports-gnome-889d6dbaf8149f89d53f37d70307fa85ecfca1a6.zip
After patching, remove the carriage-return characters from povchem.c
because they because they choke GCC 2.95.4. noticed by: kris
Diffstat (limited to 'biology')
-rw-r--r--biology/povchem/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/biology/povchem/Makefile b/biology/povchem/Makefile
index 87b6329d66a7..bfcc9a1ddfae 100644
--- a/biology/povchem/Makefile
+++ b/biology/povchem/Makefile
@@ -36,6 +36,8 @@ do-extract:
post-patch:
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
${WRKSRC}/povchem.cfg
+ ${MV} ${WRKSRC}/povchem.c ${WRKSRC}/povchem.c.patched
+ strings -1 ${WRKSRC}/povchem.c.patched > ${WRKSRC}/povchem.c
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEFS} -o povchem povchem.c -lm