cleanup
[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_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=@SF/serdisplib
18 PKG_MD5SUM:=b074e02d8d63f34cba8ec45c23f63f78
19 PKG_CAT:=zcat
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 DESCRIPTION:=A display control library.\\\
28 serdisplib is a library to drive serial and parallel displays \\\
29 with built-in controllers.
30 URL:=http://serdisplib.sourceforge.net/
31 endef
32
33 define Build/Configure
34 (cd $(PKG_BUILD_DIR); \
35 $(TARGET_CONFIGURE_OPTS) \
36 CFLAGS="$(TARGET_CFLAGS)" \
37 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
38 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
39 ./configure \
40 --target=$(GNU_TARGET_NAME) \
41 --host=$(GNU_TARGET_NAME) \
42 --build=$(GNU_HOST_NAME) \
43 --program-prefix="" \
44 --program-suffix="" \
45 --prefix=/usr \
46 --exec-prefix=/usr \
47 --bindir=/usr/bin \
48 --datadir=/usr/share \
49 --includedir=/usr/include \
50 --infodir=/usr/share/info \
51 --libdir=/usr/lib \
52 --libexecdir=/usr/lib \
53 --localstatedir=/var \
54 --mandir=/usr/share/man \
55 --sbindir=/usr/sbin \
56 --sysconfdir=/etc \
57 $(DISABLE_LARGEFILE) \
58 $(DISABLE_NLS) \
59 --enable-shared \
60 --disable-static \
61 --with-gnu-ld \
62 );
63 endef
64
65 define Build/Compile
66 $(MAKE) -C $(PKG_BUILD_DIR) all
67 endef
68
69 define Package/serdisplib/install
70 install -d -m0755 $(1)/usr/lib
71 $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(1)/usr/lib
72 endef
73
74 define Build/InstallDev
75 mkdir -p $(STAGING_DIR)/usr/include
76 $(CP) $(PKG_BUILD_DIR)/include/serdisplib $(STAGING_DIR)/usr/include/
77 mkdir -p $(STAGING_DIR)/usr/lib
78 $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.{a,so*} $(STAGING_DIR)/usr/lib/
79 endef
80
81 define Build/UninstallDev
82 rm -rf \
83 $(STAGING_DIR)/usr/include/serdisplib \
84 $(STAGING_DIR)/usr/lib/libserdisp.{a,so*}
85 endef
86
87 $(eval $(call BuildPackage,serdisplib))