Skip to content

Commit

Permalink
liboping: add pkgconfig to dev install target
Browse files Browse the repository at this point in the history
The packages 'liboping' does also provide da 'pkgconfig' file. So that other
programs that link against this library and use pkgconfig can find it more
easily, the provided pkconfig file must also be copied into the staging dir.

Signed-off-by: Florian Eckert <[email protected]>
  • Loading branch information
feckert committed Aug 16, 2024
1 parent 4a136ee commit 5c236fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/liboping/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=liboping
PKG_VERSION:=1.10.0
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_MAINTAINER:=Jo-Philipp Wich <[email protected]>
PKG_LICENSE:=LGPL-2.1-or-later
PKG_CPE_ID:=cpe:/a:noping:liboping
Expand Down Expand Up @@ -62,8 +62,12 @@ CONFIGURE_ARGS += \
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/oping.h $(1)/usr/include/

$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/liboping.{a,so*} $(1)/usr/lib/

$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/liboping.pc $(1)/usr/lib/pkgconfig/
endef

define Package/liboping/install
Expand Down

0 comments on commit 5c236fc

Please sign in to comment.