source: packages/devel/cppunit/Makefile @ 25261

Last change on this file since 25261 was 25261, checked in by hcg, 6 years ago

[packages] cppunit: Fix install

File size: 1.1 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=cppunit
11PKG_VERSION:=1.12.1
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/cppunit
16PKG_MD5SUM:=bd30e9cf5523cdfc019b94f5e1d7fd19
17
18include $(INCLUDE_DIR)/host-build.mk
19include $(INCLUDE_DIR)/package.mk
20
21define Package/cppunit
22  SECTION:=devel
23  CATEGORY:=Development
24  TITLE:=Unit Testing Library for C++
25  URL:=http://cppunit.sourceforge.net/
26endef
27
28define Package/cppunit/description
29  Unit Testing Library for C++
30endef
31
32define Build/Compile
33        $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
34endef
35
36define Build/InstallDev
37        $(INSTALL_DIR) $(1)/usr/include/cppunit
38        $(CP) $(PKG_INSTALL_DIR)/usr/include/cppunit $(1)/usr/include
39        $(INSTALL_DIR) $(1)/usr/lib
40        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcppunit*so* $(1)/usr/lib/
41endef
42
43define Package/cppunit/install
44        $(INSTALL_DIR) $(1)/usr/lib
45        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcppunit*so* $(1)/usr/lib/
46endef
47
48$(eval $(call BuildPackage,cppunit))
Note: See TracBrowser for help on using the repository browser.