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
+libfreetype
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
39 EXTRA_CFLAGS += -flax-vector-conversions
43 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include/libtwin
48 $(PKG_INSTALL_DIR)/usr/include/libtwin/*.h \
49 $(1)/usr/include/libtwin
51 $(INSTALL_DIR) $(1)/usr/lib
53 $(PKG_INSTALL_DIR)/usr/lib/libtwin.{la,a,so*} \
56 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
58 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtwin.pc \
59 $(1)/usr/lib/pkgconfig/
62 define Package/libtwin/install
63 $(INSTALL_DIR) $(1)/usr/lib
65 $(PKG_INSTALL_DIR)/usr/lib/libtwin.so* \
69 $(eval $(call BuildPackage,libtwin))