Cleanup xorg/libs package makefiles:
[openwrt/svn-archive/archive.git] / Xorg / xorg / lib / libXmu / Makefile
1 #
2 # Copyright (C) 2007-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libXmu
12 PKG_RELEASE:=4
13 PKG_VERSION:=1.0.4
14
15 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.4/src/lib/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
18 PKG_MD5SUM:=fb372a5f3ab42b5ba16d7af4d833a0cb
19 PKG_FIXUP:=libtool
20 PKG_INSTALL:=1
21 PKG_BUILD_DEPENDS:=libXt libXext xextproto
22
23 include $(INCLUDE_DIR)/package.mk
24
25
26 define Package/libXmu
27 SECTION:=xorg-lib
28 CATEGORY:=Xorg
29 SUBMENU:=lib
30 DEPENDS:=+libXt +libXext
31 TITLE:=libXmu
32 URL:=http://xorg.freedesktop.org/
33 endef
34
35 define Package/libXmuu
36 SECTION:=xorg-lib
37 CATEGORY:=Xorg
38 SUBMENU:=lib
39 DEPENDS:=+libX11
40 TITLE:=libXmuu
41 URL:=http://xorg.freedesktop.org/
42 endef
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/X11/Xmu}
46 $(INSTALL_DATA) \
47 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
48 $(1)/usr/lib/
49 $(INSTALL_DATA) \
50 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
51 $(1)/usr/lib/pkgconfig/
52 $(INSTALL_DATA) \
53 $(PKG_INSTALL_DIR)/usr/include/X11/Xmu/* \
54 $(1)/usr/include/X11/Xmu/
55 endef
56
57 define Package/libXmu/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(INSTALL_DATA) \
60 $(PKG_INSTALL_DIR)/usr/lib/libXmu.so* \
61 $(1)/usr/lib/
62 endef
63
64 define Package/libXmuu/install
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(INSTALL_DATA) \
67 $(PKG_INSTALL_DIR)/usr/lib/libXmuu.so* \
68 $(1)/usr/lib/
69 endef
70
71 $(eval $(call BuildPackage,libXmu))
72 $(eval $(call BuildPackage,libXmuu))