2006-08-01 11:24:09 +00:00
|
|
|
# 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:=clinkc
|
|
|
|
PKG_VERSION:=101
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_MD5SUM:=4c8ac54a15da47203a86daf77fbc2664
|
|
|
|
|
|
|
|
PKG_SOURCE_URL:=@SF/clinkc/
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tar.gz
|
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/CyberLinkC
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
PKG_BUILDDEP=expat
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/clinkc
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2006-08-02 17:51:58 +00:00
|
|
|
DEPENDS:=+libexpat
|
2006-08-01 11:24:09 +00:00
|
|
|
TITLE:=Embedded UPnP library
|
|
|
|
DESCRIPTION:=CyberLink for C is a UPnP library using C for small and embedded platforms.
|
|
|
|
URL:=http://sourceforge.net/projects/clinkc
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
|
|
|
chmod +x $(PKG_BUILD_DIR)/config/install-sh
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/clinkc/install
|
|
|
|
$(CP) $(PKG_INSTALL_DIR) $(1)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
DESTDIR="$(STAGING_DIR)" \
|
|
|
|
install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/UninstallDev
|
|
|
|
rm -rf $(STAGING_DIR)/usr/include/cybergarage \
|
|
|
|
$(STAGING_DIR)/usr/lib/libclinkc.{so*,a}
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,clinkc))
|