libtwin: General cleanup of the libtwin package makefile
[openwrt/svn-archive/archive.git] / libs / libtwin / Makefile
1 #
2 # Copyright (C) 2006 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:=libtwin
11 PKG_VERSION:=0.0.3
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://ozlabs.org/~jk/projects/petitboot/downloads/
16 PKG_MD5SUM:=ebd7c5cca3c9e108208a7bf17b256a6c
17 PKG_FIXUP:=libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 PKG_INSTALL=1
22
23 define Package/libtwin
24 SECTION:=libs
25 CATEGORY:=Libraries
26 DEPENDS:=+zlib +libpng +libjpeg
27 TITLE:=The tiny windowing system library
28 URL:=http://ozlabs.org/~jk/projects/petitboot/
29 MAINTAINER:=Geoff Levand <geoffrey.levand@am.sony.com>
30 endef
31
32 define Package/libtwin/description
33 Keith Packard's Tiny Windowing System Library
34 endef
35
36 CONFIGURE_ARGS += --enable-shared --enable-static --disable-x11
37
38 EXTRA_CFLAGS += -flax-vector-conversions
39
40 define Build/InstallDev
41 $(INSTALL_DIR) $(1)/usr/include/libtwin
42 $(INSTALL_DATA) \
43 $(PKG_INSTALL_DIR)/usr/include/libtwin/*.h \
44 $(1)/usr/include/libtwin
45
46 $(INSTALL_DIR) $(1)/usr/lib
47 $(INSTALL_BIN) \
48 $(PKG_INSTALL_DIR)/usr/lib/libtwin.{la,a,so*} \
49 $(1)/usr/lib/
50
51 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
52 $(INSTALL_DATA) \
53 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtwin.pc \
54 $(1)/usr/lib/pkgconfig/
55 endef
56
57 define Build/UninstallDev
58 rm -rf $(1)/usr/include/libtwin
59 endef
60
61 define Package/libtwin/install
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(INSTALL_BIN) \
64 $(PKG_INSTALL_DIR)/usr/lib/libtwin.so* \
65 $(1)/usr/lib/
66 endef
67
68 $(eval $(call BuildPackage,libtwin))