mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
should fix build https://build.macports.org/builders/buildports-lion-x86_64/builds/8609 git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@103197 d073be05-634f-4543-b044-5fe20cf6d1d6
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
--- makefile.orig 2013-02-18 10:20:14.000000000 +0100
|
|
+++ makefile 2013-02-18 10:20:33.000000000 +0100
|
|
@@ -1,16 +1,16 @@
|
|
CXX_FLAGS=-O3
|
|
all:
|
|
- echo -n const char *lua_code = \" > lua_code.h
|
|
- cat luash.lua | sed 's/\\/\\\\/g' | sed 's/\"/\\\"/g' | gawk '{ print $$0"\\n" }' | tr -d '\n' >> lua_code.h
|
|
- echo "\";" >> lua_code.h
|
|
- g++ -o luash luash.cpp ${CXX_FLAGS} -llua -lreadline
|
|
+ /bin/echo -n const char *lua_code = \" > lua_code.h
|
|
+ cat luash.lua | sed 's/\\/\\\\/g' | sed 's/\"/\\\"/g' | awk '{ print $$0"\\n" }' | tr -d '\n' >> lua_code.h
|
|
+ /bin/echo "\";" >> lua_code.h
|
|
+ $(CXX) -o luash luash.cpp ${CXX_FLAGS} -llua -lreadline
|
|
|
|
clean:
|
|
!(test -e lua_code.h) || rm lua_code.h
|
|
!(test -e luash) || rm luash
|
|
|
|
install:
|
|
- if [ "${PREFIX}" == "" ]; then cp luash /usr/local/bin/; else cp luash "${PREFIX}/bin/"; fi
|
|
+ if [ "${PREFIX}" == "" ]; then cp luash /usr/local/bin/; else cp luash "$(DESTDIR)${PREFIX}/bin/"; fi
|
|
|
|
uninstall:
|
|
- if [ "${PREFIX}" == "" ]; then rm /usr/local/bin/luash; else rm "${PREFIX}/bin/luash"; fi
|
|
+ if [ "${PREFIX}" == "" ]; then rm /usr/local/bin/luash; else rm "$(DESTDIR)${PREFIX}/bin/luash"; fi
|