mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-30 09:22:57 +02:00
bsd-games: apply CFLAGS/LDFLAGS when hardening is active.
This commit is contained in:
parent
cfb8e13917
commit
759f73ede5
1 changed files with 8 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'bsd-games'. Based on Arch PKGBUILD by Chris Brannon.
|
# Template file for 'bsd-games'. Based on Arch PKGBUILD by Chris Brannon.
|
||||||
pkgname=bsd-games
|
pkgname=bsd-games
|
||||||
version=2.17
|
version=2.17
|
||||||
revision=2
|
revision=3
|
||||||
patch_args="-Np1"
|
patch_args="-Np1"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
make_dirs="
|
make_dirs="
|
||||||
|
@ -20,13 +20,6 @@ checksum=066f924aef6c1c5ea946f588e36f303021f5dfc093944738f025d8edbc6fff60
|
||||||
nocross=yes
|
nocross=yes
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
cp ${FILESDIR}/config.params .
|
|
||||||
|
|
||||||
echo "bsd_games_cfg_cc='$CC'" >>config.params
|
|
||||||
echo "bsd_games_cfg_cxx='$CXX'" >>config.params
|
|
||||||
echo "bsd_games_cfg_other_cflags='$CFLAGS'" >>config.params
|
|
||||||
echo "bsd_games_cfg_other_ldflags='$LDFLAGS'" >>config.params
|
|
||||||
|
|
||||||
sed -i "s/FISH/GO-FISH/g; s/\.Nm fish/\.Nm go-fish/g" fish/fish.6
|
sed -i "s/FISH/GO-FISH/g; s/\.Nm fish/\.Nm go-fish/g" fish/fish.6
|
||||||
sed -i "s/tenths/tenth/g" tests/number.-0.1
|
sed -i "s/tenths/tenth/g" tests/number.-0.1
|
||||||
sed -i "s/Elegy{ Written in a Country Church{-| }Yard:/Elegy{ Written in a Country Church{-| }Yard}:/g" quiz/datfiles/poetry
|
sed -i "s/Elegy{ Written in a Country Church{-| }Yard:/Elegy{ Written in a Country Church{-| }Yard}:/g" quiz/datfiles/poetry
|
||||||
|
@ -42,7 +35,13 @@ post_extract() {
|
||||||
sed -i '1i#include <fcntl.h>' wump/wump.c
|
sed -i '1i#include <fcntl.h>' wump/wump.c
|
||||||
sed -i 's/-DOTTO//' hunt/Makeconfig
|
sed -i 's/-DOTTO//' hunt/Makeconfig
|
||||||
}
|
}
|
||||||
|
pre_configure() {
|
||||||
|
cp ${FILESDIR}/config.params .
|
||||||
|
echo "bsd_games_cfg_cc='$CC'" >>config.params
|
||||||
|
echo "bsd_games_cfg_cxx='$CXX'" >>config.params
|
||||||
|
echo "bsd_games_cfg_other_cflags='$CFLAGS'" >>config.params
|
||||||
|
echo "bsd_games_cfg_other_ldflags='$LDFLAGS'" >>config.params
|
||||||
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
echo >install-score
|
echo >install-score
|
||||||
sed -i "s|PKGDIR|$DESTDIR|g" hide-game install-man install-score Makeconfig subst.sed
|
sed -i "s|PKGDIR|$DESTDIR|g" hide-game install-man install-score Makeconfig subst.sed
|
||||||
|
|
Loading…
Add table
Reference in a new issue