Difference between revisions of "Popt"
From CBLFS
Jump to navigationJump to searchJjdicharry (talk | contribs) |
|||
(11 intermediate revisions by 6 users not shown) | |||
Line 2: | Line 2: | ||
|- | |- | ||
!Download Source: | !Download Source: | ||
− | | http:// | + | | http://rpm5.org/files/popt/popt-{{Popt-Version}}.tar.gz |
+ | |-valign="top" | ||
+ | !Alternate Download Source: | ||
+ | | ftp://anduin.linuxfromscratch.org/BLFS/svn/p/popt-1.16.tar.gz | ||
|} | |} | ||
---- | ---- | ||
+ | |||
+ | {{Package-Introduction|Popt is a C library for parsing command line parameters. Popt was heavily influenced by the getopt() and getopt_long() functions, but it improves on them by allowing more powerful argument expansion. Popt can parse arbitrary argv[] style arrays and automatically set variables based on command line arguments. Popt allows command line arguments to be aliased via configuration files and includes utility functions for parsing arbitrary strings into argv[] arrays using shell-like rules. | ||
+ | |http://freshmeat.net/projects/popt}} | ||
== Dependencies == | == Dependencies == | ||
Line 13: | Line 19: | ||
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 29: | Line 34: | ||
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 43: | Line 48: | ||
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 52: | Line 54: | ||
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 58: | Line 62: | ||
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 67: | Line 68: | ||
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 = | ||
+ | |||
+ | {| style="text-align: left;" | ||
+ | |-valign="top" | ||
+ | ! Installed Programs: | ||
+ | | None | ||
+ | |-valign="top" | ||
+ | ! Installed Libraries: | ||
+ | | libpopt.{so,a} | ||
+ | |-valign="top" | ||
+ | ! Installed Directories: | ||
+ | | /usr/share/doc/popt-{{Popt-Version}} | ||
+ | |} | ||
+ | |||
+ | === Short Descriptions === | ||
+ | |||
+ | {| style="text-align: left;" | ||
+ | |-valign="top" | ||
+ | ! libpopt.{so,a} | ||
+ | | is used to parse command-line options. | ||
+ | |} | ||
+ | |||
+ | [[Category:General Libs]] |
Latest revision as of 17:01, 22 April 2011
Download Source: | http://rpm5.org/files/popt/popt-1.16.tar.gz |
---|---|
Alternate Download Source: | ftp://anduin.linuxfromscratch.org/BLFS/svn/p/popt-1.16.tar.gz |
Contents
Introduction to Popt
Popt is a C library for parsing command line parameters. Popt was heavily influenced by the getopt() and getopt_long() functions, but it improves on them by allowing more powerful argument expansion. Popt can parse arbitrary argv[] style arrays and automatically set variables based on command line arguments. Popt allows command line arguments to be aliased via configuration files and includes utility functions for parsing arbitrary strings into argv[] arrays using shell-like rules.
Project Homepage: http://freshmeat.net/projects/popt
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. |
---|