openldap: moved to github
[packages.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:=autoreconf
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 +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>
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 ifdef CONFIG_powerpc
39   EXTRA_CFLAGS += -flax-vector-conversions
40 endif
41
42 TARGET_LDFLAGS += \
43         -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
44
45 define Build/InstallDev
46         $(INSTALL_DIR) $(1)/usr/include/libtwin
47         $(INSTALL_DATA) \
48                 $(PKG_INSTALL_DIR)/usr/include/libtwin/*.h \
49                 $(1)/usr/include/libtwin
50
51         $(INSTALL_DIR) $(1)/usr/lib
52         $(INSTALL_BIN) \
53                 $(PKG_INSTALL_DIR)/usr/lib/libtwin.{la,a,so*} \
54                 $(1)/usr/lib/
55
56         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
57         $(INSTALL_DATA) \
58                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtwin.pc \
59                 $(1)/usr/lib/pkgconfig/
60 endef
61
62 define Package/libtwin/install
63         $(INSTALL_DIR) $(1)/usr/lib
64         $(INSTALL_BIN) \
65                 $(PKG_INSTALL_DIR)/usr/lib/libtwin.so* \
66                 $(1)/usr/lib/
67 endef
68
69 $(eval $(call BuildPackage,libtwin))