Skip to content

Commit

Permalink
Merge pull request #10113 from dhewg/pull/libid3tag
Browse files Browse the repository at this point in the history
libid3tag: add pkg-config file
  • Loading branch information
neheb committed Oct 8, 2019
2 parents 451ec9c + 1b37a1d commit 690f397
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libs/libid3tag/Makefile
Expand Up @@ -42,6 +42,11 @@ TARGET_CFLAGS += $(FPIC)

CONFIGURE_VARS += CC="$(TARGET_CC) $(TARGET_CFLAGS)"

define Build/Prepare
$(call Build/Prepare/Default)
$(SED) 's,@VERSION@,$(PKG_VERSION),g' $(PKG_BUILD_DIR)/id3tag.pc
endef

define Build/Configure
$(call Build/Configure/Default, \
--enable-shared \
Expand All @@ -56,6 +61,8 @@ define Build/InstallDev
$(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
$(CP) $(PKG_BUILD_DIR)/id3tag.pc $(1)/usr/lib/pkgconfig/
endef

define Package/libid3tag/install
Expand Down
11 changes: 11 additions & 0 deletions libs/libid3tag/src/id3tag.pc
@@ -0,0 +1,11 @@
prefix=/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: id3tag
Description: ID3 tag reading library
Requires:
Version: @VERSION@
Libs: -L${libdir} -lid3tag -lz
Cflags: -I${includedir}

0 comments on commit 690f397

Please sign in to comment.