ptex 2.1.10
Closes Homebrew/homebrew#49358. Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
This commit is contained in:
parent
8498998999
commit
08992982cd
1 changed files with 6 additions and 24 deletions
|
@ -1,32 +1,14 @@
|
|||
class Ptex < Formula
|
||||
desc "Texture mapping system"
|
||||
homepage "http://ptex.us"
|
||||
url "https://github.com/wdas/ptex/archive/v2.0.42.tar.gz"
|
||||
sha256 "4abdee8b51fa239d576d6b5a70f10d9ea56f51fa50408fe6b9440e11fe646658"
|
||||
url "https://github.com/wdas/ptex/archive/v2.1.10.tar.gz"
|
||||
sha256 "0fb978e57f5e287c34b74896e3a9564a202d8806c75a18dd83855ba6d7c02122"
|
||||
|
||||
# fix utils/Makefile not to expect a git repo for version info
|
||||
patch :DATA
|
||||
depends_on "cmake" => :build
|
||||
|
||||
def install
|
||||
ENV.deparallelize # not parallel safe due to weird dep without rules for ../ptex/libPtex.a in utils/Makefile
|
||||
system "make -C src"
|
||||
prefix.install Dir["install/*"]
|
||||
system "make", "prefix=#{prefix}"
|
||||
system "make", "test"
|
||||
system "make", "install"
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
diff --git a/src/utils/Makefile b/src/utils/Makefile
|
||||
index 7638871..08a491a 100644
|
||||
--- a/src/utils/Makefile
|
||||
+++ b/src/utils/Makefile
|
||||
@@ -38,8 +38,8 @@ all: install $(ALL)
|
||||
clean:
|
||||
rm -f $(ALL) $(INSTALLPATHS)
|
||||
|
||||
-PTEX_SHA = $(shell git rev-list --max-count=1 HEAD)
|
||||
-PTEX_VER = $(shell git describe $(PTEX_SHA)) ($(PTEX_SHA))
|
||||
+PTEX_SHA = 2f04c865fc921c4f90c581f1b6c04c566865c98a
|
||||
+PTEX_VER = v2.0.32 ($(PTEX_SHA))
|
||||
|
||||
ptxinfo: ptxinfo.cpp $(PTEX)
|
||||
$(CXX) $(CXXFLAGS) -DPTEX_VER='"$(PTEX_VER)"' $^ -o $@ $(LIBS)
|
||||
|
|
Loading…
Reference in a new issue