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