Difference between revisions of "Libmad"
From CBLFS
Jump to navigationJump to search (→N32) |
(→N32) |
||
Line 74: | Line 74: | ||
make install | make install | ||
− | cat > /usr/ | + | cat > /usr/lib32/pkgconfig/mad.pc << "EOF" |
prefix=/usr | prefix=/usr | ||
exec_prefix=${prefix} | exec_prefix=${prefix} | ||
− | libdir=${exec_prefix}/ | + | libdir=${exec_prefix}/lib32 |
includedir=${prefix}/include | includedir=${prefix}/include | ||
Revision as of 18:10, 23 September 2006
Download Source: | http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz |
---|
Dependencies
Non-Multilib
Configure and compile the package:
./configure --prefix=/usr && make
Install the package:
make install
cat > /usr/lib/pkgconfig/mad.pc << "EOF" 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} EOF
Multilib
32Bit
Configure and compile the package:
CC="gcc ${BUILD32}" ./configure --prefix=/usr && make
Install the package:
make install mkdir -pv /usr/include/32 mv -v /usr/include/mad.h /usr/include/32
cat > /usr/lib/pkgconfig/mad.pc << "EOF" 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} EOF
N32
Configure and compile the package:
CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 && make
Install the package:
make install
cat > /usr/lib32/pkgconfig/mad.pc << "EOF" prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib32 includedir=${prefix}/include Name: mad Description: MPEG audio decoder Requires: Version: 0.15.1b Libs: -L${libdir} -lmad Cflags: -I${includedir} EOF
64Bit
Configure and compile the package:
CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 && make
Install the package:
make install mkdir -pv /usr/include/64 && mv -v /usr/include/mad.h /usr/include/64
cat > /usr/lib64/pkgconfig/mad.pc << "EOF" prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib64 includedir=${prefix}/include Name: mad Description: MPEG audio decoder Requires: Version: 0.15.1b Libs: -L${libdir} -lmad Cflags: -I${includedir} EOF
Fix the Headers
cat > /usr/include/mad.h << "EOF" #ifndef __STUB__MAD_H__ #define __STUB__MAD_H__ #ifdef __x86_64__ #include "64/mad.h" #else #include "32/mad.h" #endif /* __x86_64__ */ #endif /* __STUB__MAD_H__ */ EOF