mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
14 lines
302 B
Bash
14 lines
302 B
Bash
#!/bin/sh
|
|
|
|
chgdirs=". texk texk/kpathsea texk/xdvik"
|
|
|
|
cd ${WRKSRC}
|
|
|
|
for dir in ${chgdirs}; do
|
|
${MV} -f ${dir}/Makefile ${dir}/Makefile.bak
|
|
${SED} \
|
|
-e 's@^prefix[ ]*=.*$@prefix=${PREFIX}@' \
|
|
-e 's@^texmf[ ]*=.*$@texmf=${PREFIX}/share/texmf@' \
|
|
< ${dir}/Makefile.bak > ${dir}/Makefile
|
|
done
|