Pwlib
From CBLFS
Jump to navigationJump to searchDownload Source: | http://www.ekiga.org/admin/downloads/latest/sources/sources/pwlib-1.10.10.tar.gz |
---|
Contents
Dependencies
Optional
- OpenLDAP (you must use this if you wish to build ekiga)
- CyrusSASL
- OpenSSL
- Expat
- SDL
- ALSA
- libraw1394
- libdc1394
Non-Multilib
Compile the package:
./configure --prefix=/usr && make
Install:
make install && chmod -v 755 /usr/lib/libpt_linux*so*
Multilib
32Bit
Compile the package:
sed -i "s:/share/pwlib:/lib/pwlib:g" Makefile.in && CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \ ./configure --prefix=/usr --build=${CLFS_TARGET32} && make CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}"
Install the package:
make install && chmod -v 755 /usr/lib/libpt_linux*so* && mv -v /usr/bin/ptlib-config{,-32} && mv -v /usr/include/ptbuildopts{,-32}.h
N32
Compile the package:
sed -i "s:/share/pwlib:/lib32/pwlib:g" Makefile.in && CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \ ./configure --prefix=/usr --libdir=/usr/lib64 && make CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}"
Install the package:
make install && chmod -v 755 /usr/lib32/libpt_linux*so* && mv -v /usr/bin/ptlib-config{,-n32} && mv -v /usr/include/ptbuildopts{,-n32}.h
64Bit
Compile the package:
sed -i "s:/share/pwlib:/lib64/pwlib:g" Makefile.in && CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \ ./configure --prefix=/usr --libdir=/usr/lib64 && make CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}"
Install the package:
make install && chmod -v 755 /usr/lib64/libpt_linux*so* && mv -v /usr/bin/ptlib-config{,-64} && ln -sfv multiarch_wrapper /usr/bin/ptlib-config && mv -v /usr/include/ptbuildopts{,-64}.h
Creating a Stub Header (Multilib Only)
Creating a Generic Stub Header
cat > /usr/include/ptbuildopts.h.h << "EOF" /* ptbuildopts.h.h - Stub Header */ #ifndef __STUB__PTBUILDOPTS.H_H__ #define __STUB__PTBUILDOPTS.H_H__ #if defined(__x86_64__) || \ defined(__sparc64__) || \ defined(__arch64__) || \ defined(__powerpc64__) || \ defined (__s390x__) # include "ptbuildopts.h-64.h" #else # include "ptbuildopts.h-32.h" #endif #endif /* __STUB__PTBUILDOPTS.H_H__ */ EOF
Creating a Stub Header For Mips
cat > /usr/include/ptbuildopts.h.h << "EOF" /* ptbuildopts.h.h - Stub Header */ #ifndef __STUB__PTBUILDOPTS.H_H__ #define __STUB__PTBUILDOPTS.H_H__ #include <sgidefs.h> #if (_MIPS_SIM == _ABIO32) # include "ptbuildopts.h-32.h" #elif (_MIPS_SIM == _ABIN32) # include "ptbuildopts.h-n32.h" #elif (_MIPS_SIM == _ABI64) # include "ptbuildopts.h-64.h" #endif #endif /* __STUB__PTBUILDOPTS.H_H__ */ EOF