diff options
author | Andrzej Telszewski <atelszewski@gmail.com> | 2010-05-13 00:58:56 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:58:56 +0200 |
commit | 1f9c5decc4484ab86219d4edaf1036500d65986c (patch) | |
tree | 4b5d00b24f54ffd9e88381df503b57b3c9c6538e /libraries/libparapin | |
parent | cb2f74d1f0c49acee9e1c2609ecc23ebf136e177 (diff) |
libraries/libparapin: Added to 13.0 repository
Diffstat (limited to 'libraries/libparapin')
-rw-r--r-- | libraries/libparapin/README | 12 | ||||
-rw-r--r-- | libraries/libparapin/libparapin.SlackBuild | 73 | ||||
-rw-r--r-- | libraries/libparapin/libparapin.info | 10 | ||||
-rw-r--r-- | libraries/libparapin/slack-desc | 19 |
4 files changed, 114 insertions, 0 deletions
diff --git a/libraries/libparapin/README b/libraries/libparapin/README new file mode 100644 index 0000000000000..303278ee0690f --- /dev/null +++ b/libraries/libparapin/README @@ -0,0 +1,12 @@ +Parapin makes it easy to write C code under Linux that controls individual +pins on a PC parallel port. This kind of control is very useful for +electronics projects that use the PC's parallel port as a generic digital I/O +interface. Parapin goes to great lengths to insulate the programmer from the +somewhat complex parallel port programming interface provided by the PC hardware, +making it easy to use the parallel port for digital I/O. By the same token, this +abstraction also makes Parapin less useful in applications that need to actually +use the parallel port as a parallel port (e.g., for talking to a printer). + +Parapin has two "personalities": it can either be used as a user-space C library, +or linked as part of a Linux kernel module. This SlackBuild provides user-space +only library. diff --git a/libraries/libparapin/libparapin.SlackBuild b/libraries/libparapin/libparapin.SlackBuild new file mode 100644 index 0000000000000..2be0fc23fd829 --- /dev/null +++ b/libraries/libparapin/libparapin.SlackBuild @@ -0,0 +1,73 @@ +#!/bin/sh + +# Slackware build script for parapin (userspace library version only) + +# Written by Andrzej Telszewski <atelszewski@gmail.com> + +PRGNAM=libparapin +SRCNAM=parapin +VERSION=${VERSION:-1.5.1_beta1} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCVERSION=$(echo $VERSION | tr _ -) + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$SRCVERSION +tar xvf $CWD/$SRCNAM-$SRCVERSION.tgz +cd $SRCNAM-$SRCVERSION + +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# we only support building for 2.6 kernel +set +e +./setup-2.6.sh << EOF +y +EOF + +set -e + +CFLAGS="$SLKCFLAGS" make libparapin.a + +mkdir -p $PKG/usr/{include,lib${LIBDIRSUFFIX}} +cat parapin.h > $PKG/usr/include/parapin.h +cp -a libparapin.a $PKG/usr/lib${LIBDIRSUFFIX} + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + INSTALL LICENSE README contrib doc/parapin.{html,txt} examples \ + $PKG/usr/doc/$PRGNAM-$VERSION +rm $PKG/usr/doc/$PRGNAM-$VERSION/examples/.cvsignore +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/libraries/libparapin/libparapin.info b/libraries/libparapin/libparapin.info new file mode 100644 index 0000000000000..508ecbc49815a --- /dev/null +++ b/libraries/libparapin/libparapin.info @@ -0,0 +1,10 @@ +PRGNAM="libparapin" +VERSION="1.5.1_beta1" +HOMEPAGE="http://parapin.sourceforge.net/" +DOWNLOAD="http://dl.sourceforge.net/parapin/parapin-1.5.1-beta1.tgz" +MD5SUM="20ce7b997c3f907de49cc7aaa1946e00" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Andrzej Telszewski" +EMAIL="atelszewski@gmail.com" +APPROVED="rworkman" diff --git a/libraries/libparapin/slack-desc b/libraries/libparapin/slack-desc new file mode 100644 index 0000000000000..c44245e41558f --- /dev/null +++ b/libraries/libparapin/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +libparapin: libparapin (a Parallel Port Pin Programming Library for Linux) +libparapin: +libparapin: Parapin makes it easy to write C code under Linux that controls +libparapin: individual pins on a PC parallel port. +libparapin: +libparapin: This is a library only version of parapin (in opposite to the kernel +libparapin: module version), which works from userspace. +libparapin: +libparapin: +libparapin: Homepage: http://parapin.sourceforge.net/ +libparapin: |