diff options
| author | tlk | 2013-10-13 17:27:51 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2013-10-29 21:36:51 -0700 |
| commit | e67dd599e9243149fe17fc9e8e1c3169e6d3101e (patch) | |
| tree | 15b0e53486969f15efa5323766c9476c5ad7a2bd /Library/Formula | |
| parent | f6fde2b6bb7756291ff1497e1d675f649e154611 (diff) | |
| download | homebrew-e67dd599e9243149fe17fc9e8e1c3169e6d3101e.tar.bz2 | |
rp 1.0
Closes #23244.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/rp.rb | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Library/Formula/rp.rb b/Library/Formula/rp.rb new file mode 100644 index 000000000..7fcaa3057 --- /dev/null +++ b/Library/Formula/rp.rb @@ -0,0 +1,44 @@ +require 'formula' + +class Rp < Formula + homepage 'http://0vercl0k.github.io/rp/' + head 'https://github.com/0vercl0k/rp.git' + url 'https://github.com/0vercl0k/rp/archive/v1.tar.gz' + version '1.0' + sha1 '01f55e396048472ee8a0e452cc597858733ee390' + + depends_on :macos => :lion + depends_on 'cmake' => :build + + def patches + # In order to have the same binary name in 32 and 64 bits. + DATA + end + + def install + mkdir 'build' do + system "cmake", ".." + system "make" + end + bin.install 'bin/rp-osx' + end +end + +__END__ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 79d576b..34c2afa 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -36,12 +36,10 @@ set(RP_NAME "${RP_NAME}-${RP_PLAT}") + + if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT(optX86BUILD)) + set(FLAG_CXX "-m64") +- set(RP_NAME "${RP_NAME}-x64") + set(BEA_LIBRARY "BeaEngine.x64.${RP_PLAT}.${EXTENSION_LIBRARY}") + set(ARGTABLE_LIBRARY "argtable2.x64.${RP_PLAT}.${EXTENSION_LIBRARY}") + else() + set(FLAG_CXX "-m32") +- set(RP_NAME "${RP_NAME}-x86") + set(BEA_LIBRARY "BeaEngine.x86.${RP_PLAT}.${EXTENSION_LIBRARY}") + set(ARGTABLE_LIBRARY "argtable2.x86.${RP_PLAT}.${EXTENSION_LIBRARY}") + endif(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT(optX86BUILD)) |
