ef61e333197c93029515db76a1b0888b3b834fdc
[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 # $Id:$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libtwin
12 PKG_VERSION:=0.0.3
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://ozlabs.org/~jk/projects/petitboot/downloads/
17 PKG_MD5SUM:=ebd7c5cca3c9e108208a7bf17b256a6c
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libtwin
23 SECTION:=libs
24 CATEGORY:=Libraries
25 DEPENDS:=+zlib +libpng +libjpeg
26 TITLE:=The tiny windowing system libraries
27 URL:=
28 endef
29
30 define Build/Configure
31 $(call Build/Configure/Default, \
32 --enable-shared \
33 --enable-static \
34 --disable-x11 \
35 )
36 endef
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 DESTDIR="$(PKG_INSTALL_DIR)" \
41 all install
42 endef
43
44 define Build/InstallDev
45 mkdir -p $(1)/usr/include
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/libtwin $(1)/usr/include/
47 mkdir -p $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtwin.{la,a,so*} $(1)/usr/lib/
49 mkdir -p $(1)/usr/lib/pkgconfig
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtwin.pc $(1)/usr/lib/pkgconfig/
51 endef
52
53 define Build/UninstallDev
54 rm -rf \
55 $(STAGING_DIR)/usr/include/libtwin \
56 $(STAGING_DIR)/usr/lib/libtwin.{la,a,so*} \
57 $(STAGING_DIR)/usr/lib/pkgconfig/libtwin.pc
58 endef
59
60 define Package/libtwin/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtwin.so* $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,libtwin))