nbd 00c32b752c cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5233 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-10-19 15:26:14 +00:00

88 lines
2.1 KiB
Makefile

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=serdisplib
PKG_VERSION:=1.96
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/serdisplib
PKG_MD5SUM:=b074e02d8d63f34cba8ec45c23f63f78
PKG_CAT:=zcat
include $(INCLUDE_DIR)/package.mk
define Package/serdisplib
SECTION:=libs
CATEGORY:=Libraries
TITLE:=A display control library
DESCRIPTION:=A display control library.\\\
serdisplib is a library to drive serial and parallel displays \\\
with built-in controllers.
URL:=http://serdisplib.sourceforge.net/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
--enable-shared \
--disable-static \
--with-gnu-ld \
);
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) all
endef
define Package/serdisplib/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(1)/usr/lib
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_BUILD_DIR)/include/serdisplib $(STAGING_DIR)/usr/include/
mkdir -p $(STAGING_DIR)/usr/lib
$(CP) $(PKG_BUILD_DIR)/lib/libserdisp.{a,so*} $(STAGING_DIR)/usr/lib/
endef
define Build/UninstallDev
rm -rf \
$(STAGING_DIR)/usr/include/serdisplib \
$(STAGING_DIR)/usr/lib/libserdisp.{a,so*}
endef
$(eval $(call BuildPackage,serdisplib))