#!/bin/bash ## src2pkg script for: libjpeg ## Auto-generated by src2pkg-2.1 ## src2pkg - Copyright 2005-2009 Gilbert Ashley SOURCE_NAME='jpegsrc.v6b.tar.gz' ALT_NAME='libjpeg' ALT_VERSION='6b' # ARCH='' # BUILD='1' # PRE_FIX='usr' # Any extra options go here: # EXTRA_CONFIGS="" PATCHLIST='jpeg-6b.diff.gz' # Optional function replaces configure_source, compile_source, fake_install # To use, uncomment and write/paste CODE between the {} brackets. # build() { CODE } # Get the functions and configs . /usr/libexec/src2pkg/FUNCTIONS ; # Execute the named packaging steps: pre_process find_source make_dirs unpack_source fix_source_perms configure_source # compile_source # If used, the 'build' function replaces these 3 # fake_install # mkdir -p $PKG_DIR/usr/{bin,include,lib${LIBDIRSUFFIX}} mkdir -p $MAN_DIR/man1 (cd $SRC_DIR for FILE in cjpeg djpeg rdjpgcom wrjpgcom jpegtran ; do cp -a $FILE $PKG_DIR/usr/bin done for PAGE in cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1 ; do cp $PAGE $MAN_DIR/man1 done cp -a libjpeg.so.62.0.0 $PKG_DIR/usr/lib${LIBDIRSUFFIX} ( cd $PKG_DIR/usr/lib${LIBDIRSUFFIX} ; ln -sf libjpeg.so.62.0.0 libjpeg.so.62 ) ( cd $PKG_DIR/usr/lib${LIBDIRSUFFIX} ; ln -sf libjpeg.so.62 libjpeg.so ) cp -a libjpeg.a $PKG_DIR/usr/lib${LIBDIRSUFFIX} cp -a jconfig.h jpeglib.h jmorecfg.h jerror.h $PKG_DIR/usr/include # possibly missing headers: #for FILE in jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h \ # jmorecfg.h jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h jconfig.h ; do # cp -a $FILE $PKG_DIR/usr/include #done ) fix_pkg_perms strip_bins create_docs compress_man_pages make_description make_doinst make_package post_process ## See the documentation for more help and examples. Below are some of # the most common Extras and Options for easy cut-and-paste use. # DOCLIST='' PATCHLIST='' INSTALL_TYPE='' # CONFIG_COMMAND='' MAKE_COMMAND='' INSTALL_LINE='' # When editing src2pkg scripts to add custom code, use these variables # to refer to the current directory, the sources or the package tree: # $CWD (current directory), $SRC_DIR (sources), $PKG_DIR (package tree) # Other commonly-used directories include: $DOC_DIR (document directory) # $MAN_DIR (man-page directory) $DATA_DIR (shared-data directory)