packages/scpa5xx-view: use lowercase config option, use new service functions
[openwrt/svn-archive/archive.git] / libs / serdisplib / Makefile
1 #
2 # Copyright (C) 2006-2011 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:=serdisplib
11 PKG_VERSION:=1.97.9
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/serdisplib
16 PKG_MD5SUM:=130552ec60d01e974712a60274f34de7
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/serdisplib
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=A display control library
24 URL:=http://serdisplib.sourceforge.net/
25 endef
26
27 define Package/serdisplib/description
28 serdisplib is a library to drive serial and parallel displays
29 with built-in controllers.
30 endef
31
32 CONFIGURE_ARGS+= \
33 --enable-shared \
34 --enable-static \
35
36 TARGET_CFLAGS += $(FPIC)
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 CFLAGS="$(TARGET_CFLAGS) -Wall -Wno-implicit -I../include -I.." \
41 all
42 endef
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/include
46 $(CP) $(PKG_BUILD_DIR)/include/serdisplib $(1)/usr/include/
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.{a,so*} $(1)/usr/lib/
49 endef
50
51 define Package/serdisplib/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(1)/usr/lib
54 endef
55
56 $(eval $(call BuildPackage,serdisplib))