packages: move Xorg category to its own feed, move X-related packages as well
[openwrt/svn-archive/feeds.git] / xorg / xorg / app / xkbcomp / Makefile
1 #
2 # Copyright (C) 2009 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:=xkbcomp
11 PKG_RELEASE:=2
12 PKG_VERSION:=1.1.1
13
14 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/individual/app
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_BUILD_DIR:=$(BUILD_DIR)/Xorg/$(PKG_NAME)-$(PKG_VERSION)/
17 PKG_MD5SUM:=38c387bacdc01038c8ac280588792bcf
18
19 PKG_INSTALL:=1
20 PKG_BUILD_PARALLEL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 TARGET_LDFLAGS+= \
25 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
26 -Wl,-rpath=/usr/lib
27
28 define Package/xkbcomp
29 SECTION:=xorg-app
30 CATEGORY:=Xorg
31 SUBMENU:=app
32 DEPENDS:=+libX11 +libxkbfile
33 TITLE:=xkbcomp
34 URL:=http://xorg.freedesktop.org/
35 endef
36
37 define Package/xkbcomp/install
38 $(INSTALL_DIR) $(1)/usr/bin
39 $(INSTALL_BIN) \
40 $(PKG_INSTALL_DIR)/usr/bin/* \
41 $(1)/usr/bin
42 $(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/share/xkbdata/compiled
43 endef
44
45 $(eval $(call BuildPackage,xkbcomp))