parent
fa69d809c7
commit
0d3ac8f304
@ -1,14 +0,0 @@
|
||||
all:
|
||||
@echo "This Makefile is only for the CVS repository"
|
||||
@echo "This will be deleted before making the distribution"
|
||||
@echo ""
|
||||
@if test ! -d admin; then \
|
||||
echo "Please recheckout this module!" ;\
|
||||
echo "for cvs: use checkout once and after that update again" ;\
|
||||
echo "for cvsup: checkout kde-common from cvsup and" ;\
|
||||
echo " link kde-common/admin to ./admin" ;\
|
||||
exit 1 ;\
|
||||
fi
|
||||
$(MAKE) -f admin/Makefile.common cvs
|
||||
|
||||
.SILENT:
|
@ -1,14 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
vers=`cat B/DEBIAN/control | grep Version | sed s/'Version: '//`
|
||||
|
||||
make install DESTDIR=`pwd`/B &&
|
||||
rm -f B/usr/lib/ksquirrel-libs/*.la &&
|
||||
rm -f B/usr/lib/*.la &&
|
||||
rm -f B/usr/lib/ksquirrel-libs/*.so &&
|
||||
rm -f B/usr/lib/ksquirrel-libs/*.so.0 &&
|
||||
strip B/usr/lib/ksquirrel-libs/* &&
|
||||
strip B/usr/lib/*
|
||||
strip B/usr/bin/*
|
||||
dpkg-deb -b B ksquirrel-libs_${vers}_i386.deb &&
|
||||
rm -rf B/usr
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,8 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
#par="--exec-prefix=/usr --prefix=/usr --libdir=/usr/lib/ksquirrel"
|
||||
#par="--disable-rpath --prefix=/usr"
|
||||
|
||||
echo "*** Doing configure $* $par ..."
|
||||
|
||||
./configure $* $par
|
@ -1 +0,0 @@
|
||||
Set of image codecs for KSquirrel
|
@ -1,223 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Generate new development directory for image format
|
||||
#
|
||||
# Usage:
|
||||
# $ ./generate <format>
|
||||
#
|
||||
|
||||
|
||||
name=$1
|
||||
mkdir $name
|
||||
mkdir include > /dev/null 2>&1
|
||||
cd $name
|
||||
|
||||
cat << EOF > Makefile.am
|
||||
INCLUDES = -I../include
|
||||
|
||||
lib_LTLIBRARIES = lib${name}.la
|
||||
|
||||
lib${name}_la_SOURCES = fmt_codec_${name}.cpp fmt_codec_${name}_defs.h
|
||||
|
||||
lib${name}_la_LDFLAGS =
|
||||
EOF
|
||||
|
||||
cat << EOF > ../include/fmt_codec_${name}.h
|
||||
/* This file is part of ksquirrel-libs (http://ksquirrel.sf.net)
|
||||
|
||||
Copyright (c) 2005 Dmitry Baryshev <ksquirrel@tut.by>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation;
|
||||
either version 2 of the License, or (at your option) any later
|
||||
version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef KSQUIRREL_LIBS_CLASS_DEFINITION_${name}_H
|
||||
#define KSQUIRREL_LIBS_CLASS_DEFINITION_${name}_H
|
||||
|
||||
#include "ksquirrel-libs/fmt_codec_base.h"
|
||||
|
||||
class fmt_codec : public fmt_codec_base
|
||||
{
|
||||
public:
|
||||
|
||||
BASE_CODEC_DECLARATIONS
|
||||
|
||||
private:
|
||||
// define variables you need here
|
||||
};
|
||||
|
||||
#endif
|
||||
EOF
|
||||
|
||||
cat << EOF > fmt_codec_${name}_defs.h
|
||||
/* This file is part of ksquirrel-libs (http://ksquirrel.sf.net)
|
||||
|
||||
Copyright (c) 2005 Dmitry Baryshev <ksquirrel@tut.by>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation;
|
||||
either version 2 of the License, or (at your option) any later
|
||||
version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef KSQUIRREL_CODEC_DEFS_${name}
|
||||
#define KSQUIRREL_CODEC_DEFS_${name}
|
||||
|
||||
// define constants here
|
||||
|
||||
#endif
|
||||
EOF
|
||||
|
||||
cat << EOF > fmt_codec_${name}.cpp
|
||||
/* This file is part of ksquirrel-libs (http://ksquirrel.sf.net)
|
||||
|
||||
Copyright (c) 2005 Dmitry Baryshev <ksquirrel@tut.by>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation;
|
||||
either version 2 of the License, or (at your option) any later
|
||||
version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "ksquirrel-libs/fmt_types.h"
|
||||
#include "ksquirrel-libs/fileio.h"
|
||||
|
||||
#include "fmt_codec_${name}_defs.h"
|
||||
#include "fmt_codec_${name}.h"
|
||||
|
||||
#include "ksquirrel-libs/fmt_utils.h"
|
||||
#include "ksquirrel-libs/error.h"
|
||||
|
||||
#include "../xpm/codec_${name}.xpm"
|
||||
EOF
|
||||
|
||||
cat << EOF >> fmt_codec_${name}.cpp
|
||||
|
||||
fmt_codec::fmt_codec() : fmt_codec_base()
|
||||
{}
|
||||
|
||||
fmt_codec::~fmt_codec()
|
||||
{}
|
||||
|
||||
void fmt_codec::options(codec_options *o)
|
||||
{
|
||||
o->version = "0.1.0";
|
||||
o->name = "";
|
||||
o->filter = "*. ";
|
||||
o->mime = "";
|
||||
o->pixmap = codec_${name};
|
||||
o->config = "";
|
||||
o->readable = true;
|
||||
o->writestatic = false;
|
||||
o->writeanimated = false;
|
||||
o->canbemultiple = false;
|
||||
o->needtempfile = false;
|
||||
}
|
||||
|
||||
s32 fmt_codec::read_init(const std::string &file)
|
||||
{
|
||||
frs.open(file.c_str(), ios::binary | ios::in);
|
||||
|
||||
if(!frs.good())
|
||||
return SQE_R_NOFILE;
|
||||
|
||||
currentImage = -1;
|
||||
read_error = false;
|
||||
|
||||
finfo.animated = false;
|
||||
|
||||
return SQE_OK;
|
||||
}
|
||||
|
||||
s32 fmt_codec::read_next()
|
||||
{
|
||||
currentImage++;
|
||||
|
||||
if(currentImage)
|
||||
return SQE_NOTOK;
|
||||
|
||||
fmt_image image;
|
||||
|
||||
/*
|
||||
image.w =
|
||||
image.h =
|
||||
image.bpp =
|
||||
*/
|
||||
|
||||
image.compression = "";
|
||||
image.colorspace = "";
|
||||
|
||||
finfo.image.push_back(image);
|
||||
|
||||
return SQE_OK;
|
||||
}
|
||||
|
||||
s32 fmt_codec::read_next_pass()
|
||||
{
|
||||
return SQE_OK;
|
||||
}
|
||||
|
||||
s32 fmt_codec::read_scanline(RGBA *scan)
|
||||
{
|
||||
RGB rgb;
|
||||
RGBA rgba;
|
||||
fmt_image *im = image(currentImage);
|
||||
fmt_utils::fillAlpha(scan, im->w);
|
||||
|
||||
|
||||
return SQE_OK;
|
||||
}
|
||||
|
||||
void fmt_codec::read_close()
|
||||
{
|
||||
frs.close();
|
||||
|
||||
finfo.meta.clear();
|
||||
finfo.image.clear();
|
||||
}
|
||||
|
||||
#include "fmt_codec_cd_func.h"
|
||||
EOF
|
||||
|
||||
echo
|
||||
echo "All done!"
|
||||
echo
|
||||
echo "Don't forget to insert your copyrights and edit Makefile.am"
|
||||
echo
|
@ -1,24 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# create symlinks from all codecs (bmp/.libs/libkls_bmp.so, ...)
|
||||
# to /usr/lib/ksquirrel-libs/
|
||||
#
|
||||
# Can be used by developers
|
||||
#
|
||||
# Usage:
|
||||
# $ cd ksquirrel-libs/kernel/
|
||||
# $ ./link
|
||||
#
|
||||
|
||||
KSQUIRREL_LIBS="/usr/lib/ksquirrel-libs/"
|
||||
|
||||
rm -f $KSQUIRREL_LIBS/*
|
||||
|
||||
mkdir $KSQUIRREL_LIBS > /dev/null 2>&1
|
||||
|
||||
for i in avs bmp camera cut dds dicom eps fli gif hdr ico iff fig jbig jpeg jpeg2000 koala ljpeg lif mac mdl mng msp mtv openexr pcx pix png pnm psd psp pxr ras rawrgb sct sgi sun svg tga tiff ttf utah wal wbmp wmf xbm xcur xpm xwd djvu dxf xcf neo leaf pi1 pi3 xim pict;
|
||||
do echo "Linking libkls_$i.so ..." && ln -s `pwd`/kls_$i/.libs/libkls_$i.so $KSQUIRREL_LIBS;
|
||||
done
|
||||
|
||||
rm -f /usr/lib/libksquirrel-libs.so
|
||||
ln -s `pwd`/ksquirrel-libs/.libs/libksquirrel-libs.so /usr/lib
|
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
for i in /usr/bin/ksquirrel-libs-*; do chmod +x $i; done
|
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
make -f Makefile.dist && ./configure.gnu
|
@ -1,14 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Install required packages in Debian Etch
|
||||
#
|
||||
# Run this as root before ./configure.gnu
|
||||
#
|
||||
|
||||
aptitude install libjpeg62 libjpeg62-dev libopenexr2c2a libopenexr-dev \
|
||||
libmng1 libmng-dev libpng12-0 libpng12-dev transfig \
|
||||
netpbm djvulibre-bin libfreetype6 libfreetype6-dev \
|
||||
libjasper-1.701-1 libjasper-1.701-dev libtiff4 \
|
||||
libtiff4-dev libungif4g libungif4-dev libwmf0.2-7 \
|
||||
libwmf-dev librsvg2-bin
|
Loading…
Reference in new issue