Branch oldpackages for 14.07
[14.07/packages.git] / devel / cppunit / Makefile
1 #
2 # Copyright (C) 2011 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:=cppunit
11 PKG_VERSION:=1.12.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/cppunit
16 PKG_MD5SUM:=bd30e9cf5523cdfc019b94f5e1d7fd19
17
18 include $(INCLUDE_DIR)/host-build.mk
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/cppunit
22   SECTION:=devel
23   CATEGORY:=Development
24   TITLE:=Unit Testing Library for C++
25   URL:=http://cppunit.sourceforge.net/
26   DEPENDS:=+libstdcpp
27 endef
28
29 define Package/cppunit/description
30   Unit Testing Library for C++
31 endef
32
33 define Build/Compile
34         $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
35 endef
36
37 define Build/InstallDev
38         $(INSTALL_DIR) $(1)/usr/include/cppunit
39         $(CP) $(PKG_INSTALL_DIR)/usr/include/cppunit $(1)/usr/include
40         $(INSTALL_DIR) $(1)/usr/lib
41         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcppunit*so* $(1)/usr/lib/
42 endef
43
44 define Package/cppunit/install
45         $(INSTALL_DIR) $(1)/usr/lib
46         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcppunit*so* $(1)/usr/lib/
47 endef
48
49 $(eval $(call BuildPackage,cppunit))