Resurrect gimp-devel and update to version 2.2.pre1.

Approved by:	pav (mentor)
This commit is contained in:
Koop Mast 2004-11-18 09:55:04 +00:00
parent cb9222c948
commit 0755df9681
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=121859
26 changed files with 4627 additions and 1 deletions

1
MOVED
View file

@ -995,7 +995,6 @@ editors/openoffice-1.1-sl-SL|editors/openoffice-1.1-sl_SI|2004-03-25|correct ISO
www/webcpp|textproc/webcpp|2004-03-25|moved to textproc category
x11-toolkits/eel||2004-03-25|removed obsolete port
editors/xemacs21|editors/xemacs|2004-03-27|removed old version of xemacs 21.x
graphics/gimp-devel|graphics/gimp|2004-03-27|gimp 2.0 is now stable release
mail/mew-xemacs21|mail/mew|2004-03-28|removed old version of xemacs 21.x
mail/mew2-xemacs21|mail/mew2|2004-03-28|removed old version of xemacs 21.x
mail/mew3-xemacs21|mail/mew3|2004-03-28|removed old version of xemacs 21.x

View file

@ -122,6 +122,7 @@
SUBDIR += giftrans
SUBDIR += gimageview
SUBDIR += gimp
SUBDIR += gimp-devel
SUBDIR += gimp-manual-html
SUBDIR += gimp-manual-pdf
SUBDIR += gimp-pmosaic

View file

@ -0,0 +1,114 @@
# New ports collection makefile for: The GIMP
# Date created: Mon Nov 18 21:28:43 CST 1996
# Whom: erich@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= gimp
PORTVERSION= 2.2.p1
PORTEPOCH= 1
CATEGORIES= graphics gnome
MASTER_SITES= ftp://ftp.gimp.org/pub/%SUBDIR%/ \
http://ftp.gwdg.de/pub/misc/grafik/gimp/%SUBDIR%/ \
ftp://ftp.fh-heilbronn.de/mirrors/ftp.gimp.org/%SUBDIR%/ \
ftp://ftp.insync.net/pub/mirrors/ftp.gimp.org/%SUBDIR%/ \
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/%SUBDIR%,}
MASTER_SITE_SUBDIR= gimp/v${PORTVERSION:R}/testing
DISTNAME= ${PORTNAME}-${PORTVERSION:S,.p1,-pre1,}
MAINTAINER= gnome@FreeBSD.org
COMMENT= A GNU Image Manipulation Program
LIB_DEPENDS= aa.1:${PORTSDIR}/graphics/aalib \
exif.10:${PORTSDIR}/graphics/libexif \
jpeg.9:${PORTSDIR}/graphics/jpeg \
mng.1:${PORTSDIR}/graphics/libmng \
png.5:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff \
wmf.2:${PORTSDIR}/graphics/libwmf
CONFLICTS= gimp-1.*
SHLIBVER?= 200
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_XPM= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_GNOME= gnomehack intltool intlhack gtk20 libartlgpl2 librsvg2 libgtkhtml
WANT_GNOME= yes
INSTALLS_SHLIB= yes
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
PLIST_SUB= SHLIBVER="${SHLIBVER}"
CONFIGURE_ARGS= --disable-perl \
--with-html-dir=${DOCSDIR} \
--disable-gtk-doc \
--enable-static
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
GIMP_DISTFILE= ${DISTDIR}/${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAN1= gimp-2.2.1 gimptool-2.0.1 gimp-remote-2.2.1
MAN5= gimprc-2.2.5
MLINKS= gimp-2.2.1 gimp.1 gimp-remote-2.2.1 gimp-remote.1 \
gimprc-2.2.5 gimprc.5
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug
.endif
.if defined(WITH_PYTHON)
USE_PYTHON= yes
USE_GNOME+= pygtk2
CONFIGURE_ARGS+= --enable-python
PLIST_SUB+= PYTHON:=""
.else
CONFIGURE_ARGS+= --disable-python
PLIST_SUB+= PYTHON:="@comment "
.endif
.if defined(WITHOUT_PRINT)
CONFIGURE_ARGS+= --disable-print
PLIST_SUB+= PRINT="@comment "
.else
LIB_DEPENDS+= gimpprint.2:${PORTSDIR}/print/gimp-print
PLIST_SUB+= PRINT=""
.endif
.if defined(WITH_MP)
CONFIGURE_ARGS+= --enable-mp
.endif
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mgnomepanel}!=""
USE_GNOME+= gnomepanel
CONFIGURE_ARGS+= --with-desktop-dir=${X11BASE}/share/gnome
PKGNAMESUFFIX= -gnome
PLIST_SUB+= GNOMEPANEL:=""
.else
PLIST_SUB+= GNOMEPANEL:="@comment "
.endif
.if ${HAVE_GNOME:Mlibgtkhtml}!="" || defined(WITH_HTML_HELP_BROWSER)
USE_GNOME+= libgtkhtml
PLIST_SUB+= HELPBROWSER:=""
.else
PLIST_SUB+= HELPBROWSER:="@comment "
.endif
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "gimp has the following tunable option(s):"
@${ECHO_MSG} ""
@${ECHO_MSG} " WITH_DEBUG=yes Turns on debugging"
@${ECHO_MSG} " WITH_PYTHON=yes Turns on Python-Fu support"
@${ECHO_MSG} " WITHOUT_PRINT=yes Turns off GIMP printing"
@${ECHO_MSG} " WITH_HTML_HELP_BROWSER=yes Turns on the GIMP help browser"
@${ECHO_MSG} " WITH_MP=yes Turns on multiple-processor support"
@${ECHO_MSG} ""
.include <bsd.port.post.mk>

