2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://ozlabs.org
/~jk
/projects
/petitboot
/downloads
/
16 PKG_MD5SUM
:=ebd7c5cca3c9e108208a7bf17b256a6c
19 include $(INCLUDE_DIR
)/package.mk
23 define Package
/libtwin
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
>
32 define Package
/libtwin
/description
33 Keith Packard
's Tiny Windowing System Library
36 CONFIGURE_ARGS += --enable-shared --enable-static --disable-x11
38 EXTRA_CFLAGS += -flax-vector-conversions
40 define Build/InstallDev
41 $(INSTALL_DIR) $(1)/usr/include/libtwin
43 $(PKG_INSTALL_DIR)/usr/include/libtwin/*.h \
44 $(1)/usr/include/libtwin
46 $(INSTALL_DIR) $(1)/usr/lib
48 $(PKG_INSTALL_DIR)/usr/lib/libtwin.{la,a,so*} \
51 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
53 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtwin.pc \
54 $(1)/usr/lib/pkgconfig/
57 define Build/UninstallDev
58 rm -rf $(1)/usr/include/libtwin
61 define Package/libtwin/install
62 $(INSTALL_DIR) $(1)/usr/lib
64 $(PKG_INSTALL_DIR)/usr/lib/libtwin.so* \
68 $(eval $(call BuildPackage,libtwin))