Difference between revisions of "Popt"
From CBLFS
Jump to navigationJump to search (I added the "Contents" section from BLFS.) |
|||
Line 2: | Line 2: | ||
|- | |- | ||
!Download Source: | !Download Source: | ||
− | | | + | | ftp://jbj.org/pub/rpm-4.4.x/popt-{{Popt-Version}}.tar.gz |
|} | |} | ||
Line 17: | Line 17: | ||
Compile the package: | Compile the package: | ||
− | + | ./configure --prefix=/usr --libdir=/usr/lib && | |
− | |||
− | |||
− | |||
make | make | ||
Install the package | Install the package | ||
− | make install | + | sed -i "s@\(^libdir='\).*@\1/usr/lib'@g" libpopt.la && |
+ | sed -i "s@\(^libdir='\).*@\1/usr/lib'@g" .libs/libpopt.lai && | ||
+ | make usrlibdir=/usr/lib install | ||
== Multilib == | == Multilib == | ||
Line 33: | Line 32: | ||
Compile the package: | Compile the package: | ||
− | + | CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr --libdir=/usr/lib && | |
− | |||
− | |||
− | CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr && | ||
make | make | ||
Install the package | Install the package | ||
− | make install | + | sed -i "s@\(^libdir='\).*@\1/usr/lib'@g" libpopt.la && |
+ | sed -i "s@\(^libdir='\).*@\1/usr/lib'@g" .libs/libpopt.lai && | ||
+ | make usrlibdir=/usr/lib install | ||
+ | |||
=== N32 === | === N32 === | ||
Line 47: | Line 46: | ||
Compile the package: | Compile the package: | ||
− | |||
− | |||
− | |||
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ./configure --prefix=/usr \ | CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ./configure --prefix=/usr \ | ||
--libdir=/usr/lib32 && | --libdir=/usr/lib32 && | ||
Line 56: | Line 52: | ||
Install the package | Install the package | ||
− | make install | + | sed -i "s@\(^libdir='\).*@\1/usr/lib32'@g" libpopt.la && |
+ | sed -i "s@\(^libdir='\).*@\1/usr/lib32'@g" .libs/libpopt.lai && | ||
+ | make usrlibdir=/usr/lib32 install | ||
=== 64Bit === | === 64Bit === | ||
Line 62: | Line 60: | ||
Compile the package: | Compile the package: | ||
− | |||
− | |||
− | |||
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" ./configure --prefix=/usr \ | CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" ./configure --prefix=/usr \ | ||
--libdir=/usr/lib64 && | --libdir=/usr/lib64 && | ||
Line 71: | Line 66: | ||
Install the package | Install the package | ||
− | make install | + | sed -i "s@\(^libdir='\).*@\1/usr/lib64'@g" libpopt.la && |
+ | sed -i "s@\(^libdir='\).*@\1/usr/lib64'@g" .libs/libpopt.lai && | ||
+ | make usrlibdir=/usr/lib64 install | ||
= Contents = | = Contents = | ||
Line 84: | Line 81: | ||
|-valign="top" | |-valign="top" | ||
! Installed Directories: | ! Installed Directories: | ||
− | | /usr/share/doc/popt- | + | | /usr/share/doc/popt-{{Popt-Version}} |
|} | |} | ||
Revision as of 22:15, 16 December 2006
Download Source: | ftp://jbj.org/pub/rpm-4.4.x/popt-1.16.tar.gz |
---|
Contents
Introduction to Popt
The popt package contains the popt libraries which are used by some programs to parse command-line options.
Dependencies
Non-Multilib
Compile the package:
./configure --prefix=/usr --libdir=/usr/lib && make
Install the package
sed -i "s@\(^libdir='\).*@\1/usr/lib'@g" libpopt.la && sed -i "s@\(^libdir='\).*@\1/usr/lib'@g" .libs/libpopt.lai && make usrlibdir=/usr/lib install
Multilib
32Bit
Compile the package:
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr --libdir=/usr/lib && make
Install the package
sed -i "s@\(^libdir='\).*@\1/usr/lib'@g" libpopt.la && sed -i "s@\(^libdir='\).*@\1/usr/lib'@g" .libs/libpopt.lai && make usrlibdir=/usr/lib install
N32
Compile the package:
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ./configure --prefix=/usr \ --libdir=/usr/lib32 && make
Install the package
sed -i "s@\(^libdir='\).*@\1/usr/lib32'@g" libpopt.la && sed -i "s@\(^libdir='\).*@\1/usr/lib32'@g" .libs/libpopt.lai && make usrlibdir=/usr/lib32 install
64Bit
Compile the package:
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" ./configure --prefix=/usr \ --libdir=/usr/lib64 && make
Install the package
sed -i "s@\(^libdir='\).*@\1/usr/lib64'@g" libpopt.la && sed -i "s@\(^libdir='\).*@\1/usr/lib64'@g" .libs/libpopt.lai && make usrlibdir=/usr/lib64 install
Contents
Installed Programs: | None |
---|---|
Installed Libraries: | libpopt.{so,a} |
Installed Directories: | /usr/share/doc/popt-1.16 |
Short Descriptions
libpopt.{so,a} | is used to parse command-line options. |
---|