View file

@ -0,0 +1,2 @@
MD5 (gimp-2.2-pre1.tar.bz2) = f88e30b6a11b2d3c81219bc10a6de19a
SIZE (gimp-2.2-pre1.tar.bz2) = 14047553

View file

@ -0,0 +1,157 @@
#!/usr/bin/perl
# Font setting Perl script for GIMP
#
# by MANTANI Nobutaka <nobutaka@nobutaka.com>
$progname = "gimp.setfont";
$version = "Version 0.4 Feb 07 2000";
$fontset{'chinese'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1,-*-kai-medium-r-normal--16-*-*-*-*-*-big5-0";
$fontset{'czech'} = "-*-fixed-medium-r-normal--14-*-*-*-*-*-iso8859-2";
$fontset{'danish'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'dutch'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'english'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'finnish'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'french'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'german'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'hungarian'} = "-*-fixed-medium-r-normal--14-*-*-*-*-*-iso8859-2";
$fontset{'italian'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'japanese'} = "-*-fixed-medium-r-normal--14-*-*-*-*-*-iso8859-1,-*-fixed-medium-r-normal--14-*-*-*-*-*-jisx0201.1976-0,-*-fixed-medium-r-normal--14-*-*-*-*-*-jisx0208.1983-0";
$fontset{'korean'} = "-*-fixed-medium-r-normal--16-*-*-*-*-*-iso8859-1,-daewoo-gothic-medium-r-normal--16-*-*-*-*-*-ksc5601.1987-0";
$fontset{'norwegian'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'polish'} = "-*-fixed-medium-r-normal--14-*-*-*-*-*-iso8859-2";
$fontset{'russian'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-koi8-r";
$fontset{'slovak'} = "-*-fixed-medium-r-normal--14-*-*-*-*-*-iso8859-2";
$fontset{'swedish'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'ukrainian'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-koi8-r";
$locale{'chinese'} = "zh_TW.Big5";
$locale{'czech'} = "cs_CZ.ISO8859-2";
$locale{'danish'} = "da_DK.ISO_8859-1";
$locale{'dutch'} = "nl_NL.ISO_8859-1";
$locale{'english'} = "C";
$locale{'finnish'} = "fi_FI.ISO_8859-1";
$locale{'french'} = "fr_FR.ISO_8859-1";
$locale{'german'} = "de_DE.ISO_8859-1";
$locale{'hungarian'} = "hu_HU.ISO_8859-2";
$locale{'italian'} = "it_IT.ISO_8859-1";
$locale{'japanese'} = "ja_JP.EUC";
$locale{'korean'} = "ko_KR.EUC";
$locale{'norwegian'} = "no_NO.ISO_8859-1";
$locale{'polish'} = "pl_PL.ISO_8859-2";
$locale{'russian'} = "ru_SU.KOI8-R";
$locale{'slovak'} = "sk_SK.ISO_8859-2";
$locale{'swedish'} = "sv_SE.ISO_8859-1";
$locale{'ukrainian'} = "uk_UA.KOI8-U";
# Show usage
sub usage() {
print <<EOF;
Usage: gimp.setfont <language>
----------------------------------------------------------------
[language] [fontset]
chinese -*-helvetica-(iso8859-1),-*-kai-(big5-0)
czech -*-fixed-(iso8859-2)
danish -*-helvetica-(iso8859-1)
dutch -*-helvetica-(iso8859-1)
english -*-helvetica-(iso8859-1)
finnish -*-helvetica-(iso8859-1)
french -*-helvetica-(iso8859-1)
german -*-helvetica-(iso8859-1)
hungarian -*-fixed-(iso8859-2)
italian -*-helvetica-(iso8859-1)
japanese -*-fixed-(iso8859-1,jisx0201,jisx0208)
korean -*-fixed-(iso8859-1),-daewoo-gothic-(ksc5601)
norwegian -*-helvetica-(iso8859-1)
polish -*-fixed-(iso8859-2)
russian -*-helvetica-(koi8-r)
slovak -*-fixed-(iso8869-2)
swedish -*-helvetica-(iso8859-1)
ukrainian -*-helvetica-(koi8-r)
----------------------------------------------------------------
If you need iso8859-2 fonts, please install etlfonts
(x11-fonts/etlfonts).
EOF
}
# Write gtkrc of user's .gimp-1.2 directory
sub write_gtkrc($) {
my $fontset = shift;
my $path = "$ENV{'HOME'}/.gimp-1.2";
if (-d $path) {
if (-e "$path/gtkrc") {
chmod(0644, "$path/gtkrc");
print "Renaming $path/gtkrc to $path/gtkrc.old...\n";
rename("$path/gtkrc", "$path/gtkrc.old");
}
print "Writing $path/gtkrc...\n";
open(FILE, ">$path/gtkrc");
print FILE <<EOF;
\# style <name> [= <name>]
\# {
\# <option>
\# }
\#
\# widget <widget_set> style <style_name>
\# widget_class <widget_class_set> style <style_name>
style "default"
{
fontset = "$fontset"
}
widget_class "*" style "default"
EOF
close(FILE);
print "Done.\n\n";
} else {
print <<EOF;
Directory $path is not found.
Please execute "gimp" and install files into $path
directory first.
EOF
exit;
}
}
sub main() {
my $lang = $ARGV[0];
my $tmp = ucfirst($lang);
print <<EOF;
$progname - Font setting utility for GIMP ($version)
EOF
if (@ARGV != 1) {
usage();
exit;
}
print "Setting for $tmp language...\n\n";
print qq(Please set "LANG" environment variable to "$locale{$lang}" and execute "gimp".\n\n);
if ($lang eq "slovak") {
print <<EOF;
And please make symbolic link from lt_LN.ISO_8859-2 to sk_SK.ISO_8859-2 in
/usr/share/locale.
EOF
}
write_gtkrc($fontset{$lang});
exit;
}
main();

View file

@ -0,0 +1,20 @@
--- app/main.c.orig Sun Oct 5 09:16:02 2003
+++ app/main.c Mon Oct 6 12:14:34 2003
@@ -23,6 +23,7 @@
#include <signal.h>
#include <string.h>
#include <sys/types.h>
+#include <floatingpoint.h>
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
@@ -113,6 +114,9 @@
/* Initialize variables */
full_prog_name = argv[0];
+
+ /* Ignore floating point exceptions */
+ fpsetmask(0);
/* Initialize i18n support */

View file

@ -0,0 +1,13 @@
--- plug-ins/common/url.c.orig Thu Jun 26 15:45:03 2003
+++ plug-ins/common/url.c Sat Jun 28 18:17:59 2003
@@ -187,8 +187,8 @@
putenv ("LANG=C");
#endif
- execlp ("wget", "wget", "-T", TIMEOUT, filename, "-O", tmpname, NULL);
- g_message ("exec() failed: wget: %s", g_strerror (errno));
+ execlp ("fetch", "fetch", "-T", TIMEOUT, filename, "-p", "-o", tmpname, NULL);
+ g_message ("exec() failed: fetch: %s", g_strerror (errno));
g_free (tmpname);
_exit (127);
}

View file

@ -0,0 +1,19 @@
--- libgimp/gimp.c.orig Fri May 12 12:37:27 2000
+++ libgimp/gimp.c Thu May 18 16:42:21 2000
@@ -26,6 +26,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
+#include <floatingpoint.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
@@ -211,6 +212,9 @@
}
progname = argv[0];
+
+ /* Ignore floating point exceptions */
+ fpsetmask(0);
g_set_prgname (g_basename (progname));

View file

@ -0,0 +1,13 @@
--- configure.orig Sun Nov 7 10:44:21 2004
+++ configure Sun Nov 7 10:45:48 2004
@@ -33311,8 +33311,8 @@
fi
fi;
-gimpdatadir="$datadir/$PACKAGE/2.0"
-gimpplugindir="$libdir/$PACKAGE/2.0"
+gimpdatadir="$datadir/$PACKAGE"
+gimpplugindir="$libexecdir/$PACKAGE/2.0"
gimpsysconfdir="$sysconfdir/$PACKAGE/2.0"
localedir='${prefix}/${DATADIRNAME}/locale'

View file

@ -0,0 +1,29 @@
$FreeBSD$
--- gimptool-2.0.in.orig Tue Jan 15 12:21:05 2002
+++ gimptool-2.0.in Fri May 17 20:46:18 2002
@@ -215,19 +215,19 @@
| --uninstall-script | --uninstall-admin-script )
case $1 in
--*install-bin)
- install_cmd="@INSTALL_PROGRAM@"
+ install_cmd="@INSTALL_SCRIPT@"
install_dir="$HOME/@gimpdir@/plug-ins"
;;
--install-bin-strip)
- install_cmd="@INSTALL_PROGRAM@ -s"
+ install_cmd="@INSTALL_SCRIPT@ -s"
install_dir="$HOME/@gimpdir@/plug-ins"
;;
--*install-admin-bin)
- install_cmd="@INSTALL_PROGRAM@"
+ install_cmd="@INSTALL_SCRIPT@"
install_dir="$gimpplugindir/plug-ins"
;;
--install-admin-bin-strip)
- install_cmd="@INSTALL_PROGRAM@ -s"
+ install_cmd="@INSTALL_SCRIPT@ -s"
install_dir="$gimpplugindir/plug-ins"
;;
--*install-script)

