868f58a4ad0f795bd7aa02f87bc5ec86446e49f8
[packages.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
19 PKG_BUILD_DIR:=$(BUILD_DIR)/CyberLinkC
20
21 PKG_BUILD_DEPENDS:=libexpat
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libclinkc
26   SECTION:=libs
27   CATEGORY:=Libraries
28   DEPENDS:=+libexpat
29   TITLE:=Embedded UPnP library
30   URL:=http://sourceforge.net/projects/clinkc
31 endef
32
33 define Package/libclinkc/description
34 CyberLink for C is a UPnP library using C for small and embedded platforms.
35 endef
36
37 # uses GNU configure
38
39 define Build/Compile
40         chmod +x $(PKG_BUILD_DIR)/config/install-sh
41         $(MAKE) -C $(PKG_BUILD_DIR) \
42                 DESTDIR="$(PKG_INSTALL_DIR)" \
43                 all install
44 endef
45
46 define Build/InstallDev
47         mkdir -p $(1)/usr/include
48         $(CP) $(PKG_INSTALL_DIR)/usr/include/cybergarage $(1)/usr/include/
49         mkdir -p $(1)/usr/lib
50         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libclinkc.a $(1)/usr/lib/
51 endef
52
53 $(eval $(call BuildPackage/libclinkc))