1 # fix lib path for 64 bit
2 fix_wmacpi_for_64bit() {
3 sed -i -e 's,/lib\([[:blank:]]\),/lib64\1,g' Makefile
6 [[ $libdir = *lib64 ]] && hook_add premake 9 "fix_wmacpi_for_64bit"
8 # replace old X11R6 lib/inc path
9 hook_add premake 9 "sed -i -e 's,/X11R6,/X11,g' Makefile"