Makefile revision 1281
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff###############################################################################
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence#
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence# xf86-input-synaptics Makefile
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Permission is hereby granted, free of charge, to any person obtaining a
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# copy of this software and associated documentation files (the "Software"),
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# to deal in the Software without restriction, including without limitation
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence# the rights to use, copy, modify, merge, publish, distribute, sublicense,
d3498432822fb487e58f8f72bb5f880dd8307d7dMichael Sawyer# and/or sell copies of the Software, and to permit persons to whom the
d3498432822fb487e58f8f72bb5f880dd8307d7dMichael Sawyer# Software is furnished to do so, subject to the following conditions:
d3498432822fb487e58f8f72bb5f880dd8307d7dMichael Sawyer#
d3498432822fb487e58f8f72bb5f880dd8307d7dMichael Sawyer# The above copyright notice and this permission notice (including the next
d3498432822fb487e58f8f72bb5f880dd8307d7dMichael Sawyer# paragraph) shall be included in all copies or substantial portions of the
d3498432822fb487e58f8f72bb5f880dd8307d7dMichael Sawyer# Software.
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence#
95be83b467e2384d414693982318a5c06cccf1d7Andreas Gustafsson# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
f9354808d122036e66e9f007a4bb12d4aa936aaeAndreas Gustafsson# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
f9354808d122036e66e9f007a4bb12d4aa936aaeAndreas Gustafsson# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
f9354808d122036e66e9f007a4bb12d4aa936aaeAndreas Gustafsson# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
f9354808d122036e66e9f007a4bb12d4aa936aaeAndreas Gustafsson# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington# DEALINGS IN THE SOFTWARE.
58007c5fde59b756174280d26916eb27f593e6ccBob Halley#
58007c5fde59b756174280d26916eb27f593e6ccBob Halley#
58007c5fde59b756174280d26916eb27f593e6ccBob Halley
58007c5fde59b756174280d26916eb27f593e6ccBob Halley# Package name used in tarballs
58007c5fde59b756174280d26916eb27f593e6ccBob HalleyMODULE_NAME=xf86-input-synaptics
58007c5fde59b756174280d26916eb27f593e6ccBob Halley
58007c5fde59b756174280d26916eb27f593e6ccBob Halley# Version number (used in path names)
58007c5fde59b756174280d26916eb27f593e6ccBob HalleyMODULE_VERSION=1.5.99.903
58007c5fde59b756174280d26916eb27f593e6ccBob Halley
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Checksums for upstream tarball
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffTARBALL_MD5 = 56f125403497c55e0c88130b90c1c7b2
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffTARBALL_SHA1 = adb8e28a8aced2ff660a4058d35b8656ffdf46ce
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffTARBALL_SHA256= d76f631e8e851ab631f9fde4ec2585be6702c5a28e2a951c9ad9545baf0fb0e2
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Patches to apply to source after unpacking, in order
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas GustafssonSOURCE_PATCHES= 7164323.patch
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson# Man pages to apply Sun footer to & attributes to list
615f17d0171dd807c6803b25a255a8ea2051fbd4David LawrenceSUNTOUCHED_MANPAGES=man/*.man
615f17d0171dd807c6803b25a255a8ea2051fbd4David LawrenceMODULE_STABILITY=Volatile
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Extra flags to pass to configure script
58007c5fde59b756174280d26916eb27f593e6ccBob HalleyMODULE_CONFIG_OPTS= --bindir=$(X11_SERVERLIBS_DIR)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Libraries/modules to link with
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffMODULE_LD_OPTIONS= -z ignore -lm
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Override linker flags for programs
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffSYN_PROG_LDFLAGS=$(MAPFILES_FOR_PROGS)
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas GustafssonPROGRAM_VARS = synclient syndaemon
7e4d75a5daeaaf8a7f559f9bd7fbf540184e235cMark AndrewsPROGRAM_MAKEFLAGS = $(PROGRAM_VARS:%=%_LDADD="$(SYN_PROG_LDFLAGS)")
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas GustafssonMODULE_BUILD_MAKEFLAGS = AM_MAKEFLAGS='$(PROGRAM_MAKEFLAGS)'
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence# Extra install rules
615f17d0171dd807c6803b25a255a8ea2051fbd4David LawrenceMODULE_ADD_INSTALL_TARGETS = install_fdi
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence# Fix path for installing headers in proto area
615f17d0171dd807c6803b25a255a8ea2051fbd4David LawrenceMODULE_INSTALL_MAKEFLAGS = sdkdir='$(XORG_SDK_INCLUDES_DIR)'
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence# Regenerate configure after patching configure.ac
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffAUTORECONF=yes
58007c5fde59b756174280d26916eb27f593e6ccBob Halley
582952026017aee8b5fb8ada625165c579f7807bDavid Lawrence# Install xorg-synaptics.pc to /usr/share since it defines the architecture
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# independent header files in /usr/include and not any library flags
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffMODULE_PKGCONFIG_DIR=$(PKGCONFIG_DIR_SHARE)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffMODULE_PKGCONFIG_DIR_SET=yes
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffinclude ../Makefile.inc
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffFDI_DIR=$(PROTODIR)/etc/hal/fdi/policy/10osvendor
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence$(FDI_DIR):
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence mkdir -p $(FDI_DIR)
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence
58007c5fde59b756174280d26916eb27f593e6ccBob Halleyinstall_fdi: $(SOURCE_TARGETS) $(FDI_DIR)
58007c5fde59b756174280d26916eb27f593e6ccBob Halley $(INSTALL_SCRIPT) -m 0444 $(SOURCE_DIR)/conf/11-x11-synaptics.fdi \
58007c5fde59b756174280d26916eb27f593e6ccBob Halley $(FDI_DIR)/
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence