-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7b7cd6d
Showing
91 changed files
with
16,752 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Makefile | ||
autom4te.cache | ||
config.h | ||
config.hin | ||
config.log | ||
config.status | ||
aclocal.m4 | ||
configure | ||
enums.[ch] | ||
table.c | ||
xcfinfo | ||
xcf2pnm | ||
xcf2png | ||
*.1i | ||
*.1il | ||
*.1 | ||
*.oi |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
2006-01-28 Henning Makholm <henning@makholm.net> | ||
|
||
* Version 0.7 | ||
* xcf2png added | ||
* Test suite added | ||
* Various bug fixes | ||
|
||
2006-01-24 Henning Makholm <henning@makholm.net> | ||
|
||
* Version 0.6 | ||
* Allow X11 color names with -b option | ||
|
||
2006-01-22 Henning Makholm <henning@makholm.net> | ||
|
||
* Version 0.5 | ||
* First public release | ||
- xcfinfo | ||
- xcf2pnm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,180 @@ | ||
# Makefile(.in) for xcftools | ||
# Copyright (C) 2006 Henning Makholm | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of version 2 of the GNU General Public License as | ||
# published by the Free Software Foundation. | ||
# | ||
# This program 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 General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
|
||
all: | ||
|
||
@SET_MAKE@ | ||
|
||
srcdir = @srcdir@ | ||
prefix = @prefix@ | ||
exec_prefix = @exec_prefix@ | ||
bindir = @bindir@ | ||
mandir = @mandir@ | ||
sysconfdir = @sysconfdir@ | ||
|
||
VERSION = @PACKAGE_VERSION@ | ||
APPNAME = @PACKAGE_TARNAME@ | ||
program_transform_name = @program_transform_name@ | ||
|
||
CFLAGS = @CFLAGS@ | ||
LDFLAGS = @LDFLAGS@ | ||
LIBS = @LIBS@ | ||
|
||
INSTALL = @INSTALL@ | ||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
INSTALL_DATA = @INSTALL_DATA@ | ||
|
||
RM = rm -f | ||
SED = sed | ||
PERL = @PERL@ | ||
|
||
o = @OBJEXT@ | ||
e = @EXEEXT@ | ||
|
||
############################################################################# | ||
|
||
FILEIO = io-unix | ||
|
||
BINARIES = xcfinfo$e xcf2pnm$e xcf2png$e | ||
MANPAGES = $(patsubst %$e,%.1,$(BINARIES)) | ||
|
||
%.$o: %.c | ||
$(CC) $(CFLAGS) -o $@ -c $< | ||
|
||
all: $(BINARIES) $(MANPAGES) | ||
|
||
xcfinfo$e: xcfinfo.$o $(FILEIO).$o enums.$o xcf-general.$o utils.$o | ||
$(CC) $(LDFLAGS) $(LIBS) $^ -o $@ | ||
|
||
xcf2pnm$e: xcf2pnm.$o $(FILEIO).$o enums.$o xcf-general.$o utils.$o \ | ||
pixels.$o flatten.$o flatspec.$o table.$o | ||
$(CC) $(LDFLAGS) $(LIBS) $^ -o $@ | ||
|
||
xcf2png$e: xcf2png.$o $(FILEIO).$o enums.$o xcf-general.$o utils.$o \ | ||
pixels.$o flatten.$o flatspec.$o table.$o palette.$o | ||
$(CC) $(LDFLAGS) $(LIBS) -lpng $^ -o $@ | ||
|
||
testscale$e: testscale.$o | ||
$(CC) $(LDFLAGS) $(LIBS) $^ -o $@ | ||
|
||
install: all | ||
for p in $(BINARIES) ; do \ | ||
$(INSTALL_PROGRAM) -s $$p \ | ||
$(bindir)/`echo $$p | $(SED) $(program_transform_name)` ; \ | ||
done | ||
for m in $(MANPAGES) ; do \ | ||
$(INSTALL_DATA) $$m \ | ||
$(mandir)/man1/`echo $$m | $(SED) $(program_transform_name)` ; \ | ||
done | ||
|
||
ENUMSOURCES = gimp/base-enums.h gimp/gimpbaseenums.h gimp/xcf-private.h | ||
enums.h: mkenumsh.pl $(ENUMSOURCES) | ||
$(PERL) $< $(ENUMSOURCES) > $@ | ||
enums.c: mkenumsc.pl enums.h | ||
$(PERL) $< enums.h > $@ | ||
table.c: mktablec.pl | ||
$(PERL) $< > $@ | ||
|
||
%.oi: options.i mkopti.pl config.h | ||
$(PERL) mkopti.pl $* | ||
|
||
%.1: %.oi %.10 config.h mancombine.pl | ||
$(PERL) mancombine.pl $*.10 > $@ | ||
|
||
############################################################################# | ||
# | ||
# Dependency tracking, by hand | ||
|
||
COMMON_HEADERS = xcftools.h config.h enums.h | ||
enums.$o: enums.h | ||
table.$o: $(COMMON_HEADERS) pixels.h | ||
io-unix.$o: $(COMMON_HEADERS) | ||
xcf-general.$o: $(COMMON_HEADERS) | ||
utils.$o: $(COMMON_HEADERS) | ||
pixels.$o: $(COMMON_HEADERS) pixels.h | ||
palette.$o: $(COMMON_HEADERS) pixels.h flatten.h palette.h | ||
flatten.$o: $(COMMON_HEADERS) pixels.h flatten.h | ||
flatspec.$o: $(COMMON_HEADERS) pixels.h flatten.h | ||
xcfinfo.$o: $(COMMON_HEADERS) xcfinfo.oi | ||
xcf2pnm.$o: $(COMMON_HEADERS) pixels.h flatten.h xcf2pnm.oi | ||
xcf2png.$o: $(COMMON_HEADERS) pixels.h flatten.h xcf2png.oi palette.h | ||
|
||
############################################################################# | ||
# | ||
# Standard cleaning and other metarules | ||
|
||
check: $(BINARIES) | ||
cd test && $(MAKE) check | ||
|
||
clean: | ||
$(RM) *.$o *~ .*~ *.1i *.1il *.1 *.oi | ||
$(RM) enums.h enums.c table.c $(BINARIES) | ||
cd test && $(MAKE) clean | ||
|
||
distclean: clean | ||
$(RM) Makefile config.log config.cache config.status config.h | ||
$(RM) -r autom4te.cache | ||
|
||
realclean: distclean | ||
$(RM) configure config.hin aclocal.m4 | ||
|
||
.SUFFIXES: .c .$o | ||
|
||
.PHONY: clean distclean realclean dist all | ||
|
||
############################################################################# | ||
# | ||
# Tarball-making rule | ||
|
||
dist: ajour distclean | ||
noncvs > notcvsfiles || cp dist-generated notcvsfiles | ||
diff -u dist-generated notcvsfiles | ||
$(RM) notcvsfiles | ||
find . -type f -print | grep -v CVS | \ | ||
sed 's!^\./!$(APPNAME)-$(VERSION)/!' | sort -o tar-manifest | ||
ln -s . $(APPNAME)-$(VERSION) | ||
tar cvzf $(APPNAME)-$(VERSION).tar.gz `cat tar-manifest` | ||
rm tar-manifest | ||
rm $(APPNAME)-$(VERSION) | ||
|
||
############################################################################# | ||
# | ||
# Autofoo rules: | ||
|
||
aclocal.m4: configure.ac | ||
aclocal | ||
|
||
$(srcdir)/configure: configure.ac aclocal.m4 | ||
cd $(srcdir) && autoconf | ||
|
||
$(srcdir)/config.hin: configure.ac aclocal.m4 | ||
cd $(srcdir) && autoheader | ||
touch $@ | ||
|
||
config.status: $(srcdir)/configure | ||
./config.status --recheck | ||
|
||
Makefile: Makefile.in config.status | ||
./config.status $@ | ||
|
||
config.h: config.hin config.status | ||
./config.status $@ | ||
touch $@ | ||
|
||
ajour: Makefile config.h config.sub config.guess | ||
|
||
config.sub config.guess: | ||
-test -r /usr/share/misc/$@ && cp /usr/share/misc/$@ . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
What is this? | ||
============= | ||
|
||
Xcftools is a set of fast command-line tools for extracting | ||
information from the Gimp's native file format XCF. The tools | ||
are designed to allow efficient use of layered XCF files as | ||
sources in a build system that use 'make' and similar tools | ||
to manage automatic processing of the graphics. These tools | ||
work independently of the Gimp engine and do not require the | ||
Gimp to even be installed. | ||
|
||
xcf2pnm converts XCF files to ppm, pgm or pbm format, | ||
flattening layers if necessary. If the image | ||
contains transparency, an alpha map can be written | ||
to a separate file, or a background color can be | ||
specified on the command line. | ||
|
||
xcf2png converts XCF files to PNG format, flattening | ||
layers if necessary. Transparency information | ||
can be kept in the image, or a background color | ||
can be specified on the command line. | ||
|
||
xcfinfo lists information about layers in an XCF file. | ||
|
||
The tools can either flatten an XCF file as given, or extract specific | ||
layers named on the command line. | ||
|
||
Portability | ||
=========== | ||
|
||
The software was developed on an Intel-based pc running Debian | ||
GNU/Linux. It ought to work on other Linux variants also. I would | ||
not be surprised if it ran on other unix systems too, but porting | ||
to non-unix platforms will require some work. Most of the code | ||
attempts to be prepared for porting, but this has not been | ||
explicitly tested. | ||
|
||
Installation | ||
============ | ||
|
||
You need GNU make, a C compiler, and perl. | ||
|
||
After the source archive is extracted, the command sequence | ||
./configure | ||
make all | ||
make install | ||
should compile the tools and install them in /usr/local. | ||
|
||
The 'configure' script is generated by GNU autoconf, and accepts | ||
the arguments that such scripts commonly do. | ||
|
||
License | ||
======= | ||
|
||
Xcftools is written by Henning Makholm <henning@makholm.net> | ||
(Copyright 2006). | ||
|
||
Xcftools is free software; you can redistribute it and/or modify | ||
it under the terms of version 2 of the GNU General Public License as | ||
published by the Free Software Foundation. | ||
|
||
This program 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 General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program; if not, write to the Free Software | ||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
These are things I want to do before bumping the version | ||
number of Xcftools to 1.0: | ||
|
||
- Add tests of error reporting to the test suite. | ||
|
||
- Get the program tested on various architectures. | ||
|
||
- Finish localization infrastucture (some work has been done | ||
but is not completely systematic). | ||
|
||
|
||
|
Oops, something went wrong.