68293a1a8a994870e3ed744f352db0b944480b6d
[openwrt/svn-archive/archive.git] / libs / clinkc / 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:=clinkc
12 PKG_VERSION:=101
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/clinkc/
17 PKG_MD5SUM:=4c8ac54a15da47203a86daf77fbc2664
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/CyberLinkC
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 PKG_BUILD_DEPENDS:=libexpat
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libclinkc
28 SECTION:=libs
29 CATEGORY:=Libraries
30 DEPENDS:=+libexpat
31 TITLE:=Embedded UPnP library
32 DESCRIPTION:=CyberLink for C is a UPnP library using C for small and embedded platforms.
33 URL:=http://sourceforge.net/projects/clinkc
34 endef
35
36 # uses GNU configure
37
38 define Build/Compile
39 chmod +x $(PKG_BUILD_DIR)/config/install-sh
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 DESTDIR="$(PKG_INSTALL_DIR)" \
42 all install
43 endef
44
45 define Build/InstallDev
46 mkdir -p $(STAGING_DIR)/usr/include
47 $(CP) $(PKG_INSTALL_DIR)/usr/include/cybergarage $(STAGING_DIR)/usr/include/
48 mkdir -p $(STAGING_DIR)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libclinkc.a $(STAGING_DIR)/usr/lib/
50 endef
51
52 define Build/UninstallDev
53 rm -rf $(STAGING_DIR)/usr/include/cybergarage \
54 $(STAGING_DIR)/usr/lib/libclinkc.a
55 endef
56
57 $(eval $(call Build/DefaultTargets))