Difference between revisions of "Gengetopt"

From CBLFS
Jump to navigationJump to search
Line 3: Line 3:
 
!Download Source:
 
!Download Source:
 
| ftp://ftp.gnu.org/gnu/gengetopt/gengetopt-{{Gengetopt-Version}}.tar.gz
 
| ftp://ftp.gnu.org/gnu/gengetopt/gengetopt-{{Gengetopt-Version}}.tar.gz
 +
|-
 +
!Optional patch:
 +
| http://svn.cross-lfs.org/svn/repos/patches/gengetopt/gengetopt-{{gengetopt-Version}}-gcc4.3-1.patch
 
|}
 
|}
  
Line 12: Line 15:
  
 
== Non-Multilib ==
 
== Non-Multilib ==
 +
 +
If you have gcc-4.3, apply this patch :
 +
 +
  patch -Np1 -i ../gengetopt-{{Gengetopt-Version}}-gcc4.3-1.patch
  
 
Compile the package:
 
Compile the package:
Line 25: Line 32:
  
 
=== 32Bit ===
 
=== 32Bit ===
 +
 +
If you have gcc-4.3, apply this patch :
 +
 +
  patch -Np1 -i ../gengetopt-{{Gengetopt-Version}}-gcc4.3-1.patch
  
 
Compile the package:
 
Compile the package:
Line 37: Line 48:
  
 
=== N32 ===
 
=== N32 ===
 +
 +
If you have gcc-4.3, apply this patch :
 +
 +
  patch -Np1 -i ../gengetopt-{{Gengetopt-Version}}-gcc4.3-1.patch
  
 
Compile the package:
 
Compile the package:
Line 49: Line 64:
  
 
=== 64Bit ===
 
=== 64Bit ===
 +
 +
If you have gcc-4.3, apply this patch :
 +
 +
  patch -Np1 -i ../gengetopt-{{Gengetopt-Version}}-gcc4.3-1.patch
  
 
Compile the package:
 
Compile the package:

Revision as of 06:50, 20 April 2008

Download Source: ftp://ftp.gnu.org/gnu/gengetopt/gengetopt-2.22.1.tar.gz
Optional patch: http://svn.cross-lfs.org/svn/repos/patches/gengetopt/gengetopt-2.22.1-gcc4.3-1.patch

Introduction to Gengetopt

This program generates a C function that uses getopt_long function to parse the command line options, to validate them and fills a struct.

Project Homepage: http://www.gnu.org/software/gengetopt/gengetopt.html

Dependencies

Non-Multilib

If you have gcc-4.3, apply this patch :

 patch -Np1 -i ../gengetopt-2.22.1-gcc4.3-1.patch

Compile the package:

./configure --prefix=/usr --disable-dependency-tracking &&
make

Install the package:

make install

Multilib

32Bit

If you have gcc-4.3, apply this patch :

 patch -Np1 -i ../gengetopt-2.22.1-gcc4.3-1.patch

Compile the package:

CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
./configure --prefix=/usr &&
make

Install the package:

make install

N32

If you have gcc-4.3, apply this patch :

 patch -Np1 -i ../gengetopt-2.22.1-gcc4.3-1.patch

Compile the package:

CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \
./configure --prefix=/usr &&
make

Install the package:

make install

64Bit

If you have gcc-4.3, apply this patch :

 patch -Np1 -i ../gengetopt-2.22.1-gcc4.3-1.patch

Compile the package:

CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
./configure --prefix=/usr &&
make

Install the package:

make install

Contents

Installed Programs: gengetopt
Installed Libraries: None
Installed Directories: /usr/share/doc/gengetopt