summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2011-01-18 16:54:33 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2011-01-20 08:57:56 (GMT)
commit7e21e098db7e36344d076018c82cef866510c599 (patch)
tree1a2a215d08d7a7529f46f5643560381392b4e765
parent8e3d1242d8c6083aa35c7bf95eb099adfb7d3aab (diff)
downloadbuildroot-7e21e098db7e36344d076018c82cef866510c599.tar.gz
buildroot-7e21e098db7e36344d076018c82cef866510c599.tar.bz2
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>
-rw-r--r--package/multimedia/libmad/libmad.mk21
-rw-r--r--package/multimedia/libmad/mad.pc11
2 files changed, 27 insertions, 5 deletions
diff --git a/package/multimedia/libmad/libmad.mk b/package/multimedia/libmad/libmad.mk
index ae83725..d129aad 100644
--- a/package/multimedia/libmad/libmad.mk
+++ b/package/multimedia/libmad/libmad.mk
@@ -4,18 +4,29 @@
#
#############################################################
-LIBMAD_VERSION=0.15.1b
-LIBMAD_SOURCE=libmad-$(LIBMAD_VERSION).tar.gz
-LIBMAD_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mad/
-LIBMAD_INSTALL_STAGING=YES
-LIBMAD_LIBTOOL_PATCH=NO
+LIBMAD_VERSION = 0.15.1b
+LIBMAD_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mad/
+LIBMAD_INSTALL_STAGING = YES
+LIBMAD_LIBTOOL_PATCH = NO
define LIBMAD_PREVENT_AUTOMAKE
# Prevent automake from running.
(cd $(@D); touch -c config* aclocal.m4 Makefile*);
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_INSTALL_STAGING_HOOKS += LIBMAD_INSTALL_STAGING_PC
+LIBMAD_POST_INSTALL_TARGET_HOOKS += LIBMAD_INSTALL_TARGET_PC
LIBMAD_CONF_OPT = \
--disable-debugging \
diff --git a/package/multimedia/libmad/mad.pc b/package/multimedia/libmad/mad.pc
new file mode 100644
index 0000000..14af388
--- /dev/null
+++ b/package/multimedia/libmad/mad.pc
@@ -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}