[oe-commits] org.oe.dev libmad: merged with Poky: pkg-config support + no-Thumb for ARM

hrw commit oe at amethyst.openembedded.net
Tue Apr 8 12:54:14 UTC 2008


libmad: merged with Poky: pkg-config support + no-Thumb for ARM

r3469: libmad: add pkg-config support
r3352: libmad: use ARM instruction set when building for Thumb

Author: hrw at openembedded.org
Branch: org.openembedded.dev
Revision: 0b0e89770e7b7c37acf2972e7d00aae7cf1d0f44
ViewMTN: http://monotone.openembedded.org/revision/info/0b0e89770e7b7c37acf2972e7d00aae7cf1d0f44
Files:
1
packages/libmad/files/add-pkgconfig.patch
packages/libmad/libmad_0.15.1b.bb
Diffs:

#
# mt diff -r8285c678f88c2379171057d5ef7b4a6ff35e1139 -r0b0e89770e7b7c37acf2972e7d00aae7cf1d0f44
#
#
#
# add_file "packages/libmad/files/add-pkgconfig.patch"
#  content [77c60379c969328f307820ed5f273ab0471cafa1]
# 
# patch "packages/libmad/libmad_0.15.1b.bb"
#  from [5adf575856900e241c7311e25081db325e13344d]
#    to [55e89f58cb09590f6599edf4eef9e25444542c4d]
#
============================================================
--- packages/libmad/files/add-pkgconfig.patch	77c60379c969328f307820ed5f273ab0471cafa1
+++ packages/libmad/files/add-pkgconfig.patch	77c60379c969328f307820ed5f273ab0471cafa1
@@ -0,0 +1,68 @@
+Here is a patch for adding pkg-config support to libmad.
+It would make life a bit easier for distro maintainers if this was applied.
+In case you didn't know, pkg-config is a tool for providing LDFLAGS and
+CFLAGS for packages using shared libraries. It's on freedesktop.org.
+Debian has already been distributing the pkg-config file mad.pc with
+libmad for some time, and people developing on debian (notably xmms2 
+developers) have started relying on this support being present, causing
+some confusion for people installing from source and on some BSDs which
+do not provide mad.pc (google: pkgconfig libmad).
+
+EMH
+
+--h31gzZEtNLTqOjlF
+Content-Type: text/plain; charset=us-ascii
+Content-Disposition: attachment; filename="libmad-0.15.1b-pkgconfig.patch"
+
+diff -Naur libmad-0.15.1b.old/configure.ac libmad-0.15.1b/configure.ac
+--- libmad-0.15.1b.old/configure.ac	2004-01-23 10:41:32.000000000 +0100
++++ libmad-0.15.1b/configure.ac	2004-08-07 02:25:24.633462168 +0200
+@@ -429,5 +429,5 @@
+ dnl AC_SUBST(LTLIBOBJS)
+ 
+ AC_CONFIG_FILES([Makefile msvc++/Makefile  \
+-	libmad.list])
++	libmad.list mad.pc])
+ AC_OUTPUT
+diff -Naur libmad-0.15.1b.old/mad.pc.in libmad-0.15.1b/mad.pc.in
+--- libmad-0.15.1b.old/mad.pc.in	1970-01-01 01:00:00.000000000 +0100
++++ libmad-0.15.1b/mad.pc.in	2004-08-07 02:04:59.617692872 +0200
+@@ -0,0 +1,14 @@
++# libmad pkg-config source file
++
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++libdir=@libdir@
++includedir=@includedir@
++
++Name: mad
++Description: MPEG Audio Decoder
++Version: @VERSION@
++Requires:
++Conflicts:
++Libs: -L${libdir} -lmad -lm
++Cflags: -I${includedir}
+diff -Naur libmad-0.15.1b.old/Makefile.am libmad-0.15.1b/Makefile.am
+--- libmad-0.15.1b.old/Makefile.am	2004-02-17 03:02:03.000000000 +0100
++++ libmad-0.15.1b/Makefile.am	2004-08-07 02:03:19.859858368 +0200
+@@ -24,6 +24,9 @@
+ SUBDIRS =		
+ DIST_SUBDIRS =		msvc++
+ 
++pkgconfigdir =		$(libdir)/pkgconfig
++pkgconfig_DATA =	mad.pc
++
+ lib_LTLIBRARIES =	libmad.la
+ include_HEADERS =	mad.h
+ 
+@@ -34,7 +37,8 @@
+ minimad_LDADD =		libmad.la
+ 
+ EXTRA_DIST =		mad.h.sed  \
+-			CHANGES COPYRIGHT CREDITS README TODO VERSION
++			CHANGES COPYRIGHT CREDITS README TODO VERSION \
++			mad.pc.in
+ 
+ exported_headers =	version.h fixed.h bit.h timer.h stream.h frame.h  \
+ 			synth.h decoder.h
+
============================================================
--- packages/libmad/libmad_0.15.1b.bb	5adf575856900e241c7311e25081db325e13344d
+++ packages/libmad/libmad_0.15.1b.bb	55e89f58cb09590f6599edf4eef9e25444542c4d
@@ -3,15 +3,16 @@ LICENSE = "GPL"
 PRIORITY = "optional"
 DEPENDS = "libid3tag"
 LICENSE = "GPL"
+PR = "r3"
 
-PR = "r2"
+SRC_URI = "${SOURCEFORGE_MIRROR}/mad/libmad-${PV}.tar.gz \
+           file://add-pkgconfig.patch;patch=1"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/mad/libmad-${PV}.tar.gz"
 S = "${WORKDIR}/libmad-${PV}"
 
 SRC_URI_append_avr32 = " file://libmad-0.15.1b-avr32-optimization.patch;patch=1"
 
-inherit autotools
+inherit autotools pkgconfig
 
 EXTRA_OECONF = "-enable-speed --enable-shared"
 # The ASO's don't take any account of thumb...
@@ -27,3 +28,5 @@ do_stage() {
 	oe_libinstall -so libmad ${STAGING_LIBDIR}
 	install -m 0644 mad.h ${STAGING_INCDIR}
 }
+
+ARM_INSTRUCTION_SET = "arm"






More information about the Openembedded-commits mailing list