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