diff options
author | marcus <marcus@FreeBSD.org> | 2003-07-16 12:44:15 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-07-16 12:44:15 +0800 |
commit | 42643b4a60d3f385bff25c3128d516e4d6f5debe (patch) | |
tree | 8c88a2c700315e832af02905d0cf614b8f8fc030 | |
parent | 9975ebaace77ba143e292b3904e4a8aaf08618da (diff) | |
download | freebsd-ports-gnome-42643b4a60d3f385bff25c3128d516e4d6f5debe.tar.gz freebsd-ports-gnome-42643b4a60d3f385bff25c3128d516e4d6f5debe.tar.zst freebsd-ports-gnome-42643b4a60d3f385bff25c3128d516e4d6f5debe.zip |
Add gnome-cups-manager, a GNOME administration GUI for the CUPS print system.
PR: 54516
Submitted by: Glenn Johnson <gjohnson@srrc.ars.usda.gov>
-rw-r--r-- | print/Makefile | 1 | ||||
-rw-r--r-- | print/gnome-cups-manager/Makefile | 36 | ||||
-rw-r--r-- | print/gnome-cups-manager/distinfo | 1 | ||||
-rw-r--r-- | print/gnome-cups-manager/files/gnome-cups-manager.desktop | 9 | ||||
-rw-r--r-- | print/gnome-cups-manager/files/patch-gnome-cups-add_printerconf.c | 11 | ||||
-rw-r--r-- | print/gnome-cups-manager/files/patch-icons_Makefile.in | 15 | ||||
-rw-r--r-- | print/gnome-cups-manager/files/patch-ltmain.sh | 51 | ||||
-rw-r--r-- | print/gnome-cups-manager/pkg-descr | 4 | ||||
-rw-r--r-- | print/gnome-cups-manager/pkg-plist | 26 |
9 files changed, 154 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile index 752f885691d4..5a501e4c025c 100644 --- a/print/Makefile +++ b/print/Makefile @@ -68,6 +68,7 @@ SUBDIR += ghostscript-gnu-nox11 SUBDIR += ghostview SUBDIR += gimp-print + SUBDIR += gnome-cups-manager SUBDIR += gnomeprint SUBDIR += gsfonts SUBDIR += gtklp diff --git a/print/gnome-cups-manager/Makefile b/print/gnome-cups-manager/Makefile new file mode 100644 index 000000000000..bed6b0ba2a90 --- /dev/null +++ b/print/gnome-cups-manager/Makefile @@ -0,0 +1,36 @@ +# New ports collection makefile for: gnome-cups-manager +# Date created: 14 Jul 2003 +# Whom: Glenn Johnson <glennpj@charter.net> +# +# $FreeBSD$ + +PORTNAME= gnome-cups-manager +PORTVERSION= 0.17 +CATEGORIES= print gnome +MASTER_SITES= ${MASTER_SITE_GNOME} +MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.17 +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Admistration tool for cups + +LIB_DEPENDS= gnomecups-1.0.1:${PORTSDIR}/print/libgnomecups + +USE_BZIP2= yes +USE_X_PREFIX= yes +USE_GMAKE= yes +USE_GNOME= gnomeprefix gnomehack libgnomeprintui libgnomeui +INSTALLS_SHLIB= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +post-patch: + @${SED} -e 's|%%PREFIX%%|${PREFIX}|' \ + < ${FILESDIR}/gnome-cups-manager.desktop \ + > ${WRKSRC}/gnome-cups-manager.desktop +post-install: + ${INSTALL_DATA} ${WRKSRC}/gnome-cups-manager.desktop \ + ${PREFIX}/share/gnome/applications + +.include <bsd.port.mk> diff --git a/print/gnome-cups-manager/distinfo b/print/gnome-cups-manager/distinfo new file mode 100644 index 000000000000..cef91d474aa6 --- /dev/null +++ b/print/gnome-cups-manager/distinfo @@ -0,0 +1 @@ +MD5 (gnome2/gnome-cups-manager-0.17.tar.bz2) = 1aa72f8318a7ccb795cdfd2676d6346c diff --git a/print/gnome-cups-manager/files/gnome-cups-manager.desktop b/print/gnome-cups-manager/files/gnome-cups-manager.desktop new file mode 100644 index 000000000000..be6ad1cccd74 --- /dev/null +++ b/print/gnome-cups-manager/files/gnome-cups-manager.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Exec=gnome-cups-manager +Icon=%%PREFIX%%/share/icons/gnome/48x48/devices/gnome-dev-printer.png +Terminal=false +Name=CUPS manager +Comment=Printer manager +Categories=Application;System; diff --git a/print/gnome-cups-manager/files/patch-gnome-cups-add_printerconf.c b/print/gnome-cups-manager/files/patch-gnome-cups-add_printerconf.c new file mode 100644 index 000000000000..13ff3acaf6e3 --- /dev/null +++ b/print/gnome-cups-manager/files/patch-gnome-cups-add_printerconf.c @@ -0,0 +1,11 @@ +--- gnome-cups-add/printerconf.c.orig Fri Mar 7 14:48:48 2003 ++++ gnome-cups-add/printerconf.c Tue Jul 15 11:20:00 2003 +@@ -12,7 +12,7 @@ + #include "snmpinter.h" + + #define IOCNR_GET_DEVICE_ID 1 +-#define LPIOC_GET_DEVICE_ID(len) _IOC(_IOC_READ, 'P', IOCNR_GET_DEVICE_ID, len) /* get device_id string */ ++#define LPIOC_GET_DEVICE_ID(len) _IOC(IOC_OUT, 'P', IOCNR_GET_DEVICE_ID, len) /* get device_id string */ + + /*---------------------------------------------------------------- + libprinterconf - a function library for detecting and setting up diff --git a/print/gnome-cups-manager/files/patch-icons_Makefile.in b/print/gnome-cups-manager/files/patch-icons_Makefile.in new file mode 100644 index 000000000000..ab44cd3f6140 --- /dev/null +++ b/print/gnome-cups-manager/files/patch-icons_Makefile.in @@ -0,0 +1,15 @@ +--- icons/Makefile.in.orig Tue Jul 15 13:57:05 2003 ++++ icons/Makefile.in Tue Jul 15 13:58:07 2003 +@@ -118,10 +118,10 @@ + WARN_CFLAGS = @WARN_CFLAGS@ + cxxflags_set = @cxxflags_set@ + +-devicedir = $(datadir)/icons/gnome/48x48/devices ++devicedir = $(prefix)/$(DATADIRNAME)/icons/gnome/48x48/devices + device_DATA = gnome-dev-printer-network.png gnome-dev-printer-new.png + +-emblemdir = $(datadir)/icons/gnome/48x48/emblems ++emblemdir = $(prefix)/$(DATADIRNAME)/icons/gnome/48x48/emblems + emblem_DATA = emblem-default.png emblem-paused.png + + pixmapdir = $(datadir)/pixmaps/gnome-cups-manager diff --git a/print/gnome-cups-manager/files/patch-ltmain.sh b/print/gnome-cups-manager/files/patch-ltmain.sh new file mode 100644 index 000000000000..36ce25d4bdbd --- /dev/null +++ b/print/gnome-cups-manager/files/patch-ltmain.sh @@ -0,0 +1,51 @@ +--- ltmain.sh.orig Sat Feb 8 08:47:44 2003 ++++ ltmain.sh Tue Jul 15 13:06:35 2003 +@@ -1075,7 +1075,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 + ;; +@@ -1085,8 +1085,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 + ;; + +@@ -2503,6 +2511,9 @@ + *-*-openbsd* | *-*-freebsd*) + # Do not include libc due to us having libc/libc_r. + ;; ++ *-*-freebsd*) ++ # FreeBSD doesn't need this... ++ ;; + *) + # Add libc to deplibs on all other systems if necessary. + if test $build_libtool_need_lc = "yes"; then +@@ -4330,10 +4341,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" diff --git a/print/gnome-cups-manager/pkg-descr b/print/gnome-cups-manager/pkg-descr new file mode 100644 index 000000000000..a04acf39d981 --- /dev/null +++ b/print/gnome-cups-manager/pkg-descr @@ -0,0 +1,4 @@ +The GNOME CUPS Manager is a tool for adding new CUPS printers and for +managing existing CUPS printers and queues. + +WWW: http://www.gnome.org/ diff --git a/print/gnome-cups-manager/pkg-plist b/print/gnome-cups-manager/pkg-plist new file mode 100644 index 000000000000..f0b050c834ee --- /dev/null +++ b/print/gnome-cups-manager/pkg-plist @@ -0,0 +1,26 @@ +bin/gnome-cups-add +bin/gnome-cups-icon +bin/gnome-cups-manager +include/libgnomecups-1/libgnomecups/gnome-cups-ui-init.h +include/libgnomecups-1/libgnomecups/gnome-cups-ui-print.h +lib/libgnomecupsui-1.0.a +lib/libgnomecupsui-1.0.so +lib/libgnomecupsui-1.0.so.1 +libdata/bonobo/servers/Gnome_CupsManager.server +libdata/pkgconfig/libgnomecupsui-1.0.pc +sbin/gnome-cups-switch +share/gnome/applications/gnome-cups-manager.desktop +share/gnome/gnome-cups-manager/gnome-cups-add.glade +share/gnome/gnome-cups-manager/gnome-cups-manager.glade +share/gnome/gnome-cups-manager/xd2-testpage-a4.eps +share/gnome/gnome-cups-manager/xd2-testpage-letter.eps +share/gnome/pixmaps/gnome-cups-manager/printer-tray-normal.png +share/gnome/pixmaps/gnome-cups-manager/printer-tray-stopped.png +share/icons/gnome/48x48/devices/gnome-dev-printer-network.png +share/icons/gnome/48x48/devices/gnome-dev-printer-new.png +share/icons/gnome/48x48/emblems/emblem-default.png +share/icons/gnome/48x48/emblems/emblem-paused.png +share/locale/he/LC_MESSAGES/gnome-cups-manager.mo +share/locale/ja/LC_MESSAGES/gnome-cups-manager.mo +@dirrm share/gnome/pixmaps/gnome-cups-manager +@dirrm share/gnome/gnome-cups-manager |