[packages] Use include_mk
[packages.git] / Xorg / xorg / driver / xf86-input-mouse / Makefile
1 #
2 # Copyright (C) 2007-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=xf86-input-mouse
11 PKG_VERSION:=1.5.0
12 PKG_RELEASE:=2
13
14 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/individual/driver
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_BUILD_DIR:=$(BUILD_DIR)/Xorg/$(PKG_NAME)-$(PKG_VERSION)/
17 PKG_MD5SUM:=c58629fddf0782dad5c02da6aeb35521
18
19 PKG_BUILD_DEPENDS:=randrproto inputproto xproto
20 PKG_FIXUP:=libtool
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24 $(call include_mk, xorg-driver.mk)
25
26 define Package/xf86-input-mouse
27   SECTION:=xorg-driver
28   CATEGORY:=Xorg
29   SUBMENU:=driver
30   DEPENDS:=+xserver-xorg
31   TITLE:=xf86-input-mouse
32   URL:=http://xorg.freedesktop.org/
33 endef
34
35 define Package/xf86-input-mouse/install
36         $(INSTALL_DIR) $(1)/usr/lib/xorg/modules/input
37         $(INSTALL_DATA) \
38                 $(PKG_INSTALL_DIR)/usr/lib/xorg/modules/input/mouse_drv.so \
39                 $(1)/usr/lib/xorg/modules/input/
40 endef
41
42 $(eval $(call BuildPackage,xf86-input-mouse))