1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/wings3d/wings3d.conf
3 # Copyright (C) 2004 - 2022 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 OTPDIR=`pkgprefix libdir erlang-otp`/erlang/lib/wings-$ver
13 ESDLDIR=`pkgprefix libdir esdl`/erlang/lib/esdl-`pkgprefix ver esdl`/ebin
17 erlc -o/tmp tools/strip.erl
18 erl -noshell -pa /tmp -run strip strip
20 find -name 'Makefile*' -exec rm -f '{}' \;
21 for dir in ebin fonts plugins; do
27 hook_add postmake 5 "build"
30 echo "erl -pa $ESDLDIR -pa $OTPDIR/bin -run wings_start start_halt \${1+\"\$@\"}" > $root/usr/bin/wings3d
31 chmod 755 $root/usr/bin/wings3d
34 hook_add postinstall 5 startscript