shithub: aacenc

Download patch

ref: 11215a2dc792d28a8fa7bbef059c6798d248a0ea
parent: 0c89baa8f798c3f4aece45979b2fd100c7682e6d
author: Fabian Greffrath <fabian@greffrath.com>
date: Tue Apr 28 09:06:49 EDT 2020

add a pkg-config file

--- a/.gitignore
+++ b/.gitignore
@@ -37,3 +37,4 @@
 /project/msvc/intermediate/
 *.user
 /libfaac/win32_ver.h
+/libfaac/faac.pc
--- a/configure.ac
+++ b/configure.ac
@@ -61,6 +61,7 @@
 AC_OUTPUT([
 common/Makefile
 libfaac/Makefile
+libfaac/faac.pc
 frontend/Makefile
 include/Makefile
 Makefile])
--- a/libfaac/Makefile.am
+++ b/libfaac/Makefile.am
@@ -25,3 +25,8 @@
 endif
 
 AM_CPPFLAGS = -I$(top_srcdir)/include
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = faac.pc
+
+EXTRA_DIST = faac.pc.in
--- /dev/null
+++ b/libfaac/faac.pc.in
@@ -1,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: FAAC
+Description: Freeware Advanced Audio Coder
+Version: @VERSION@
+Libs: -L${libdir} -lfaac
+Libs.private: -lm
+Cflags: -I${includedir}