summaryrefslogtreecommitdiff
path: root/homebrew/bullet
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/bullet
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/bullet')
-rw-r--r--homebrew/bullet/.beer33
-rw-r--r--homebrew/bullet/.make.sh-auto8
-rw-r--r--homebrew/bullet/_metadata/description1
-rw-r--r--homebrew/bullet/_metadata/homepage1
-rw-r--r--homebrew/bullet/_metadata/name1
-rw-r--r--homebrew/bullet/_metadata/version1
-rwxr-xr-xhomebrew/bullet/download.sh1
7 files changed, 46 insertions, 0 deletions
diff --git a/homebrew/bullet/.beer b/homebrew/bullet/.beer
new file mode 100644
index 000000000..8838bfd68
--- /dev/null
+++ b/homebrew/bullet/.beer
@@ -0,0 +1,33 @@
+{
+ "name": "Bullet",
+ "description": "Physics SDK",
+ "url": "https://github.com/bulletphysics/bullet3/archive/2.88.tar.gz",
+ "mirror": null,
+ "homepage": "https://bulletphysics.org/",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": true
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "args = std_cmake_args + %W[",
+ "-DBUILD_BULLET2_DEMOS=OFF",
+ "-DBUILD_PYBULLET=OFF",
+ "-DBUILD_UNIT_TESTS=OFF",
+ "-DCMAKE_INSTALL_RPATH=#{lib}",
+ "-DINSTALL_EXTRA_LIBS=ON",
+ "]",
+ "mkdir \"build\" do",
+ "system \"cmake\", \"..\", *args, \"-DBUILD_SHARED_LIBS=ON\"",
+ "system \"make\", \"install\"",
+ "system \"make\", \"clean\"",
+ "system \"cmake\", \"..\", *args, \"-DBUILD_SHARED_LIBS=OFF\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "2.88",
+ "file": "bullet.rb"
+} \ No newline at end of file
diff --git a/homebrew/bullet/.make.sh-auto b/homebrew/bullet/.make.sh-auto
new file mode 100644
index 000000000..35f34aeda
--- /dev/null
+++ b/homebrew/bullet/.make.sh-auto
@@ -0,0 +1,8 @@
+pkg:setup
+args = std_cmake_args + %W[-DBUILD_BULLET2_DEMOS=OFF -DBUILD_PYBULLET=OFF -DBUILD_UNIT_TESTS=OFF -DCMAKE_INSTALL_RPATH=#{lib} -DINSTALL_EXTRA_LIBS=ON ]
+mkdir "build" && cd build
+cmake .. *args -DBUILD_SHARED_LIBS=ON
+make DESTDIR=${PKG_DEST} install
+make clean
+cmake .. *args -DBUILD_SHARED_LIBS=OFF
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/bullet/_metadata/description b/homebrew/bullet/_metadata/description
new file mode 100644
index 000000000..0835a0308
--- /dev/null
+++ b/homebrew/bullet/_metadata/description
@@ -0,0 +1 @@
+Physics SDK
diff --git a/homebrew/bullet/_metadata/homepage b/homebrew/bullet/_metadata/homepage
new file mode 100644
index 000000000..ed490c622
--- /dev/null
+++ b/homebrew/bullet/_metadata/homepage
@@ -0,0 +1 @@
+https://bulletphysics.org/
diff --git a/homebrew/bullet/_metadata/name b/homebrew/bullet/_metadata/name
new file mode 100644
index 000000000..cea2d8f0a
--- /dev/null
+++ b/homebrew/bullet/_metadata/name
@@ -0,0 +1 @@
+Bullet
diff --git a/homebrew/bullet/_metadata/version b/homebrew/bullet/_metadata/version
new file mode 100644
index 000000000..663ae72bc
--- /dev/null
+++ b/homebrew/bullet/_metadata/version
@@ -0,0 +1 @@
+2.88
diff --git a/homebrew/bullet/download.sh b/homebrew/bullet/download.sh
new file mode 100755
index 000000000..02532fa56
--- /dev/null
+++ b/homebrew/bullet/download.sh
@@ -0,0 +1 @@
+wget https://github.com/bulletphysics/bullet3/archive/2.88.tar.gz \ No newline at end of file