fix compiling on avr32
[openwrt/svn-archive/archive.git] / libs / serdisplib / 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:=serdisplib
12 PKG_VERSION:=1.96
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/serdisplib
17 PKG_MD5SUM:=b074e02d8d63f34cba8ec45c23f63f78
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/serdisplib
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=A display control library
27 URL:=http://serdisplib.sourceforge.net/
28 endef
29
30 define Package/serdisplib/description
31 serdisplib is a library to drive serial and parallel displays
32 with built-in controllers.
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --enable-shared \
38 --enable-static \
39 )
40 endef
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 CFLAGS="$(TARGET_CFLAGS) -Wall -Wno-implicit -fPIC -I../include -I.." \
45 all
46 endef
47
48 define Build/InstallDev
49 mkdir -p $(1)/usr/include
50 $(CP) $(PKG_BUILD_DIR)/include/serdisplib $(1)/usr/include/
51 mkdir -p $(1)/usr/lib
52 $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.{a,so*} $(1)/usr/lib/
53 endef
54
55 define Package/serdisplib/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(1)/usr/lib
58 endef
59
60 $(eval $(call BuildPackage,serdisplib))