mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
32 lines
756 B
Plaintext
32 lines
756 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
installdir=${PREFIX}/JDE/SeizeDesktop; export installdir
|
||
|
|
||
|
case ${LANGUAGE} in
|
||
|
Japanese)
|
||
|
for f in SeizeDesktop.app PrefDesktop.app; do
|
||
|
${PERL} -pi -e '
|
||
|
s/^(exec[ \t]+)wishstep[^ \t]*([ \t]+.*)$/$1wishstep$ENV{VERSION}jp$2/
|
||
|
' ${installdir}/bin/${f}
|
||
|
done
|
||
|
;;
|
||
|
*)
|
||
|
;;
|
||
|
esac
|
||
|
for f in SeizeDesktop SeizeDesktop.app PrefDesktop.app; do
|
||
|
case ${f} in
|
||
|
SeizeDesktop.app|PrefDesktop.app)
|
||
|
target=${installdir}/bin/${f}
|
||
|
;;
|
||
|
SeizeDesktop)
|
||
|
target=${installdir}/default/${f}
|
||
|
;;
|
||
|
esac
|
||
|
${PERL} -pi -e '
|
||
|
s/^([ \t]*set[ \t]+dtLib[ \t]+)"[^"]*"$/$1"$ENV{installdir}"/;
|
||
|
' ${target}
|
||
|
done
|
||
|
|
||
|
${LN} -sf ${installdir}/bin/SeizeDesktop.app ${PREFIX}/bin
|
||
|
${LN} -sf ${installdir}/bin/PrefDesktop.app ${PREFIX}/bin
|