libiio: fix pkgconfig paths
[feed/packages.git] / libs / openpgm / Makefile
1 #
2 # Copyright (C) 2021 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:=openpgm
11 PKG_VERSION:=5.3.128
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_URL_FILE:=release-5-3-128
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_URL_FILE).tar.gz
16 PKG_SOURCE_URL:=https://codeload.github.com/steve-o/openpgm/tar.gz
17 PKG_HASH:=8d707ef8dda45f4a7bc91016d7f2fed6a418637185d76c7ab30b306499c6d393
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_URL_FILE)
19
20 PKG_FIXUP:=autoreconf
21 MAKE_PATH:=openpgm/pgm
22 PKG_AUTOMAKE_PATHS:=$(MAKE_PATH)
23
24 PKG_MAINTAINER:=Ye Holmes <yeholmes@outlook.com>
25 PKG_LICENSE:=LGPL-2.1-or-later
26 PKG_LICENSE_FILES:=$(MAKE_PATH)/LICENSE
27 PKG_CPE_ID:=cpe:/a:openpgm:openpgm
28
29 include $(INCLUDE_DIR)/package.mk
30
31 define Package/openpgm
32 TITLE:=OpenPGM, an implementation of the PGM protocol
33 URL:=http://openpgm.googlecode.com/
34 SECTION:=libs
35 CATEGORY:=Libraries
36 endef
37
38 define Package/openpgm/description
39 OpenPGM is a library implementing the PGM reliable multicast
40 network protocol. For more information about OpenPGM, see:
41 http://openpgm.googlecode.com/
42 endef
43
44 CONFIGURE_VARS += ac_cv_file__proc_cpuinfo=yes \
45 ac_cv_file__dev_rtc=no ac_cv_file__dev_hpet=no
46 CONFIGURE_ARGS += --enable-static=no --enable-shared=yes
47
48 define Build/Configure
49 $(call Build/Configure/Default,,,$(MAKE_PATH))
50 endef
51
52 define Build/InstallDev
53 $(INSTALL_DIR) $(1)/usr/include/pgm
54 $(CP) $(PKG_BUILD_DIR)/$(MAKE_PATH)/include/pgm/* $(1)/usr/include/pgm/
55 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
56 $(CP) $(PKG_BUILD_DIR)/$(MAKE_PATH)/.libs/libpgm*.so* $(1)/usr/lib/
57 $(CP) $(PKG_BUILD_DIR)/$(MAKE_PATH)/openpgm-5.3.pc $(1)/usr/lib/pkgconfig/
58 endef
59
60 define Package/openpgm/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_BUILD_DIR)/$(MAKE_PATH)/.libs/libpgm*.so* $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,openpgm))