summaryrefslogtreecommitdiff
path: root/libraries/libdmtx
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libdmtx')
-rw-r--r--libraries/libdmtx/README7
-rw-r--r--libraries/libdmtx/libdmtx.SlackBuild79
-rw-r--r--libraries/libdmtx/libdmtx.info10
-rw-r--r--libraries/libdmtx/slack-desc19
4 files changed, 115 insertions, 0 deletions
diff --git a/libraries/libdmtx/README b/libraries/libdmtx/README
new file mode 100644
index 0000000000..653db41736
--- /dev/null
+++ b/libraries/libdmtx/README
@@ -0,0 +1,7 @@
+libdmtx (Data Matrix barcode library and utilities)
+
+libdmtx is open source software for reading and writing Data Matrix barcodes
+on Linux, Unix, OS X, Windows, and some mobile devices. At its core libdmtx
+is a shared library, allowing C/C++ programs to use its capabilities without
+restrictions or overhead. The included utility programs, dmtxread and
+dmtxwrite, serve as the official interface to libdmtx from the command line.
diff --git a/libraries/libdmtx/libdmtx.SlackBuild b/libraries/libdmtx/libdmtx.SlackBuild
new file mode 100644
index 0000000000..3680b7fa2d
--- /dev/null
+++ b/libraries/libdmtx/libdmtx.SlackBuild
@@ -0,0 +1,79 @@
+#!/bin/sh
+
+# Slackware build script for libdmtx
+
+# Written by David Miller dave@frop.net
+# This script is released into the public domain
+
+PRGNAM=libdmtx
+VERSION=${VERSION:-0.7.2}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+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 $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+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 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man
+
+make
+make install DESTDIR=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+)
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING COPYING.LESSER ChangeLog INSTALL KNOWNBUG NEWS README* TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+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/libdmtx/libdmtx.info b/libraries/libdmtx/libdmtx.info
new file mode 100644
index 0000000000..f41b94e0b0
--- /dev/null
+++ b/libraries/libdmtx/libdmtx.info
@@ -0,0 +1,10 @@
+PRGNAM="libdmtx"
+VERSION="0.7.2"
+HOMEPAGE="http://www.libdmtx.org/"
+DOWNLOAD="http://downloads.sourceforge.net/project/libdmtx/libdmtx/0.7.2/libdmtx-0.7.2.tar.bz2"
+MD5SUM="0684cf3857591e777b57248d652444ae"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="David Miller"
+EMAIL="dave@frop.net"
+APPROVED="dsomero"
diff --git a/libraries/libdmtx/slack-desc b/libraries/libdmtx/slack-desc
new file mode 100644
index 0000000000..03d7ea770d
--- /dev/null
+++ b/libraries/libdmtx/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-----------------------------------------------------|
+libdmtx: libdmtx (Data Matrix barcode library and utilities)
+libdmtx:
+libdmtx: libdmtx is open source software for reading and writing Data Matrix
+libdmtx: barcodes on Linux, Unix, OS X, Windows, and some mobile devices. At
+libdmtx: its core libdmtx is a shared library, allowing C/C++ programs
+libdmtx: to use its capabilities without restrictions or overhead. The
+libdmtx: included utility programs, dmtxread and dmtxwrite, serve as the
+libdmtx: official interface to libdmtx from the command line.
+libdmtx:
+libdmtx:
+libdmtx: