Makefile revision 1447
791N/A###############################################################################
791N/A#
1302N/A# synergy application to share input devices across computers
791N/A#
1339N/A# Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
791N/A#
791N/A# Permission is hereby granted, free of charge, to any person obtaining a
919N/A# copy of this software and associated documentation files (the "Software"),
919N/A# to deal in the Software without restriction, including without limitation
919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A# and/or sell copies of the Software, and to permit persons to whom the
919N/A# Software is furnished to do so, subject to the following conditions:
919N/A#
919N/A# The above copyright notice and this permission notice (including the next
919N/A# paragraph) shall be included in all copies or substantial portions of the
919N/A# Software.
919N/A#
919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A# DEALINGS IN THE SOFTWARE.
791N/A#
791N/A#
791N/A
791N/A# Package name used in tarballs
1035N/AMODULE_NAME=synergy
791N/A
970N/A# pkg(5) name we deliver the files in (override default)
970N/AMODULE_PKGNAME=desktop/synergy
970N/AMODULE_PKGNAME_SET=yes
970N/A
970N/A# Package classification (override default)
970N/AMODULE_PKGCLASS=Applications/System Utilities
970N/AMODULE_PKGCLASS_SET=yes
970N/A
970N/A# Package metadata
970N/AUPSTREAM = Synergy
1033N/AUPSTREAM_URL = http://synergy-foss.org/
970N/AUPSTREAM_SET = yes
970N/A
970N/AMODULE_LICENSE = GPLv2
970N/AMODULE_LICENSE_SET = yes
1003N/AMODULE_LICENSE_PREPEND = $(GPL_CHOICE_FILE)
970N/A
1339N/AMODULE_DESC = the Synergy mouse and keyboard sharing system
1302N/AORACLE_TPNO = 3822
1302N/A
791N/A# Version number (used in path names)
1033N/AMODULE_VERSION=1.3.4
791N/A
911N/A# Checksums for upstream tarball
1033N/ATARBALL_MD5 = 2c565afe5f920d363eef38dd97449b73
1033N/ATARBALL_SHA1 = 17b2dc2611974189ad0d54367b6c96b7932d9e32
911N/A
791N/A# Where to install synergy files
791N/AMODULE_PREFIX=/usr
791N/AMODULE_PREFIX_SET=yes
791N/A
791N/A# Source tarball
1033N/ASOURCE_TARBALL_NAME=synergy-plus-$(MODULE_VERSION).tar.gz
791N/ASOURCE_TARBALL_NAME_SET=yes
1035N/ASOURCE_DIRNAME=synergy-plus-$(MODULE_VERSION)
1035N/ASOURCE_DIRNAME_SET=yes
791N/A
1033N/ASOURCE_URL=http://synergy-plus.googlecode.com/files/$(SOURCE_TARBALL_NAME)
791N/ASOURCE_URL_SET=yes
791N/A
791N/A# Patches to apply to source after unpacking, in order
1033N/ASOURCE_PATCHES = CConfig.cpp.patch
791N/A
791N/A# Man pages to apply Sun footer to & attributes to list
791N/A#SUNTOUCHED_MANPAGES=man/*.man
791N/AMODULE_STABILITY=Committed
791N/AUSE_DEFAULT_CONFIG_ENV=no
791N/A
1196N/A# Haven't made sure it's 64-bit clean yet, so continue building 32-bit for now
1196N/ABUILD_TYPES_SET=yes
1196N/ABUILD_TYPES=32
1196N/A
1033N/AMODULE_CXXFLAGS = -library=no%Cstd -library=Crun
1196N/AMODULE_CXXFLAGS += -m32 $(OPTIM) -xspace
791N/AMODULE_CXXFLAGS += -features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic
791N/AMODULE_CXXFLAGS += -instances=global -template=geninlinefuncs -verbose=template
791N/AMODULE_CXXFLAGS += -xlang=c99 -xbuiltin=%none
1033N/AMODULE_CXXFLAGS += -Qoption ccfe ++boolflag:sunwcch=false
791N/AMODULE_CXXFLAGS += -Qoption ccfe -features=gcc
791N/AMODULE_CXXFLAGS += -Qoption ccfe -features=zla
791N/AMODULE_CXXFLAGS += -mt -D_REENTRANT -D__EXTENSIONS__ -D_LARGEFILE_SOURCE
791N/AMODULE_CXXFLAGS += -D_FILE_OFFSET_BITS=64
791N/AMODULE_CXXFLAGS += -D_XPG5 -D_XOPEN_SOURCE=500
791N/AMODULE_CXXFLAGS += -D_POSIX_PTHREAD_SEMANTICS
791N/AMODULE_CXXFLAGS += -DPIC -KPIC -DSYSAPI_UNIX=1 -DWINAPI_XWINDOWS=1
791N/AMODULE_CPPFLAGS = -DSYSAPI_UNIX=1 \
791N/A -DWINAPI_XWINDOWS=1 \
1033N/A -I/usr/include/stdcxx4/ansi \
1033N/A -I/usr/include/stdcxx4/tr1 \
1033N/A -I/usr/include/stdcxx4 \
791N/A -I$(PROTODIR)$(X11_INCLUDES_DIR) \
791N/A -I$(PROTODIR)/usr/include \
791N/A -I$(PROTODIR)/usr/include/freetype2
791N/AMODULE_LDFLAGS = -L$(PROTODIR)/usr/lib$(ARCHLIBSUBDIR) \
791N/A -L$(PROTODIR)$(X11_DIR)/lib$(ARCHLIBSUBDIR) \
791N/A -R$(X11_DIR)/lib$(ARCHLIBSUBDIR) \
1447N/A -KPIC -Bdynamic $(ZDISCARD_UNUSED_DEP) \
1447N/A -lstdcxx4 -lCrun -lsocket -lnsl
1447N/AMODULE_LD_OPTIONS = $(ZDISCARD_UNUSED_DEP)
791N/AINSTALL = /usr/bin/ginstall -c
791N/AMODULE_MAKE=$(GNUMAKE)
791N/AMODULE_MAKE_SET=yes
791N/A
791N/AMODULE_ENV = \
1033N/A SHELL="/bin/ksh93" \
791N/A CC="$(CC)" \
791N/A CXX="$(CXX)" \
801N/A CXXFLAGS="$(CXXFLAGS) $(MODULE_CXXFLAGS)" \
791N/A CPPFLAGS="$(MODULE_CPPFLAGS)" \
791N/A CPP="$(CC) -E $(MODULE_CPPFLAGS) $(CPPFLAGS)" \
1196N/A CXXCPP="$(CXX) -E $(MODULE_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS)" \
1196N/A LDFLAGS="$(PROG_LDFLAGS) $(MODULE_LDFLAGS)" \
791N/A LD="$(CXX) $(CXXFLAGS) $(LDFLAGS)" \
1033N/A CXXLD="$(CXX) $(MODULE_CXXFLAGS) $(CXXFLAGS) $(MODULE_LDFLAGS) $(LDFLAGS)" \
791N/A INSTALL="$(INSTALL)" \
791N/A MAKE=$(GNUMAKE) \
791N/A GNUMAKE=$(GNUMAKE) \
791N/A LD_OPTIONS="$(LD_OPTIONS)"
791N/A
1033N/AMODULE_CONFIG_OPTS = --disable-debug
1033N/A
791N/AMODULE_CONFIG_ENV = $(MODULE_ENV)
791N/AMODULE_BUILD_ENV = $(CONFIG_ENV)
791N/A
791N/Ainclude ../Makefile.inc