Root/cxxtools/Makefile

1#
2# Copyright (C) 2008 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=cxxtools
11PKG_VERSION:=2.0
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.tntnet.org/download
16PKG_MD5SUM:=763ef672a577fa8b93c37239ee0f3d59
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/host-build.mk
21include $(INCLUDE_DIR)/package.mk
22
23define Package/cxxtools
24    TITLE:=cxxtools
25    SECTION:=utils
26    CATEGORY:=Utilities
27endef
28
29define Build/Configure
30    $(call Build/Configure/Default, \
31        --disable-demos \
32        --disable-unittest \
33    )
34endef
35
36define Build/InstallDev
37    $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
38    $(CP) $(PKG_INSTALL_DIR)/usr/include/cxxtools $(1)/usr/include/
39    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcxxtools.{so*,la} $(1)/usr/lib/
40endef
41
42define Package/cxxtools/install
43    $(INSTALL_DIR) $(1)/usr/lib
44    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcxxtools.so* $(1)/usr/lib/
45endef
46
47$(eval $(call HostBuild))
48$(eval $(call BuildPackage,cxxtools))
49

Archive Download this file



interactive