Date: Sun, 6 Jan 2019 13:33:31 +0000 (UTC) From: Kurt Jaeger <pi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r489494 - in head/comms: . snap7 snap7/files Message-ID: <201901061333.x06DXVEp068447@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pi Date: Sun Jan 6 13:33:31 2019 New Revision: 489494 URL: https://svnweb.freebsd.org/changeset/ports/489494 Log: New port: comms/snap7 Snap7, through three specialized components: Client and the inedited Server and Partner, allows you to definitively integrate your PC based systems into a PLC automation chain. Designed to transfer large amounts of hi-speed data in industrial facilities, it scales easily, down to small Linux Arm boards such as Raspberry PI. Hi level object oriented wrappers are provided, currently C/C++, .NET/Mono, Pascal, LabVIEW, Python with many source code examples. Very detailed documentation provided. WWW: http://sourceforge.net/projects/snap7/ PR: 215409 Submitted by: vova@fbsd.ru Added: head/comms/snap7/ head/comms/snap7/Makefile (contents, props changed) head/comms/snap7/distinfo (contents, props changed) head/comms/snap7/files/ head/comms/snap7/files/patch-arm__v6__bsd.mk (contents, props changed) head/comms/snap7/files/patch-common.mk (contents, props changed) head/comms/snap7/files/patch-mips__bsd.mk (contents, props changed) head/comms/snap7/pkg-descr (contents, props changed) Modified: head/comms/Makefile Modified: head/comms/Makefile ============================================================================== --- head/comms/Makefile Sun Jan 6 13:28:24 2019 (r489493) +++ head/comms/Makefile Sun Jan 6 13:33:31 2019 (r489494) @@ -164,6 +164,7 @@ SUBDIR += seyon SUBDIR += sms_client SUBDIR += smstools3 + SUBDIR += snap7 SUBDIR += spandsp SUBDIR += splat SUBDIR += sredird Added: head/comms/snap7/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/snap7/Makefile Sun Jan 6 13:33:31 2019 (r489494) @@ -0,0 +1,34 @@ +# Created by: Vladimir Grebenschikov +# $FreeBSD$ + +PORTNAME= snap7 +PORTVERSION= 1.4.2 +CATEGORIES= comms +MASTER_SITES= SF/snap7/${PORTVERSION} +DISTNAME= ${PORTNAME}-full-${PORTVERSION} +EXTRACT_SUFX= .7z + +MAINTAINER= vova@fbsd.ru +COMMENT= Multi-platform Ethernet S7 PLC communication suite + +LICENSE= GPLv3 + +ONLY_FOR_ARCHS= amd64 armv6 i386 mips + +USES= gmake +USE_LDCONFIG= yes + +WRKSRC= ${WRKDIR}/${PORTNAME}-full-${PORTVERSION} +WRKSRC_SUBDIR= build/unix + +MAKE_ARGS= CC=${CC} CXX=${CXX} LinkerName=${CXX} SharedObjectLinkerName="${CXX} -shared -fPIC" + +PLIST_FILES= lib/libsnap7.so include/snap7.h share/examples/snap7/c-cpp/snap7.cpp + +SNAP_ARCH= ${ARCH:S/amd64/x86_64/:S/armv6/arm_v6/} +MAKEFILE= ${SNAP_ARCH}_bsd.mk + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsnap7.so + +.include <bsd.port.mk> Added: head/comms/snap7/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/snap7/distinfo Sun Jan 6 13:33:31 2019 (r489494) @@ -0,0 +1,3 @@ +TIMESTAMP = 1546780813 +SHA256 (snap7-full-1.4.2.7z) = 1f4270cde8684957770a10a1d311c226e670d9589c69841a9012e818f7b9f80e +SIZE (snap7-full-1.4.2.7z) = 20591252 Added: head/comms/snap7/files/patch-arm__v6__bsd.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/snap7/files/patch-arm__v6__bsd.mk Sun Jan 6 13:33:31 2019 (r489494) @@ -0,0 +1,18 @@ +--- arm_v6_bsd.mk.orig 2016-12-20 09:52:10 UTC ++++ arm_v6_bsd.mk +@@ -0,0 +1,15 @@ ++## ++## ARMHF V6 tested on ++## - Raspberry board - ++## ++## To improve the build speed in small systems disable -pedantic ++## switch in CXXFLAGS ++## ++TargetCPU :=arm_v6 ++OS :=bsd ++CXXFLAGS := -O3 -g -fPIC -pedantic ++ ++# Standard part ++ ++include common.mk ++ Added: head/comms/snap7/files/patch-common.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/snap7/files/patch-common.mk Sun Jan 6 13:33:31 2019 (r489494) @@ -0,0 +1,21 @@ +--- common.mk.orig 2014-04-16 08:16:20 UTC ++++ common.mk +@@ -22,7 +22,9 @@ LinkOptions := -O3 + IncludePath := $(IncludeSwitch). $(IncludeSwitch)../../src/sys $(IncludeSwitch)../../src/core $(IncludeSwitch)../../src/lib + Libs := $(LibrarySwitch)pthread $(LibrarySwitch)rt + LibPath := $(LibraryPathSwitch). +-LibInstall := /usr/lib ++LibInstall := $(DESTDIR)/$(PREFIX)/lib ++IncInstall := $(DESTDIR)/$(PREFIX)/include ++WrapperInstall := $(DESTDIR)/$(PREFIX)/share/examples/snap7/c-cpp + + ## + ## Common variables (CXXFLAGS varies across platforms) +@@ -108,4 +110,6 @@ clean: + + install: all + cp -f $(OutputFile) $(LibInstall) +- ++ cp -f ../../release/Wrappers/c-cpp/snap7.h $(IncInstall) ++ $(MakeDirCommand) $(WrapperInstall) ++ cp -f ../../release/Wrappers/c-cpp/snap7.cpp $(WrapperInstall) Added: head/comms/snap7/files/patch-mips__bsd.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/snap7/files/patch-mips__bsd.mk Sun Jan 6 13:33:31 2019 (r489494) @@ -0,0 +1,15 @@ +--- mips_bsd.mk.orig 2016-12-20 10:44:15 UTC ++++ mips_bsd.mk +@@ -0,0 +1,12 @@ ++## ++## mips BSD based (FreeBSD etc.) Makefile ++## Use gmake instead of make ++## ++TargetCPU :=mips ++OS :=bsd ++CXXFLAGS := -O3 -fPIC -pedantic ++ ++# Standard part ++ ++include common.mk ++ Added: head/comms/snap7/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/snap7/pkg-descr Sun Jan 6 13:33:31 2019 (r489494) @@ -0,0 +1,13 @@ +Snap7, through three specialized components: Client and the inedited Server +and Partner, allows you to definitively integrate your PC based systems into +a PLC automation chain. + +Designed to transfer large amounts of hi-speed data in industrial facilities, +it scales easily, down to small Linux Arm boards such as Raspberry PI. + +Hi level object oriented wrappers are provided, currently C/C++, .NET/Mono, +Pascal, LabVIEW, Python with many source code examples. + +Very detailed documentation provided. + +WWW: http://sourceforge.net/projects/snap7/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901061333.x06DXVEp068447>