21e376521906e767e411c7acaf11004ac50306c2
[openwrt/svn-archive/archive.git] / libs / clinkc / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=clinkc
11 PKG_VERSION:=101
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=4c8ac54a15da47203a86daf77fbc2664
14
15 PKG_SOURCE_URL:=@SF/clinkc/
16 PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tar.gz
17 PKG_CAT:=zcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/CyberLinkC
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 PKG_BUILDDEP=expat
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/clinkc
27 SECTION:=libs
28 CATEGORY:=Libraries
29 DEPENDS:=+expat
30 TITLE:=Embedded UPnP library
31 DESCRIPTION:=CyberLink for C is a UPnP library using C for small and embedded platforms.
32 URL:=http://sourceforge.net/projects/clinkc
33 endef
34
35 define Package/Configure
36 $(call Build/Configure/Default)
37 endef
38
39 define Build/Compile
40 rm -rf $(PKG_INSTALL_DIR)
41 mkdir -p $(PKG_INSTALL_DIR)
42 chmod +x $(PKG_BUILD_DIR)/config/install-sh
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 $(TARGET_CONFIGURE_OPTS) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 all install
47 endef
48
49 define Package/clinkc/install
50 $(CP) $(PKG_INSTALL_DIR) $(1)
51 endef
52
53 define Build/InstallDev
54 $(MAKE) -C $(PKG_BUILD_DIR) \
55 $(TARGET_CONFIGURE_OPTS) \
56 DESTDIR="$(STAGING_DIR)" \
57 install
58 endef
59
60 define Build/UninstallDev
61 rm -rf $(STAGING_DIR)/usr/include/cybergarage \
62 $(STAGING_DIR)/usr/lib/libclinkc.{so*,a}
63 endef
64
65 $(eval $(call BuildPackage,clinkc))