summaryrefslogtreecommitdiff
path: root/homebrew/snap7
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/snap7')
-rw-r--r--homebrew/snap7/.beer20
-rw-r--r--homebrew/snap7/.make.sh-auto4
-rw-r--r--homebrew/snap7/_metadata/description1
-rw-r--r--homebrew/snap7/_metadata/homepage1
-rw-r--r--homebrew/snap7/_metadata/name1
-rw-r--r--homebrew/snap7/_metadata/version1
-rwxr-xr-xhomebrew/snap7/download.sh1
7 files changed, 29 insertions, 0 deletions
diff --git a/homebrew/snap7/.beer b/homebrew/snap7/.beer
new file mode 100644
index 000000000..49a9834e1
--- /dev/null
+++ b/homebrew/snap7/.beer
@@ -0,0 +1,20 @@
+{
+ "name": "Snap7",
+ "description": "Ethernet communication suite that works natively with Siemens S7 PLCs",
+ "url": "https://downloads.sourceforge.net/project/snap7/1.4.2/snap7-full-1.4.2.7z",
+ "mirror": null,
+ "homepage": "https://snap7.sourceforge.io/",
+ "depends": [],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "lib.mkpath",
+ "system \"make\", \"-C\", \"build/osx\",",
+ "\"-f\", \"#{MacOS.preferred_arch}_osx.mk\",",
+ "\"install\", \"LibInstall=#{lib}\"",
+ "include.install \"release/Wrappers/c-cpp/snap7.h\""
+ ],
+ "version": "1.4.2.7",
+ "file": "snap7.rb"
+} \ No newline at end of file
diff --git a/homebrew/snap7/.make.sh-auto b/homebrew/snap7/.make.sh-auto
new file mode 100644
index 000000000..6add77103
--- /dev/null
+++ b/homebrew/snap7/.make.sh-auto
@@ -0,0 +1,4 @@
+pkg:setup
+lib.mkpath
+make -C build/osx -f #{MacOS.preferred_arch}_osx.mk DESTDIR=${PKG_DEST} install LibInstall=${PKG_TAPF}/lib
+include.install "release/Wrappers/c-cpp/snap7.h"
diff --git a/homebrew/snap7/_metadata/description b/homebrew/snap7/_metadata/description
new file mode 100644
index 000000000..42d602145
--- /dev/null
+++ b/homebrew/snap7/_metadata/description
@@ -0,0 +1 @@
+Ethernet communication suite that works natively with Siemens S7 PLCs
diff --git a/homebrew/snap7/_metadata/homepage b/homebrew/snap7/_metadata/homepage
new file mode 100644
index 000000000..415aa9c5d
--- /dev/null
+++ b/homebrew/snap7/_metadata/homepage
@@ -0,0 +1 @@
+https://snap7.sourceforge.io/
diff --git a/homebrew/snap7/_metadata/name b/homebrew/snap7/_metadata/name
new file mode 100644
index 000000000..f066506a0
--- /dev/null
+++ b/homebrew/snap7/_metadata/name
@@ -0,0 +1 @@
+Snap7
diff --git a/homebrew/snap7/_metadata/version b/homebrew/snap7/_metadata/version
new file mode 100644
index 000000000..c23f9248a
--- /dev/null
+++ b/homebrew/snap7/_metadata/version
@@ -0,0 +1 @@
+1.4.2.7
diff --git a/homebrew/snap7/download.sh b/homebrew/snap7/download.sh
new file mode 100755
index 000000000..84713f772
--- /dev/null
+++ b/homebrew/snap7/download.sh
@@ -0,0 +1 @@
+wget https://downloads.sourceforge.net/project/snap7/1.4.2/snap7-full-1.4.2.7z \ No newline at end of file