academic/primer3: Respect our CFLAGS, added -fpermissive.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2017-07-28 09:37:19 +02:00 committed by Robby Workman
parent ea7af30af3
commit 756d225db6

View file

@ -75,13 +75,11 @@ patch -p1 -i $CWD/gcc-7.patch
cd ./src cd ./src
# Use our CFLAGS # Use our CFLAGS
sed -i "/^CFLAGS/s/=/+=/" Makefile sed -i -e "s|-O2|$SLKCFLAGS|" -e "s|-g -Wall|-fpermissive|" Makefile
# Look for configuration files in /usr/share instead of /opt # Look for configuration files in /usr/share instead of /opt
sed -i "s:/opt/primer3_config:/usr/share/$PRGNAM/primer3_config:g" thal_main.c primer3_boulder_main.c sed -i "s:/opt/primer3_config:/usr/share/$PRGNAM/primer3_config:g" thal_main.c primer3_boulder_main.c
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make make
# This is recommended, but the tests take a really long time. Be patient # This is recommended, but the tests take a really long time. Be patient