View file

@ -0,0 +1,41 @@
--- ltmain.sh.orig Sun Sep 7 16:23:57 2003
+++ ltmain.sh Sat Sep 13 01:29:14 2003
@@ -1278,7 +1278,7 @@
esac
elif test "X$arg" = "X-lc_r"; then
case $host in
- *-*-openbsd* | *-*-freebsd*)
+ *-*-openbsd* | *-*-freebsd4*)
# Do not include libc_r directly, use -pthread flag.
continue
;;
@@ -1288,8 +1288,16 @@
continue
;;
+ -pthread)
+ compile_command="$compile_command -pthread"
+ finalize_command="$finalize_command -pthread"
+ compiler_flags="$compiler_flags -pthread"
+ continue
+ ;;
+
-module)
module=yes
+ build_old_libs=no
continue
;;
@@ -5457,10 +5465,12 @@
fi
# Install the pseudo-library for information purposes.
+ if /usr/bin/false; then
name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
instname="$dir/$name"i
$show "$install_prog $instname $destdir/$name"
$run eval "$install_prog $instname $destdir/$name" || exit $?
+ fi
# Maybe install the static library, too.
test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"

View file

@ -0,0 +1,11 @@
--- plug-ins/print/print.c.orig Tue Dec 26 07:43:54 2000
+++ plug-ins/print/print.c Tue Dec 26 07:44:07 2000
@@ -1417,7 +1417,7 @@
if (i < (sizeof(lpcs) / sizeof(lpcs[0])))
{
- strcat(command, " status < /dev/null");
+ strcat(command, " status all < /dev/null");
type = PRINTERS_LPC;
}
else

