source: packages/libs/check/Makefile @ 20327

Last change on this file since 20327 was 20327, checked in by swalker, 7 years ago

[packages] check, gconf2, libxapian: fix section names

File size: 1.5 KB
Line 
1#
2# Copyright (C) 2008-2010 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:=check
11PKG_VERSION:=0.9.8
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/check
16PKG_MD5SUM:=5d75e9a6027cde79d2c339ef261e7470
17
18PKG_FIXUP:=libtool
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23TARGET_CFLAGS += $(FPIC)
24
25define Package/check
26  SECTION:=libs
27  CATEGORY:=Libraries
28  TITLE:=Unit testing framework for C
29  URL:=http://check.sourceforge.net/
30  DEPENDS:= +libpthread
31endef
32
33define Package/check/description
34  Check features a simple interface for defining unit tests, putting little in
35  the way of the developer. Tests are run in a separate address space, so Check
36  can catch both assertion failures and code errors that cause segmentation
37  faults or other signals. The output from unit tests can be used within source
38  code editors and IDEs.
39endef
40
41define Build/Configure
42        $(CP) $(SCRIPT_DIR)/config.* $(PKG_BUILD_DIR)/build-aux/
43        $(call Build/Configure/Default)
44endef
45
46define Build/Install
47        $(call Build/Install/Default)
48        cd $(PKG_INSTALL_DIR)/usr/lib/ ; ln -nsf libcheck.so libcheck_pic.so
49endef
50
51define Build/InstallDev
52        $(INSTALL_DIR) $(1)
53        $(CP) $(PKG_INSTALL_DIR)/* $(1)/
54endef
55
56define Package/check/install
57        $(INSTALL_DIR) $(1)/usr/lib
58        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcheck.so.* $(1)/usr/lib/
59endef
60
61$(eval $(call BuildPackage,check))
Note: See TracBrowser for help on using the repository browser.