Add libfakekey
authorMichael Büsch <mb@bu3sch.de>
Fri, 28 Jan 2011 19:35:08 +0000 (19:35 +0000)
committerMichael Büsch <mb@bu3sch.de>
Fri, 28 Jan 2011 19:35:08 +0000 (19:35 +0000)
SVN-Revision: 25215

Xorg/lib/libfakekey/Makefile [new file with mode: 0644]

diff --git a/Xorg/lib/libfakekey/Makefile b/Xorg/lib/libfakekey/Makefile
new file mode 100644 (file)
index 0000000..f41e333
--- /dev/null
@@ -0,0 +1,59 @@
+#
+# Copyright (C) 2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libfakekey
+PKG_REV:=2111
+PKG_VERSION:=svn$(PKG_REV)
+PKG_RELEASE:=1
+
+PKG_SOURCE:=libfakekey-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=http://svn.o-hand.com/repos/matchbox/trunk/libfakekey
+PKG_SOURCE_PROTO:=svn
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_VERSION:=$(PKG_REV)
+PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
+PKG_FIXUP:=libtool
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libfakekey
+  SECTION:=xorg-lib
+  CATEGORY:=Xorg
+  SUBMENU:=libraries
+  TITLE:=libfakekey
+  MAINTAINER:=Michael Buesch <mb@bu3sch.de>
+  URL:=http://matchbox-project.org/?p=1
+  DEPENDS:=+libX11 +libXtst
+endef
+
+define Package/libfakekey/description
+  X11 keyboard faking library
+endef
+
+EXTRA_LDFLAGS:=\
+       -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
+
+define Build/InstallDev
+       $(INSTALL_DIR) $(1)/usr/include/fakekey $(1)/usr/lib/pkgconfig
+       $(INSTALL_DATA) \
+               $(PKG_INSTALL_DIR)/usr/include/fakekey/fakekey.h \
+               $(1)/usr/include/fakekey/
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*{.so,.a}* $(1)/usr/lib/
+       $(INSTALL_DATA) \
+               $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libfakekey.pc \
+               $(1)/usr/lib/pkgconfig/
+endef
+
+define Package/libfakekey/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libfakekey))