summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorrecht <recht@pkgsrc.org>2004-09-02 20:34:08 +0000
committerrecht <recht@pkgsrc.org>2004-09-02 20:34:08 +0000
commitfc5f74e4c8df5a70652318264d4f4d71fce22d9b (patch)
tree37e2dad52312af8d0454352afe355d93b07b97fe /emulators
parent63cff74fca9018afd76697b1ae564725732159f4 (diff)
downloadpkgsrc-fc5f74e4c8df5a70652318264d4f4d71fce22d9b.tar.gz
initial import of suse91_gtk2
Linux compatibility package based on the SuSE Linux distribution, take a look at "http://www.suse.com/" for more information about it. This package supports running ELF binaries linked with glibc2 which require GTK2 shared libraries.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/suse91_gtk2/DEINSTALL24
-rw-r--r--emulators/suse91_gtk2/DESCR5
-rw-r--r--emulators/suse91_gtk2/INSTALL23
-rw-r--r--emulators/suse91_gtk2/Makefile36
-rwxr-xr-xemulators/suse91_gtk2/POSTINSTALL77
-rw-r--r--emulators/suse91_gtk2/distinfo10
6 files changed, 175 insertions, 0 deletions
diff --git a/emulators/suse91_gtk2/DEINSTALL b/emulators/suse91_gtk2/DEINSTALL
new file mode 100644
index 00000000000..874b63b2b8f
--- /dev/null
+++ b/emulators/suse91_gtk2/DEINSTALL
@@ -0,0 +1,24 @@
+# $NetBSD: DEINSTALL,v 1.1.1.1 2004/09/02 20:34:08 recht Exp $
+#
+# Remove gtk/pango module configuration.
+#
+
+case ${STAGE} in
+ POST-DEINSTALL)
+ if [ -f @EMULDIR@/etc/opt/gnome/gtk-2.0/gtk.immodules ] ; then
+ ${RM} -f @EMULDIR@/etc/opt/gnome/gtk-2.0/gtk.immodules
+ fi
+
+ if [ -f @EMULDIR@/etc/opt/gnome/gtk-2.0/gdk-pixbuf.loaders ] ; then
+ ${RM} -f @EMULDIR@/etc/opt/gnome/gtk-2.0/gdk-pixbuf.loaders
+ fi
+
+ if [ -f @EMULDIR@/etc/opt/gnome/pango/pango.modules ] ; then
+ ${RM} -f @EMULDIR@/etc/opt/gnome/pango/pango.modules
+ fi
+
+ test -d @EMULDIR@/etc/opt/gnome/gtk-2.0 && ${RMDIR} @EMULDIR@/etc/opt/gnome/gtk-2.0
+ ;;
+ *)
+ ;;
+esac
diff --git a/emulators/suse91_gtk2/DESCR b/emulators/suse91_gtk2/DESCR
new file mode 100644
index 00000000000..962f8891e8f
--- /dev/null
+++ b/emulators/suse91_gtk2/DESCR
@@ -0,0 +1,5 @@
+Linux compatibility package based on the SuSE Linux distribution, take a
+look at "http://www.suse.com/" for more information about it.
+
+This package supports running ELF binaries linked with glibc2 which require
+GTK2 shared libraries.
diff --git a/emulators/suse91_gtk2/INSTALL b/emulators/suse91_gtk2/INSTALL
new file mode 100644
index 00000000000..3beb5549d16
--- /dev/null
+++ b/emulators/suse91_gtk2/INSTALL
@@ -0,0 +1,23 @@
+# $NetBSD: INSTALL,v 1.1.1.1 2004/09/02 20:34:08 recht Exp $
+#
+# Initialize gtk/pango module configuration.
+#
+case ${STAGE} in
+ POST-INSTALL)
+ test -d @EMULDIR@/etc/opt/gnome/gtk-2.0 || ${MKDIR} @EMULDIR@/etc/opt/gnome/gtk-2.0
+
+ if [ -x @EMULDIR@/opt/gnome/bin/gtk-query-immodules-2.0 ] ; then
+ @EMULDIR@/opt/gnome/bin/gtk-query-immodules-2.0 > @EMULDIR@/etc/opt/gnome/gtk-2.0/gtk.immodules
+ fi
+
+ if [ -x @EMULDIR@/opt/gnome/bin/gdk-pixbuf-query-loaders ] ; then
+ @EMULDIR@/opt/gnome/bin/gdk-pixbuf-query-loaders > @EMULDIR@/etc/opt/gnome/gtk-2.0/gdk-pixbuf.loaders
+ fi
+
+ if [ -x @EMULDIR@/opt/gnome/bin/pango-querymodules ] ; then
+ @EMULDIR@/opt/gnome/bin/pango-querymodules > @EMULDIR@/etc/opt/gnome/pango/pango.modules
+ fi
+ ;;
+ *)
+ ;;
+esac
diff --git a/emulators/suse91_gtk2/Makefile b/emulators/suse91_gtk2/Makefile
new file mode 100644
index 00000000000..aca9a0aff0b
--- /dev/null
+++ b/emulators/suse91_gtk2/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/09/02 20:34:08 recht Exp $
+
+DISTNAME= suse_gtk2-${SUSE_VERSION}
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_SUSE91}
+DISTFILES= ${RPMFILES}
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.suse.com/
+COMMENT= Linux compatibility package for GTK2 binaries
+
+DEPENDS+= suse_fontconfig>=${SUSE_VERSION}:../../emulators/suse91_fontconfig
+DEPENDS+= suse_freetype2>=${SUSE_VERSION}:../../emulators/suse91_freetype2
+DEPENDS+= suse_libtiff>=${SUSE_VERSION}:../../emulators/suse91_libtiff
+DEPENDS+= suse_x11>=${SUSE_VERSION}:../../emulators/suse91_x11
+
+ONLY_FOR_PLATFORM= NetBSD-*-i386 FreeBSD-*-i386
+
+EXTRACT_ONLY= # empty
+USE_PKGINSTALL= YES
+NO_BUILD= YES
+NO_BUILDLINK= YES
+PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
+
+RPMFILES= atk-1.4.1-124.${SUSE_ARCH}.rpm \
+ glib2-2.2.3-117.${SUSE_ARCH}.rpm \
+ gtk2-2.2.4-121.${SUSE_ARCH}.rpm \
+ pango-1.2.5-170.${SUSE_ARCH}.rpm
+
+# Initialize gtk/pango modules.
+FILES_SUBST+= EMULDIR=${EMULDIR}
+INSTALL_EXTRA_TMPL+= ${PKGDIR}/INSTALL
+DEINSTALL_EXTRA_TMPL+= ${PKGDIR}/DEINSTALL
+
+.include "../../emulators/suse91_linux/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/suse91_gtk2/POSTINSTALL b/emulators/suse91_gtk2/POSTINSTALL
new file mode 100755
index 00000000000..f12afc8cdb2
--- /dev/null
+++ b/emulators/suse91_gtk2/POSTINSTALL
@@ -0,0 +1,77 @@
+#! /bin/sh
+# Copyright (c) 2002 SuSE Gmbh Nuernberg, Germany. All rights reserved.
+#
+# Author: Holger Hetterich <hhetter@suse.de>, 2002
+#
+# SuSEconfig.gtk: this script will generate a /etc/opt/gnome/gtk-2.0/gtk.immodules file
+# based on the gtk-2.0 modules installed on the system
+#
+#
+# check if we are started as root
+# only one of UID and USER must be set correctly
+
+if test "$UID" != 0 -a "$USER" != root; then
+ echo "You must be root to start $0."
+ exit 1
+fi
+
+test -n "$ROOT" && exit 0
+
+# do we need to run at all? only on RPM Update or new installation
+test ! -f /var/adm/SuSEconfig/run-gtk && exit 0
+
+test -d /etc/opt/gnome/gtk-2.0 || mkdir /etc/opt/gnome/gtk-2.0
+
+if [ -x $r/opt/gnome/bin/gtk-query-immodules-2.0 ] ; then
+ /opt/gnome/bin/gtk-query-immodules-2.0 > /etc/opt/gnome/gtk-2.0/gtk.immodules
+fi
+
+if [ -x $r/opt/gnome/bin/gdk-pixbuf-query-loaders ] ; then
+ /opt/gnome/bin/gdk-pixbuf-query-loaders > /etc/opt/gnome/gtk-2.0/gdk-pixbuf.loaders
+fi
+
+if [ -x $r/opt/gnome/bin/gtk-query-immodules-2.0-64 ] ; then
+ /opt/gnome/bin/gtk-query-immodules-2.0-64 > /etc/opt/gnome/gtk-2.0/gtk64.immodules
+fi
+
+if [ -x $r/opt/gnome/bin/gdk-pixbuf-query-loaders-64 ] ; then
+ /opt/gnome/bin/gdk-pixbuf-query-loaders-64 > /etc/opt/gnome/gtk-2.0/gdk-pixbuf64.loaders
+fi
+
+rm /var/adm/SuSEconfig/run-gtk
+
+exit 0
+#! /bin/sh
+# Copyright (c) 2002 SuSE Gmbh Nuernberg, Germany. All rights reserved.
+#
+# Author: Holger Hetterich <hhetter@suse.de>, 2002
+#
+# SuSEconfig.pango: this script will generate a /etc/pango/pango.modules file
+# based on the pango modules installed on the system
+#
+#
+# check if we are started as root
+# only one of UID and USER must be set correctly
+
+if test "$UID" != 0 -a "$USER" != root; then
+ echo "You must be root to start $0."
+ exit 1
+fi
+
+test -n "$ROOT" && exit 0
+
+# do we need to run at all? only on RPM Update or new installation
+test ! -f /var/adm/SuSEconfig/run-pango && exit 0
+
+if [ -x $r/opt/gnome/bin/pango-querymodules ] ; then
+ /opt/gnome/bin/pango-querymodules \
+ > /etc/opt/gnome/pango/pango.modules
+fi
+
+if [ -x $r/opt/gnome/bin/pango-querymodules-64 ] ; then
+ /opt/gnome/bin/pango-querymodules-64 \
+ > /etc/opt/gnome/pango/pango64.modules
+fi
+
+rm /var/adm/SuSEconfig/run-pango
+exit 0
diff --git a/emulators/suse91_gtk2/distinfo b/emulators/suse91_gtk2/distinfo
new file mode 100644
index 00000000000..085390faf49
--- /dev/null
+++ b/emulators/suse91_gtk2/distinfo
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/09/02 20:34:08 recht Exp $
+
+SHA1 (suse91/i586/atk-1.4.1-124.i586.rpm) = 4c0ccbd8a54960c792de95b85f1d006d289aa8c6
+Size (suse91/i586/atk-1.4.1-124.i586.rpm) = 130678 bytes
+SHA1 (suse91/i586/glib2-2.2.3-117.i586.rpm) = 72f7472c7cd95bc4e183dc81fce409cce03593e9
+Size (suse91/i586/glib2-2.2.3-117.i586.rpm) = 434726 bytes
+SHA1 (suse91/i586/gtk2-2.2.4-121.i586.rpm) = 9dc34296eec5bf7aa79a03e13e39147eff03872d
+Size (suse91/i586/gtk2-2.2.4-121.i586.rpm) = 2403412 bytes
+SHA1 (suse91/i586/pango-1.2.5-170.i586.rpm) = 085b6640bf649cd905b69799485e421a7d7fc995
+Size (suse91/i586/pango-1.2.5-170.i586.rpm) = 327533 bytes