shithub: aacdec

Download patch

ref: 793d77ad81eb0782fa91dd6337a3e44fb238188f
parent: 79b9ff97f8c809f0bdd7e02ff8053aeb4e6b498b
author: Fabian Greffrath <[email protected]>
date: Tue Apr 28 09:20:48 EDT 2020

add a pkg-config file

--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,4 @@
 project/msvc/intermediate/
 libfaad/win32_ver.h
 *.user
+/libfaad/faad2.pc
--- a/configure.ac
+++ b/configure.ac
@@ -159,6 +159,7 @@
 fi
 
 AC_CONFIG_FILES(libfaad/Makefile)
+AC_CONFIG_FILES(libfaad/faad2.pc)
 AC_CONFIG_FILES(plugins/Makefile)
 AC_CONFIG_FILES(plugins/xmms/Makefile)
 AC_CONFIG_FILES(plugins/xmms/src/Makefile)
--- a/libfaad/Makefile.am
+++ b/libfaad/Makefile.am
@@ -34,3 +34,8 @@
 libfaad_drm_la_LIBADD = ${libfaad_la_LIBADD}
 libfaad_drm_la_CFLAGS = ${libfaad_la_CFLAGS} -DDRM_SUPPORT
 libfaad_drm_la_SOURCES = ${libfaad_la_SOURCES}
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = faad2.pc
+
+EXTRA_DIST = faad2.pc.in
--- /dev/null
+++ b/libfaad/faad2.pc.in
@@ -1,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: FAAD2
+Description: Freeware Advanced Audio (AAC) Decoder
+Version: @VERSION@
+Libs: -L${libdir} -lfaad2
+Libs.private: -lm
+Cflags: -I${includedir}