View file

@ -0,0 +1,19 @@
The GIMP is designed to provide an intuitive graphical interface to a
variety of image editing operations. Here is a list of the GIMP's
major features:
Image editing
-------------
* Selection tools including rectangle, ellipse, free, fuzzy, bezier
and intelligent.
* Transformation tools including rotate, scale, shear and flip.
* Painting tools including bucket, brush, airbrush, clone, convolve,
blend and text.
* Effects filters (such as blur, edge detect).
* Channel & color operations (such as add, composite, decompose).
* Plug-ins which allow for the easy addition of new file formats and
new effect filters.
* Multiple undo/redo.
WWW: http://www.gimp.org/

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,114 @@
# New ports collection makefile for: The GIMP
# Date created: Mon Nov 18 21:28:43 CST 1996
# Whom: erich@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= gimp
PORTVERSION= 2.2.p1
PORTEPOCH= 1
CATEGORIES= graphics gnome
MASTER_SITES= ftp://ftp.gimp.org/pub/%SUBDIR%/ \
http://ftp.gwdg.de/pub/misc/grafik/gimp/%SUBDIR%/ \
ftp://ftp.fh-heilbronn.de/mirrors/ftp.gimp.org/%SUBDIR%/ \
ftp://ftp.insync.net/pub/mirrors/ftp.gimp.org/%SUBDIR%/ \
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/%SUBDIR%,}
MASTER_SITE_SUBDIR= gimp/v${PORTVERSION:R}/testing
DISTNAME= ${PORTNAME}-${PORTVERSION:S,.p1,-pre1,}
MAINTAINER= gnome@FreeBSD.org
COMMENT= A GNU Image Manipulation Program
LIB_DEPENDS= aa.1:${PORTSDIR}/graphics/aalib \
exif.10:${PORTSDIR}/graphics/libexif \
jpeg.9:${PORTSDIR}/graphics/jpeg \
mng.1:${PORTSDIR}/graphics/libmng \
png.5:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff \
wmf.2:${PORTSDIR}/graphics/libwmf
CONFLICTS= gimp-1.*
SHLIBVER?= 200
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_XPM= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_GNOME= gnomehack intltool intlhack gtk20 libartlgpl2 librsvg2 libgtkhtml
WANT_GNOME= yes
INSTALLS_SHLIB= yes
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
PLIST_SUB= SHLIBVER="${SHLIBVER}"
CONFIGURE_ARGS= --disable-perl \
--with-html-dir=${DOCSDIR} \
--disable-gtk-doc \
--enable-static
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
GIMP_DISTFILE= ${DISTDIR}/${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAN1= gimp-2.2.1 gimptool-2.0.1 gimp-remote-2.2.1
MAN5= gimprc-2.2.5
MLINKS= gimp-2.2.1 gimp.1 gimp-remote-2.2.1 gimp-remote.1 \
gimprc-2.2.5 gimprc.5
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug
.endif
.if defined(WITH_PYTHON)
USE_PYTHON= yes
USE_GNOME+= pygtk2
CONFIGURE_ARGS+= --enable-python
PLIST_SUB+= PYTHON:=""
.else
CONFIGURE_ARGS+= --disable-python
PLIST_SUB+= PYTHON:="@comment "
.endif
.if defined(WITHOUT_PRINT)
CONFIGURE_ARGS+= --disable-print
PLIST_SUB+= PRINT="@comment "
.else
LIB_DEPENDS+= gimpprint.2:${PORTSDIR}/print/gimp-print
PLIST_SUB+= PRINT=""
.endif
.if defined(WITH_MP)
CONFIGURE_ARGS+= --enable-mp
.endif
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mgnomepanel}!=""
USE_GNOME+= gnomepanel
CONFIGURE_ARGS+= --with-desktop-dir=${X11BASE}/share/gnome
PKGNAMESUFFIX= -gnome
PLIST_SUB+= GNOMEPANEL:=""
.else
PLIST_SUB+= GNOMEPANEL:="@comment "
.endif
.if ${HAVE_GNOME:Mlibgtkhtml}!="" || defined(WITH_HTML_HELP_BROWSER)
USE_GNOME+= libgtkhtml
PLIST_SUB+= HELPBROWSER:=""
.else
PLIST_SUB+= HELPBROWSER:="@comment "
.endif
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "gimp has the following tunable option(s):"
@${ECHO_MSG} ""
@${ECHO_MSG} " WITH_DEBUG=yes Turns on debugging"
@${ECHO_MSG} " WITH_PYTHON=yes Turns on Python-Fu support"
@${ECHO_MSG} " WITHOUT_PRINT=yes Turns off GIMP printing"
@${ECHO_MSG} " WITH_HTML_HELP_BROWSER=yes Turns on the GIMP help browser"
@${ECHO_MSG} " WITH_MP=yes Turns on multiple-processor support"
@${ECHO_MSG} ""
.include <bsd.port.post.mk>

