diff --git a/comms/snap7/Makefile b/comms/snap7/Makefile index f2476426b3d0..f3f41acbeb59 100644 --- a/comms/snap7/Makefile +++ b/comms/snap7/Makefile @@ -1,32 +1,32 @@ # Created by: Vladimir Grebenschikov PORTNAME= snap7 PORTVERSION= 1.4.2 DISTVERSIONPREFIX= full- CATEGORIES= comms MASTER_SITES= SF/snap7/${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 +ONLY_FOR_ARCHS= amd64 armv6 i386 mips powerpc64 powerpc USES= gmake USE_LDCONFIG= yes 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 diff --git a/comms/snap7/files/patch-powerpc64__bsd.mk b/comms/snap7/files/patch-powerpc64__bsd.mk new file mode 100644 index 000000000000..ff54b65e40d5 --- /dev/null +++ b/comms/snap7/files/patch-powerpc64__bsd.mk @@ -0,0 +1,15 @@ +--- powerpc64_bsd.mk.orig 2016-12-20 10:44:15 UTC ++++ powerpc64_bsd.mk +@@ -0,0 +1,12 @@ ++## ++## powerpc64 BSD based (FreeBSD etc.) Makefile ++## Use gmake instead of make ++## ++TargetCPU :=powerpc64 ++OS :=bsd ++CXXFLAGS := -O3 -fPIC -pedantic ++ ++# Standard part ++ ++include common.mk ++ diff --git a/comms/snap7/files/patch-powerpc__bsd.mk b/comms/snap7/files/patch-powerpc__bsd.mk new file mode 100644 index 000000000000..2215e926f14d --- /dev/null +++ b/comms/snap7/files/patch-powerpc__bsd.mk @@ -0,0 +1,15 @@ +--- powerpc_bsd.mk.orig 2016-12-20 10:44:15 UTC ++++ powerpc_bsd.mk +@@ -0,0 +1,12 @@ ++## ++## powerpc BSD based (FreeBSD etc.) Makefile ++## Use gmake instead of make ++## ++TargetCPU :=powerpc ++OS :=bsd ++CXXFLAGS := -O3 -fPIC -pedantic ++ ++# Standard part ++ ++include common.mk ++