Makefile revision 1281
4778ff543a041ac356d6e661cc9b66c3fafa2092Adam Moore###############################################################################
4778ff543a041ac356d6e661cc9b66c3fafa2092Adam Moore#
2c5ce90c334a2d0f18474e85c93b424b6ec9daaaAdam Moore# xf86-input-synaptics Makefile
4778ff543a041ac356d6e661cc9b66c3fafa2092Adam Moore#
2c5ce90c334a2d0f18474e85c93b424b6ec9daaaAdam Moore# Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
4778ff543a041ac356d6e661cc9b66c3fafa2092Adam Moore#
4778ff543a041ac356d6e661cc9b66c3fafa2092Adam Moore# Permission is hereby granted, free of charge, to any person obtaining a
dbe7d1d8fcb85b219fa0d9ab081b7724c651e63dAdam Moore# copy of this software and associated documentation files (the "Software"),
dbe7d1d8fcb85b219fa0d9ab081b7724c651e63dAdam Moore# to deal in the Software without restriction, including without limitation
e125e48e3547df3d96d6f2b0e1cf71c9a12a86b5Adam Moore# the rights to use, copy, modify, merge, publish, distribute, sublicense,
e125e48e3547df3d96d6f2b0e1cf71c9a12a86b5Adam Moore# and/or sell copies of the Software, and to permit persons to whom the
e125e48e3547df3d96d6f2b0e1cf71c9a12a86b5Adam Moore# Software is furnished to do so, subject to the following conditions:
e125e48e3547df3d96d6f2b0e1cf71c9a12a86b5Adam Moore#
dbe7d1d8fcb85b219fa0d9ab081b7724c651e63dAdam Moore# The above copyright notice and this permission notice (including the next
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# paragraph) shall be included in all copies or substantial portions of the
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# Software.
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore#
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam Moore# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# DEALINGS IN THE SOFTWARE.
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore#
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore#
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam Moore# Package name used in tarballs
0670af1110de6616e0c87818a4ddbd048bc07b97Adam MooreMODULE_NAME=xf86-input-synaptics
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# Version number (used in path names)
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam MooreMODULE_VERSION=1.5.99.903
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# Checksums for upstream tarball
0670af1110de6616e0c87818a4ddbd048bc07b97Adam MooreTARBALL_MD5 = 56f125403497c55e0c88130b90c1c7b2
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam MooreTARBALL_SHA1 = adb8e28a8aced2ff660a4058d35b8656ffdf46ce
0670af1110de6616e0c87818a4ddbd048bc07b97Adam MooreTARBALL_SHA256= d76f631e8e851ab631f9fde4ec2585be6702c5a28e2a951c9ad9545baf0fb0e2
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# Patches to apply to source after unpacking, in order
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam MooreSOURCE_PATCHES= 7164323.patch
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam Moore# Man pages to apply Sun footer to & attributes to list
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam MooreSUNTOUCHED_MANPAGES=man/*.man
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam MooreMODULE_STABILITY=Volatile
918b08f9832633dcbf580984b649169aff501b36Adam Moore
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam Moore# Extra flags to pass to configure script
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam MooreMODULE_CONFIG_OPTS= --bindir=$(X11_SERVERLIBS_DIR)
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam Moore
dbe7d1d8fcb85b219fa0d9ab081b7724c651e63dAdam Moore# Libraries/modules to link with
dbe7d1d8fcb85b219fa0d9ab081b7724c651e63dAdam MooreMODULE_LD_OPTIONS= -z ignore -lm
dbe7d1d8fcb85b219fa0d9ab081b7724c651e63dAdam Moore
7fe7b305509bbc3a3b6fc04bc7f03ed345ed8daaAdam Moore# Override linker flags for programs
7fe7b305509bbc3a3b6fc04bc7f03ed345ed8daaAdam MooreSYN_PROG_LDFLAGS=$(MAPFILES_FOR_PROGS)
6e1414a3787add08f9e6457d3d872d980d614862Adam MoorePROGRAM_VARS = synclient syndaemon
6e1414a3787add08f9e6457d3d872d980d614862Adam MoorePROGRAM_MAKEFLAGS = $(PROGRAM_VARS:%=%_LDADD="$(SYN_PROG_LDFLAGS)")
6e1414a3787add08f9e6457d3d872d980d614862Adam MooreMODULE_BUILD_MAKEFLAGS = AM_MAKEFLAGS='$(PROGRAM_MAKEFLAGS)'
dbe7d1d8fcb85b219fa0d9ab081b7724c651e63dAdam Moore
bf8188e114b371f65f4bf67ce831bc687ce17e4eAdam Moore# Extra install rules
57fe6dcf945efb6f89119a961654a9b0914ddc5cAdam MooreMODULE_ADD_INSTALL_TARGETS = install_fdi
38ace6487b8176bc771d6e0277f49015f794aa01Adam Moore
57fe6dcf945efb6f89119a961654a9b0914ddc5cAdam Moore# Fix path for installing headers in proto area
b701c311ef82111da645c974b7f65d58152447f3Adam MooreMODULE_INSTALL_MAKEFLAGS = sdkdir='$(XORG_SDK_INCLUDES_DIR)'
b701c311ef82111da645c974b7f65d58152447f3Adam Moore
57fe6dcf945efb6f89119a961654a9b0914ddc5cAdam Moore# Regenerate configure after patching configure.ac
38ace6487b8176bc771d6e0277f49015f794aa01Adam MooreAUTORECONF=yes
b701c311ef82111da645c974b7f65d58152447f3Adam Moore
4275b99a8df46fa4dc6836fb581845ebd8857e39Adam Moore# Install xorg-synaptics.pc to /usr/share since it defines the architecture
f2af787d8d8c17b679458bd58b44846f12b94904Adam Moore# independent header files in /usr/include and not any library flags
e275a18d7f6fd57baf841eb4c8f82d790c1ef6bdAdam MooreMODULE_PKGCONFIG_DIR=$(PKGCONFIG_DIR_SHARE)
bf84ae48e272b3ddc103e8da28cc9ed7f30a9ba2Adam MooreMODULE_PKGCONFIG_DIR_SET=yes
4ab997398bc9c730d9fc720cd639263c2f1ac747Adam Moore
57fe6dcf945efb6f89119a961654a9b0914ddc5cAdam Mooreinclude ../Makefile.inc
38ace6487b8176bc771d6e0277f49015f794aa01Adam Moore
3ee2f740318e77d0a50957420f1786683531f69eAdam MooreFDI_DIR=$(PROTODIR)/etc/hal/fdi/policy/10osvendor
dcdf332ac871e588177e21c7cbd0045657826f84Adam Moore
a1cb8c0413d9768544e5daa6ba414dfa64d071a5Adam Moore$(FDI_DIR):
bf84ae48e272b3ddc103e8da28cc9ed7f30a9ba2Adam Moore mkdir -p $(FDI_DIR)
ba2701ee03e94104edf19911ee0989f8cee11088Adam Moore
dcdf332ac871e588177e21c7cbd0045657826f84Adam Mooreinstall_fdi: $(SOURCE_TARGETS) $(FDI_DIR)
dcdf332ac871e588177e21c7cbd0045657826f84Adam Moore $(INSTALL_SCRIPT) -m 0444 $(SOURCE_DIR)/conf/11-x11-synaptics.fdi \
de71a413e00aaae25fca939ce99c1c4b02869168Adam Moore $(FDI_DIR)/
1633e9a9ce15929556db15d1004e56656550d562Adam Moore