View file

@ -0,0 +1,2 @@
MD5 (gimp-2.2-pre1.tar.bz2) = f88e30b6a11b2d3c81219bc10a6de19a
SIZE (gimp-2.2-pre1.tar.bz2) = 14047553

View file

@ -0,0 +1,157 @@
#!/usr/bin/perl
# Font setting Perl script for GIMP
#
# by MANTANI Nobutaka <nobutaka@nobutaka.com>
$progname = "gimp.setfont";
$version = "Version 0.4 Feb 07 2000";
$fontset{'chinese'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1,-*-kai-medium-r-normal--16-*-*-*-*-*-big5-0";
$fontset{'czech'} = "-*-fixed-medium-r-normal--14-*-*-*-*-*-iso8859-2";
$fontset{'danish'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'dutch'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'english'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'finnish'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'french'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'german'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'hungarian'} = "-*-fixed-medium-r-normal--14-*-*-*-*-*-iso8859-2";
$fontset{'italian'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'japanese'} = "-*-fixed-medium-r-normal--14-*-*-*-*-*-iso8859-1,-*-fixed-medium-r-normal--14-*-*-*-*-*-jisx0201.1976-0,-*-fixed-medium-r-normal--14-*-*-*-*-*-jisx0208.1983-0";
$fontset{'korean'} = "-*-fixed-medium-r-normal--16-*-*-*-*-*-iso8859-1,-daewoo-gothic-medium-r-normal--16-*-*-*-*-*-ksc5601.1987-0";
$fontset{'norwegian'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'polish'} = "-*-fixed-medium-r-normal--14-*-*-*-*-*-iso8859-2";
$fontset{'russian'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-koi8-r";
$fontset{'slovak'} = "-*-fixed-medium-r-normal--14-*-*-*-*-*-iso8859-2";
$fontset{'swedish'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-1";
$fontset{'ukrainian'} = "-*-helvetica-medium-r-normal--14-*-*-*-*-*-koi8-r";
$locale{'chinese'} = "zh_TW.Big5";
$locale{'czech'} = "cs_CZ.ISO8859-2";
$locale{'danish'} = "da_DK.ISO_8859-1";
$locale{'dutch'} = "nl_NL.ISO_8859-1";
$locale{'english'} = "C";
$locale{'finnish'} = "fi_FI.ISO_8859-1";
$locale{'french'} = "fr_FR.ISO_8859-1";
$locale{'german'} = "de_DE.ISO_8859-1";
$locale{'hungarian'} = "hu_HU.ISO_8859-2";
$locale{'italian'} = "it_IT.ISO_8859-1";
$locale{'japanese'} = "ja_JP.EUC";
$locale{'korean'} = "ko_KR.EUC";
$locale{'norwegian'} = "no_NO.ISO_8859-1";
$locale{'polish'} = "pl_PL.ISO_8859-2";
$locale{'russian'} = "ru_SU.KOI8-R";
$locale{'slovak'} = "sk_SK.ISO_8859-2";
$locale{'swedish'} = "sv_SE.ISO_8859-1";
$locale{'ukrainian'} = "uk_UA.KOI8-U";
# Show usage
sub usage() {
print <<EOF;
Usage: gimp.setfont <language>
----------------------------------------------------------------
[language] [fontset]
chinese -*-helvetica-(iso8859-1),-*-kai-(big5-0)
czech -*-fixed-(iso8859-2)
danish -*-helvetica-(iso8859-1)
dutch -*-helvetica-(iso8859-1)
english -*-helvetica-(iso8859-1)
finnish -*-helvetica-(iso8859-1)
french -*-helvetica-(iso8859-1)
german -*-helvetica-(iso8859-1)
hungarian -*-fixed-(iso8859-2)
italian -*-helvetica-(iso8859-1)
japanese -*-fixed-(iso8859-1,jisx0201,jisx0208)
korean -*-fixed-(iso8859-1),-daewoo-gothic-(ksc5601)
norwegian -*-helvetica-(iso8859-1)
polish -*-fixed-(iso8859-2)
russian -*-helvetica-(koi8-r)
slovak -*-fixed-(iso8869-2)
swedish -*-helvetica-(iso8859-1)
ukrainian -*-helvetica-(koi8-r)
----------------------------------------------------------------
If you need iso8859-2 fonts, please install etlfonts
(x11-fonts/etlfonts).
EOF
}
# Write gtkrc of user's .gimp-1.2 directory
sub write_gtkrc($) {
my $fontset = shift;
my $path = "$ENV{'HOME'}/.gimp-1.2";
if (-d $path) {
if (-e "$path/gtkrc") {
chmod(0644, "$path/gtkrc");
print "Renaming $path/gtkrc to $path/gtkrc.old...\n";
rename("$path/gtkrc", "$path/gtkrc.old");
}
print "Writing $path/gtkrc...\n";
open(FILE, ">$path/gtkrc");
print FILE <<EOF;
\# style <name> [= <name>]
\# {
\# <option>
\# }
\#
\# widget <widget_set> style <style_name>
\# widget_class <widget_class_set> style <style_name>
style "default"
{
fontset = "$fontset"
}
widget_class "*" style "default"
EOF
close(FILE);
print "Done.\n\n";
} else {
print <<EOF;
Directory $path is not found.
Please execute "gimp" and install files into $path
directory first.
EOF
exit;
}
}
sub main() {
my $lang = $ARGV[0];
my $tmp = ucfirst($lang);
print <<EOF;
$progname - Font setting utility for GIMP ($version)
EOF
if (@ARGV != 1) {
usage();
exit;
}
print "Setting for $tmp language...\n\n";
print qq(Please set "LANG" environment variable to "$locale{$lang}" and execute "gimp".\n\n);
if ($lang eq "slovak") {
print <<EOF;
And please make symbolic link from lt_LN.ISO_8859-2 to sk_SK.ISO_8859-2 in
/usr/share/locale.
EOF
}
write_gtkrc($fontset{$lang});
exit;
}
main();

View file

@ -0,0 +1,20 @@
--- app/main.c.orig Sun Oct 5 09:16:02 2003
+++ app/main.c Mon Oct 6 12:14:34 2003
@@ -23,6 +23,7 @@
#include <signal.h>
#include <string.h>
#include <sys/types.h>
+#include <floatingpoint.h>
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
@@ -113,6 +114,9 @@
/* Initialize variables */
full_prog_name = argv[0];
+
+ /* Ignore floating point exceptions */
+ fpsetmask(0);
/* Initialize i18n support */

View file

@ -0,0 +1,13 @@
--- plug-ins/common/url.c.orig Thu Jun 26 15:45:03 2003
+++ plug-ins/common/url.c Sat Jun 28 18:17:59 2003
@@ -187,8 +187,8 @@
putenv ("LANG=C");
#endif
- execlp ("wget", "wget", "-T", TIMEOUT, filename, "-O", tmpname, NULL);
- g_message ("exec() failed: wget: %s", g_strerror (errno));
+ execlp ("fetch", "fetch", "-T", TIMEOUT, filename, "-p", "-o", tmpname, NULL);
+ g_message ("exec() failed: fetch: %s", g_strerror (errno));
g_free (tmpname);
_exit (127);
}

View file

@ -0,0 +1,19 @@
--- libgimp/gimp.c.orig Fri May 12 12:37:27 2000
+++ libgimp/gimp.c Thu May 18 16:42:21 2000
@@ -26,6 +26,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
+#include <floatingpoint.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
@@ -211,6 +212,9 @@
}
progname = argv[0];
+
+ /* Ignore floating point exceptions */
+ fpsetmask(0);
g_set_prgname (g_basename (progname));

View file

@ -0,0 +1,13 @@
--- configure.orig Sun Nov 7 10:44:21 2004
+++ configure Sun Nov 7 10:45:48 2004
@@ -33311,8 +33311,8 @@
fi
fi;
-gimpdatadir="$datadir/$PACKAGE/2.0"
-gimpplugindir="$libdir/$PACKAGE/2.0"
+gimpdatadir="$datadir/$PACKAGE"
+gimpplugindir="$libexecdir/$PACKAGE/2.0"
gimpsysconfdir="$sysconfdir/$PACKAGE/2.0"
localedir='${prefix}/${DATADIRNAME}/locale'

View file

@ -0,0 +1,29 @@
$FreeBSD$
--- gimptool-2.0.in.orig Tue Jan 15 12:21:05 2002
+++ gimptool-2.0.in Fri May 17 20:46:18 2002
@@ -215,19 +215,19 @@
| --uninstall-script | --uninstall-admin-script )
case $1 in
--*install-bin)
- install_cmd="@INSTALL_PROGRAM@"
+ install_cmd="@INSTALL_SCRIPT@"
install_dir="$HOME/@gimpdir@/plug-ins"
;;
--install-bin-strip)
- install_cmd="@INSTALL_PROGRAM@ -s"
+ install_cmd="@INSTALL_SCRIPT@ -s"
install_dir="$HOME/@gimpdir@/plug-ins"
;;
--*install-admin-bin)
- install_cmd="@INSTALL_PROGRAM@"
+ install_cmd="@INSTALL_SCRIPT@"
install_dir="$gimpplugindir/plug-ins"
;;
--install-admin-bin-strip)
- install_cmd="@INSTALL_PROGRAM@ -s"
+ install_cmd="@INSTALL_SCRIPT@ -s"
install_dir="$gimpplugindir/plug-ins"
;;
--*install-script)

