Makefile revision 1196
c40265eba0c99708887d68e67901924065ba2514Brian Wellington###############################################################################
48cbc7cd1eb8e7620dce2b5cda587bbd3a459d59Tinderbox User#
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews# xf86-input-synaptics Makefile
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# Permission is hereby granted, free of charge, to any person obtaining a
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# copy of this software and associated documentation files (the "Software"),
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# to deal in the Software without restriction, including without limitation
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# the rights to use, copy, modify, merge, publish, distribute, sublicense,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and/or sell copies of the Software, and to permit persons to whom the
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# Software is furnished to do so, subject to the following conditions:
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews#
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# The above copyright notice and this permission notice (including the next
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# paragraph) shall be included in all copies or substantial portions of the
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# Software.
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# DEALINGS IN THE SOFTWARE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
7208386cd37a2092c70eddf80cf29519b16c4c80Mark Andrews# Package name used in tarballs
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_NAME=xf86-input-synaptics
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Version number (used in path names)
d8620c7234281056fdfd2ee40cf16636b8281092Tinderbox UserMODULE_VERSION=1.4.1
d8620c7234281056fdfd2ee40cf16636b8281092Tinderbox User
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Checksums for upstream tarball
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARBALL_MD5 = 2dac10f93918ed5bf7d1039d56880cf4
48cbc7cd1eb8e7620dce2b5cda587bbd3a459d59Tinderbox UserTARBALL_SHA1 = e41201476f4bc8658291808d2d6ef2e0535179ae
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Man pages to apply Sun footer to & attributes to list
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSUNTOUCHED_MANPAGES=man/*.man
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_STABILITY=Volatile
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Extra flags to pass to configure script
7208386cd37a2092c70eddf80cf29519b16c4c80Mark AndrewsMODULE_CONFIG_OPTS= --bindir=$(X11_SERVERLIBS_DIR)
7208386cd37a2092c70eddf80cf29519b16c4c80Mark Andrews
7208386cd37a2092c70eddf80cf29519b16c4c80Mark Andrews# Libraries/modules to link with
7208386cd37a2092c70eddf80cf29519b16c4c80Mark AndrewsMODULE_LD_OPTIONS= -z ignore -lm
7208386cd37a2092c70eddf80cf29519b16c4c80Mark Andrews
7208386cd37a2092c70eddf80cf29519b16c4c80Mark Andrews# Override linker flags for programs
7208386cd37a2092c70eddf80cf29519b16c4c80Mark AndrewsSYN_PROG_LDFLAGS=$(MAPFILES_FOR_PROGS)
f6da30bb5447c23d880b09f601441e70c5313557Mark AndrewsPROGRAM_VARS = synclient syndaemon
7208386cd37a2092c70eddf80cf29519b16c4c80Mark AndrewsPROGRAM_MAKEFLAGS = $(PROGRAM_VARS:%=%_LDADD="$(SYN_PROG_LDFLAGS)")
7208386cd37a2092c70eddf80cf29519b16c4c80Mark AndrewsMODULE_BUILD_MAKEFLAGS = AM_MAKEFLAGS='$(PROGRAM_MAKEFLAGS)'
7208386cd37a2092c70eddf80cf29519b16c4c80Mark Andrews
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Extra install rules
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_ADD_INSTALL_TARGETS = install_fdi
48cbc7cd1eb8e7620dce2b5cda587bbd3a459d59Tinderbox User
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Fix path for installing headers in proto area
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_INSTALL_MAKEFLAGS = sdkdir='$(XORG_SDK_INCLUDES_DIR)'
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Install xorg-synaptics.pc to /usr/share since it defines the architecture
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# independent header files in /usr/include and not any library flags
f7b41fd9291b8f4dba27e2b57e1d93f0913a4f1dMark AndrewsMODULE_PKGCONFIG_DIR=$(PKGCONFIG_DIR_SHARE)
f7b41fd9291b8f4dba27e2b57e1d93f0913a4f1dMark AndrewsMODULE_PKGCONFIG_DIR_SET=yes
f7b41fd9291b8f4dba27e2b57e1d93f0913a4f1dMark Andrews
f7b41fd9291b8f4dba27e2b57e1d93f0913a4f1dMark Andrewsinclude ../Makefile.inc
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFDI_DIR=$(PROTODIR)/etc/hal/fdi/policy/10osvendor
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(FDI_DIR):
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein mkdir -p $(FDI_DIR)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininstall_fdi: $(SOURCE_TARGETS) $(FDI_DIR)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(INSTALL_SCRIPT) -m 0444 $(SOURCE_DIR)/conf/11-x11-synaptics.fdi \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(FDI_DIR)/
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein