[pacakges] cppunit: Correct includes copy path
[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)/package.mk
19
20 define Package/cppunit
21   SECTION:=devel
22   CATEGORY:=Development
23   TITLE:=Unit Testing Library for C++
24   URL:=http://cppunit.sourceforge.net/
25 endef
26
27 define Package/cppunit/description
28   Unit Testing Library for C++
29 endef
30
31 define Build/InstallDev
32         echo InstallDev installing to $(1)
33         $(INSTALL_DIR) $(1)/usr/include/cppunit
34         $(CP) $(PKG_BUILD_DIR)/include/cppunit/* $(1)/usr/include/cppunit/
35         $(INSTALL_DIR) $(1)/usr/lib
36         $(CP) $(PKG_BUILD_DIR)/src/cppunit/.libs/libcppunit*so* $(1)/usr/lib/
37 endef
38
39 define Package/cppunit/install
40         echo install installing to $(1)
41         $(INSTALL_DIR) $(1)/usr/lib
42         $(CP) $(PKG_BUILD_DIR)/src/cppunit/.libs/libcppunit*so* $(1)/usr/lib/
43 endef
44
45 $(eval $(call BuildPackage,cppunit))