mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-03 16:37:43 +00:00
libmad: install pkgconfig file
Make libmad install mad.pc into staging and target. Needed for mpd. [Peter: remove -lm from mad.pc] Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
8e3d1242d8
commit
7e21e098db
@ -4,18 +4,29 @@
|
|||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
|
|
||||||
LIBMAD_VERSION=0.15.1b
|
LIBMAD_VERSION = 0.15.1b
|
||||||
LIBMAD_SOURCE=libmad-$(LIBMAD_VERSION).tar.gz
|
LIBMAD_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mad/
|
||||||
LIBMAD_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mad/
|
LIBMAD_INSTALL_STAGING = YES
|
||||||
LIBMAD_INSTALL_STAGING=YES
|
LIBMAD_LIBTOOL_PATCH = NO
|
||||||
LIBMAD_LIBTOOL_PATCH=NO
|
|
||||||
|
|
||||||
define LIBMAD_PREVENT_AUTOMAKE
|
define LIBMAD_PREVENT_AUTOMAKE
|
||||||
# Prevent automake from running.
|
# Prevent automake from running.
|
||||||
(cd $(@D); touch -c config* aclocal.m4 Makefile*);
|
(cd $(@D); touch -c config* aclocal.m4 Makefile*);
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define LIBMAD_INSTALL_STAGING_PC
|
||||||
|
$(INSTALL) -D package/multimedia/libmad/mad.pc \
|
||||||
|
$(STAGING_DIR)/usr/lib/pkgconfig/mad.pc
|
||||||
|
endef
|
||||||
|
|
||||||
|
define LIBMAD_INSTALL_TARGET_PC
|
||||||
|
$(INSTALL) -D package/multimedia/libmad/mad.pc \
|
||||||
|
$(TARGET_DIR)/usr/lib/pkgconfig/mad.pc
|
||||||
|
endef
|
||||||
|
|
||||||
LIBMAD_POST_PATCH_HOOKS += LIBMAD_PREVENT_AUTOMAKE
|
LIBMAD_POST_PATCH_HOOKS += LIBMAD_PREVENT_AUTOMAKE
|
||||||
|
LIBMAD_POST_INSTALL_STAGING_HOOKS += LIBMAD_INSTALL_STAGING_PC
|
||||||
|
LIBMAD_POST_INSTALL_TARGET_HOOKS += LIBMAD_INSTALL_TARGET_PC
|
||||||
|
|
||||||
LIBMAD_CONF_OPT = \
|
LIBMAD_CONF_OPT = \
|
||||||
--disable-debugging \
|
--disable-debugging \
|
||||||
|
11
package/multimedia/libmad/mad.pc
Normal file
11
package/multimedia/libmad/mad.pc
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
prefix=/usr
|
||||||
|
exec_prefix=${prefix}
|
||||||
|
libdir=${exec_prefix}/lib
|
||||||
|
includedir=${prefix}/include
|
||||||
|
|
||||||
|
Name: mad
|
||||||
|
Description: MPEG Audio Decoder
|
||||||
|
Requires:
|
||||||
|
Version: 0.15.1b
|
||||||
|
Libs: -L${libdir} -lmad
|
||||||
|
Cflags: -I${includedir}
|
Loading…
x
Reference in New Issue
Block a user