2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2015 Alexander Pyhalov
15 include ..
/..
/..
/make-rules
/shared-macros.mk
17 COMPONENT_NAME
= synergy
18 COMPONENT_VERSION
= 1.7.6
20 COMPONENT_PROJECT_URL
= http
://synergy-project.org
21 COMPONENT_SUMMARY
= Synergy
: Mouse and Keyboard Sharing
22 COMPONENT_SRC
= $(COMPONENT_NAME
)-core-
$(COMPONENT_VERSION
)-stable
23 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
24 COMPONENT_ARCHIVE_HASH
= \
25 sha256
:fde047d0427fbbc746156dfdbcbcc65ad97da5ebe6e154f7f8b22a8b16e9ff84
26 COMPONENT_ARCHIVE_URL
= https
://github.com
/symless
/synergy-core
/archive
/v
$(COMPONENT_VERSION
)-stable.
tar.gz
27 COMPONENT_LICENSE
= GPLv2
28 COMPONENT_LICENSE_FILE
= LICENSE
29 COMPONENT_FMRI
= desktop
/synergy
30 COMPONENT_CLASSIFICATION
=Applications
/System Utilities
32 include $(WS_MAKE_RULES
)/prep.mk
33 include $(WS_MAKE_RULES
)/cmake.mk
34 include $(WS_MAKE_RULES
)/ips.mk
38 LDFLAGS
+= -lnsl
-lsocket
40 CMAKE_OPTIONS
+= CMAKE_BUILD_TYPE
=Release
42 COMPONENT_PREP_ACTION
+= ($(RM
) $(COMPONENT_SRC
)/src
/test/CMakeLists.txt
)
44 MY_INSTALL_32
= $(BUILD_DIR_32
)/.my_installed
46 $(MY_INSTALL_32
): $(BUILD_32
)
48 $(MKDIR
) $(PROTO_DIR
)/usr
/bin
49 $(CP
) $(BUILD_DIR_32
)/bin
/{synergyc
,synergyd
,synergys
} $(PROTO_DIR
)/usr
/bin
50 $(MKDIR
) $(PROTO_DIR
)/usr
/lib
/synergy
/plugins
51 $(INSTALL
) -m
0555 $(BUILD_DIR_32
)/bin
/plugins
/libns.so
$(PROTO_DIR
)/usr
/lib
/synergy
/plugins
52 $(MKDIR
) $(PROTO_DIR
)/usr
/share
/man
/man1
53 $(CP
) $(SOURCE_DIR
)/doc
/synergyc.man
$(PROTO_DIR
)/usr
/share
/man
/man1
/synergyc
.1
54 $(CP
) $(SOURCE_DIR
)/doc
/synergys.man
$(PROTO_DIR
)/usr
/share
/man
/man1
/synergys
.1
55 $(TOUCH
) $(MY_INSTALL_32
)
60 install: $(MY_INSTALL_32
)
64 # Auto-generated dependencies
65 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
66 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
67 REQUIRED_PACKAGES
+= library
/security
/openssl
68 REQUIRED_PACKAGES
+= system
/library
69 REQUIRED_PACKAGES
+= x11
/library
/libx11
70 REQUIRED_PACKAGES
+= x11
/library
/libxext
71 REQUIRED_PACKAGES
+= x11
/library
/libxi
72 REQUIRED_PACKAGES
+= x11
/library
/libxinerama
73 REQUIRED_PACKAGES
+= x11
/library
/libxtst