View file

@ -0,0 +1,41 @@
--- ltmain.sh.orig Sun Sep 7 16:23:57 2003
+++ ltmain.sh Sat Sep 13 01:29:14 2003
@@ -1278,7 +1278,7 @@
esac
elif test "X$arg" = "X-lc_r"; then
case $host in
- *-*-openbsd* | *-*-freebsd*)
+ *-*-openbsd* | *-*-freebsd4*)
# Do not include libc_r directly, use -pthread flag.
continue
;;
@@ -1288,8 +1288,16 @@
continue
;;
+ -pthread)
+ compile_command="$compile_command -pthread"
+ finalize_command="$finalize_command -pthread"
+ compiler_flags="$compiler_flags -pthread"
+ continue
+ ;;
+
-module)
module=yes
+ build_old_libs=no
continue
;;
@@ -5457,10 +5465,12 @@
fi
# Install the pseudo-library for information purposes.
+ if /usr/bin/false; then
name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
instname="$dir/$name"i
$show "$install_prog $instname $destdir/$name"
$run eval "$install_prog $instname $destdir/$name" || exit $?
+ fi
# Maybe install the static library, too.
test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"

View file

@ -0,0 +1,11 @@
--- plug-ins/print/print.c.orig Tue Dec 26 07:43:54 2000
+++ plug-ins/print/print.c Tue Dec 26 07:44:07 2000
@@ -1417,7 +1417,7 @@
if (i < (sizeof(lpcs) / sizeof(lpcs[0])))
{
- strcat(command, " status < /dev/null");
+ strcat(command, " status all < /dev/null");
type = PRINTERS_LPC;
}
else

View file

@ -0,0 +1,19 @@
The GIMP is designed to provide an intuitive graphical interface to a
variety of image editing operations. Here is a list of the GIMP's
major features:
Image editing
-------------
* Selection tools including rectangle, ellipse, free, fuzzy, bezier
and intelligent.
* Transformation tools including rotate, scale, shear and flip.
* Painting tools including bucket, brush, airbrush, clone, convolve,
blend and text.
* Effects filters (such as blur, edge detect).
* Channel & color operations (such as add, composite, decompose).
* Plug-ins which allow for the easy addition of new file formats and
new effect filters.
* Multiple undo/redo.
WWW: http://www.gimp.org/

File diff suppressed because it is too large Load diff