Root/ibrcommon/Makefile

1#
2# Copyright (C) 2006 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:=ibrcommon
11PKG_VERSION_MAJOR:=0
12PKG_VERSION_MINOR:=6
13PKG_VERSION_MICRO:=0
14
15PKG_VERSION:=$(PKG_VERSION_MAJOR).$(PKG_VERSION_MINOR).$(PKG_VERSION_MICRO)
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17PKG_SOURCE_URL:=http://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases
18
19PKG_INSTALL:=1
20PKG_FIXUP:=libtool
21PKG_BUILD_DEPENDS:=libnl libopenssl
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/ibrcommon
26  SECTION:=libs
27  CATEGORY:=Libraries
28  DEPENDS:=+libstdcpp +libpthread +librt +libnl +libopenssl +cppunit
29  TITLE:=IBR Common C++ Library
30endef
31
32CONFIGURE_ARGS += \
33    --with-openssl
34
35define Package/ibrcommon/description
36 A library with common functions for C++.
37endef
38
39define Build/InstallDev
40    $(INSTALL_DIR) $(1)
41    $(CP) $(PKG_INSTALL_DIR)/* $(1)/
42endef
43
44define Package/ibrcommon/install
45    $(INSTALL_DIR) $(1)/usr/lib
46    $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME){.so,-$(PKG_VERSION_MAJOR).$(PKG_VERSION_MINOR).so.*} $(1)/usr/lib/
47endef
48
49$(eval $(call BuildPackage,ibrcommon))
50

Archive Download this file



interactive