2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
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
21 include $(INCLUDE_DIR)/package.mk
23 define Package/serdisplib
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/
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" \
40 --target=$(GNU_TARGET_NAME) \
41 --host=$(GNU_TARGET_NAME) \
42 --build=$(GNU_HOST_NAME) \
48 --datadir=/usr/share \
49 --includedir=/usr/include \
50 --infodir=/usr/share/info \
52 --libexecdir=/usr/lib \
53 --localstatedir=/var \
54 --mandir=/usr/share/man \
57 $(DISABLE_LARGEFILE) \
66 $(MAKE) -C $(PKG_BUILD_DIR) all
69 define Package/serdisplib/install
70 install -d -m0755 $(1)/usr/lib
71 $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(1)/usr/lib
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/
81 define Build/UninstallDev
83 $(STAGING_DIR)/usr/include/serdisplib \
84 $(STAGING_DIR)/usr/lib/libserdisp.{a,so*}
87 $(eval $(call BuildPackage,serdisplib))