Skip to content

Commit

Permalink
Tue Oct 19 14:35:02 WIT 2010
Browse files Browse the repository at this point in the history
Add new git repository here, as external drives are more portable and easier to
managed. So all of the main additional softwares will be keep in here.
  • Loading branch information
Widya Walesa committed Oct 19, 2010
0 parents commit cc67b78
Show file tree
Hide file tree
Showing 1,662 changed files with 134,559 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .gitignore
@@ -0,0 +1,23 @@
*.tar.*
*.tgz
*.txz
*.zip
*/trunk/*
*.md5*
*.sig
*.asc
*.sha*
*.log
*~
*.bak
*.ebuild
*.wls
*.git
blueman
bluez*
obex-data-server*
obexfs*
obexftp*
pino/pino3/*
python-twitter/python-twitter/*
gtk-murrine-engine/murrine/*
188 changes: 188 additions & 0 deletions CImg/CImg.SlackBuild
@@ -0,0 +1,188 @@
#!/bin/sh

# Written by Widya Walesa <walecha99@gmail.com>

# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

set -e
LANG=C
export $LANG

PKGNAME=CImg
VERSION=1.3.4
PAK=zip
DOCS="AUTHORS ChangeLog COPY* HACKING INSTALL LICENSE NEWS NOTES README THANKS TODO"
BUILD=1
TAG=_wls
CWD="$(pwd)"
TMP=/tmp/id-slack
PKG=$TMP/package-$PKGNAME
OUTPUT=/tmp
SRC="$CWD"

ARCH="noarch"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -pipe -march=i486 -mtune=i686";
LIBDIRSUFFIX="";
CHOST="i486-slackware-linux"
elif [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -pipe -march=i486 -mtune=i686";
LIBDIRSUFFIX="";
CHOST="i486-slackware-linux"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -pipe -march=i486 -mtune=i686";
LIBDIRSUFFIX="";
CHOST="i486-slackware-linux"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -pipe -mtune=generic -m64 -fPIC";
LIBDIRSUFFIX="64";
CHOST="$ARCH-slackware-linux"
fi

prepare() {
mkdir -p $TMP
cd $TMP
rm -rf $PKG
rm -rf doinst.sh $PKGNAME-$VERSION
mkdir -p $PKG
mkdir -p $PKG/install
mkdir -p $OUTPUT

unzip $SRC/$PKGNAME-$VERSION.$PAK
cd $PKGNAME-$VERSION

# Fix permissions for building.
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 {} \;
}

building() {
mkdir -p $PKG/usr/include/CImg
cat CImg.h > $PKG/usr/include/CImg/CImg.h
( cd $PKG/usr/include/ ; ln -sf /usr/include/CImg/CImg.h . )

mkdir -p $PKG/usr/share/CImg
cp -a -r -p plugins $PKG/usr/share/CImg/

mkdir -p $PKG/usr/doc/$PKGNAME-$VERSION
cp -a -r -p *.txt $PKG/usr/doc/$PKGNAME-$VERSION
}

packaging() {
## general script - add additional scripts before this line
echo "Setting up manual and info pages"
(
if [ -d $PKG/usr/share/man ]; then
cp -r $PKG/usr/share/man $PKG/usr/
rm -rf $PKG/usr/share/man
fi
)

(
if [ -d $PKG/usr/man ]; then
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
fi
)

(
if [ -d $PKG/usr/info ]; then
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*.info*
fi
)

echo "Setting up documentations"
(
if [ -d $PKG/usr/share/doc/HTML ]; then
mkdir -p $PKG/usr/doc
cp -r $PKG/usr/share/doc/HTML $PKG/usr/doc/
rm -rf $PKG/usr/share/doc/HTML
fi
)

(
if [ -d $PKG/usr/share/doc ]; then
mkdir -p $PKG/usr/doc
for D in `ls $PKG/usr/share/doc/`
do cp -a -r $PKG/usr/share/doc/$D $PKG/usr/doc/$PKGNAME-$VERSION
done
rm -rf $PKG/usr/share/doc
fi
)

(
mkdir -p $PKG/usr/doc/$PKGNAME-$VERSION
cat $CWD/$PKGNAME.SlackBuild > $PKG/usr/doc/$PKGNAME-$VERSION/$PKGNAME.SlackBuild
cd $TMP/$PKGNAME-$VERSION
for X in $DOCS; do
if [ -e $X ]; then
cp -a $X $PKG/usr/doc/$PKGNAME-$VERSION
fi
done
)

echo "Setting up meta package files"
(
mkdir -p $PKG/install
if [ -f $TMP/doinst.sh ]; then
cat $TMP/doinst.sh >> $PKG/install/doinst.sh
fi
for META in slack-desc slack-required slack-conflict doinst.sh; do
if [ -f $CWD/$META ]; then
cat $CWD/$META >> $PKG/install/$META
fi
done
)

echo "Packaging"
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PKGNAME-$VERSION-$ARCH-$BUILD$TAG.txz
}

cleaning() {
echo "Cleaning up $TMP";
cd $TMP ; rm -rf doinst.sh $PKG $PKGNAME-$VERSION;
}

installing() {
cd /; installpkg $OUTPUT/$PKGNAME-$VERSION-$ARCH-$BUILD$TAG.txz;
}

case $1 in
noclean)
prepare;
building;
packaging;
installing;
;;
*)
prepare;
building;
packaging;
cleaning;
installing;
;;
esac

unset LANG
19 changes: 19 additions & 0 deletions CImg/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---------------------------------------------------------|
CImg: CImg (open-source C++ toolkit for image processing)
CImg:
CImg: It mainly consists in a (big) single header file CImg.h providing a set
CImg: of C++ classes and functions that can be used in your own sources, to
CImg: load/save, manage/process and display generic images. It's actually a
CImg: very simple and pleasant toolkit for coding image processing stuffs in
CImg: C++ : Just include the header file CImg.h, and you are ready to handle
CImg: images in your C++ programs.
CImg:
CImg: URL: http://cimg.sourceforge.net/
CImg:

0 comments on commit cc67b78

Please sign in to comment.