Fix/clean several hundred package makefiles
[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:=+libexpat
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 Build/Compile
36 rm -rf $(PKG_INSTALL_DIR)
37 mkdir -p $(PKG_INSTALL_DIR)
38 chmod +x $(PKG_BUILD_DIR)/config/install-sh
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 $(TARGET_CONFIGURE_OPTS) \
41 DESTDIR="$(PKG_INSTALL_DIR)" \
42 all install
43 endef
44
45 define Package/clinkc/install
46 $(CP) $(PKG_INSTALL_DIR) $(1)
47 endef
48
49 define Build/InstallDev
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 $(TARGET_CONFIGURE_OPTS) \
52 DESTDIR="$(STAGING_DIR)" \
53 install
54 endef
55
56 define Build/UninstallDev
57 rm -rf $(STAGING_DIR)/usr/include/cybergarage \
58 $(STAGING_DIR)/usr/lib/libclinkc.{so*,a}
59 endef
60
61 $(eval $(call BuildPackage,clinkc))