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