Libmcrypt

From CBLFS
Jump to navigationJump to search
Download Source: http://downloads.sourceforge.net/mcrypt/libmcrypt-2.5.8.tar.bz2

Introduction to Libmcrypt

Libmcrypt is a library which provides a uniform interface to several symmetric encryption algorithms. It is intended to have a simple interface to access encryption algorithms in ofb, cbc, cfb, and ecb modes.

Project Homepage: http://mcrypt.sourceforge.net/


Dependencies

Non-Multilib

Compile the package:

./configure --prefix=/usr --enable-static &&
make

Install the package:

make install &&
rmdir /usr/lib/libmcrypt

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr --enable-static &&
make

Install the package:

make install &&
rmdir /usr/lib/libmcrypt &&
mv -v /usr/bin/libmcrypt-config{,-32}

N32

Compile the package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
    --libdir=/usr/lib32 --enable-static &&
make

Install the package:

make install &&
rmdir /usr/lib32/libmcrypt &&
mv -v /usr/bin/libmcrypt-config{,-n32}

64Bit

Compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr \
    --libdir=/usr/lib64 --enable-static &&
make

Install the package:

make install &&
rmdir /usr/lib64/libmcrypt &&
mv -v /usr/bin/libmcrypt-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/libmcrypt-config

Configuration Information

--enable-static: This is required to build the static library libmcrypt.a.

Command Explanations

rmdir /usr/lib*/libmcrypt: This command removes an empty directory which is created during installation.

Contents

Installed Directories: /usr/include/mutils
Installed Programs: libmcrypt-config
Installed Libraries: libmcrypt.{a,la,so}