-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (23 loc) · 802 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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
WRKSRC= ${WRKDIR}/${PORTNAME}-full-${PORTVERSION}
WRKSRC_SUBDIR= build/unix
USES= gmake
MAKE_ARGS= CC=${CC} CXX=${CXX} LinkerName=${CXX} SharedObjectLinkerName="${CXX} -shared -fPIC"
ONLY_FOR_ARCHS= amd64 armv6 i386 mips
USE_LDCONFIG= yes
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>