├── net ├── ghostscript │ ├── files │ │ └── gs │ ├── patches │ │ ├── 01-subconfig-options.patch │ │ ├── 02-ghostscript-9.05-configure-endian.patch │ │ ├── 003-ln-several-aux-binaries.patch │ │ └── 03-ghostscript-9.05-cross.patch │ ├── patches2 │ │ ├── 001-subconfig-options.patch │ │ ├── 002-RemoveBigEndianTest.patch │ │ └── 003-ln-several-aux-binaries.patch │ └── Makefile ├── cups │ ├── patches │ │ ├── 140-uname.patch │ │ ├── 100-mantohtml-hostbuild.patch │ │ ├── 160-ppdc.patch │ │ ├── 150-64bit_host_fix.patch │ │ └── 301-airprint-support.patch │ ├── files │ │ ├── cupsd.init │ │ └── etc │ │ │ └── cups │ │ │ ├── printers.conf │ │ │ ├── classes.conf │ │ │ ├── client.conf │ │ │ └── cupsd.conf │ └── Makefile ├── tig │ └── Makefile ├── cups-bjnp │ └── Makefile ├── splix │ └── Makefile ├── openprinting-cups-filters │ └── Makefile └── gutenprint │ └── Makefile ├── opkg-remove-printing-packages.sh ├── utils ├── fontconfig │ ├── files │ │ └── fontconfig.init │ └── Makefile ├── qpdf │ └── Makefile ├── poppler │ └── Makefile └── zsh │ └── Makefile ├── opkg-install-printing-packages.sh ├── setup-buildsystem.sh ├── libs ├── libijs │ └── Makefile ├── lcms2 │ └── Makefile ├── libjbigkit │ └── Makefile ├── libffi │ └── Makefile ├── freetype │ └── Makefile └── glib2 │ └── Makefile ├── fonts ├── ghostscript-fonts-std │ └── Makefile ├── ubuntu-fonts │ └── Makefile ├── liberation-fonts │ └── Makefile └── ghostscript-gnu-gs-fonts │ └── Makefile ├── README.md └── LICENSE.txt /net/ghostscript/files/gs: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | GS_LIB=/usr/share/ghostscript/9.06/Resource exec /usr/bin/gs.orig "$@" 3 | -------------------------------------------------------------------------------- /net/cups/patches/140-uname.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -1966,7 +1966,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu 4 | 5 | 6 | 7 | -uname=`uname` 8 | +uname=${UNAME:-`uname`} 9 | uversion=`uname -r | sed -e '1,$s/^[^0-9]*\([0-9]*\)\.\([0-9]*\).*/\1\2/'` 10 | uarch=`uname -m` 11 | 12 | -------------------------------------------------------------------------------- /net/ghostscript/patches/01-subconfig-options.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -4864,7 +4864,7 @@ 4 | SUBCONFIG_OPTS="" 5 | 6 | if test x$build_alias != x; then 7 | -SUBCONFIG_OPTS="$SUBCONFIG_OPTS --build=$build_alias" 8 | +SUBCONFIG_OPTS="$SUBCONFIG_OPTS --build=$build_alias --host=$host_alias" 9 | fi 10 | 11 | 12 | -------------------------------------------------------------------------------- /net/ghostscript/patches2/001-subconfig-options.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -4864,7 +4864,7 @@ 4 | SUBCONFIG_OPTS="" 5 | 6 | if test x$build_alias != x; then 7 | -SUBCONFIG_OPTS="$SUBCONFIG_OPTS --build=$build_alias" 8 | +SUBCONFIG_OPTS="$SUBCONFIG_OPTS --build=$build_alias --host=$host_alias" 9 | fi 10 | 11 | 12 | -------------------------------------------------------------------------------- /opkg-remove-printing-packages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | opkg remove 'cups*' --force-removal-of-dependent-packages libjpeg-turbo 4 | opkg remove --force-removal-of-dependent-packages 'libcups*' 5 | opkg remove 'ghostscript*' 6 | opkg remove --force-removal-of-dependent-packages lcms2 libijs qpdf libfreetype fontconfig poppler 7 | opkg remove avahi-utils libavahi-client 8 | opkg remove avahi-daemon 9 | -------------------------------------------------------------------------------- /net/cups/files/cupsd.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2006-2011 OpenWrt.org 3 | 4 | START=50 5 | 6 | start() { 7 | mkdir -m 0755 -p /var/cache/cups 8 | mkdir -m 0755 -p /var/cups 9 | mkdir -m 0755 -p /var/spool/cups/tmp 10 | service_start /usr/sbin/cupsd 11 | } 12 | 13 | stop() { 14 | service_stop /usr/sbin/cupsd 15 | } 16 | 17 | reload() { 18 | service_reload /usr/sbin/cupsd 19 | } 20 | -------------------------------------------------------------------------------- /utils/fontconfig/files/fontconfig.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2013 Francisco Borges 3 | 4 | # fontconfig is not a service but it needs its cache to be rebuilt on 5 | # every reboot 6 | 7 | START=50 8 | 9 | start() { 10 | # -f == force 11 | fc-cache -f 12 | } 13 | 14 | reload() { 15 | # -r, --really-force erase all existing caches, then rescan 16 | fc-cache -r 17 | } 18 | -------------------------------------------------------------------------------- /net/cups/patches/100-mantohtml-hostbuild.patch: -------------------------------------------------------------------------------- 1 | diff -Naur cups-1.6.2.bak/man/Makefile cups-1.6.2/man/Makefile 2 | --- cups-1.6.2.bak/man/Makefile 2012-11-26 19:26:01.000000000 +0100 3 | +++ cups-1.6.2/man/Makefile 2013-05-20 21:50:06.973744106 +0200 4 | @@ -233,7 +233,7 @@ 5 | done 6 | 7 | mantohtml: mantohtml.o 8 | - $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ mantohtml.o 9 | + gcc -I/usr/include -I../ -L/usr/lib mantohtml.c -o mantohtml 10 | 11 | 12 | # 13 | -------------------------------------------------------------------------------- /net/cups/files/etc/cups/printers.conf: -------------------------------------------------------------------------------- 1 | 2 | Info USB Printer 3 | Location 4 | DeviceURI usb:/dev/usb/lp0 5 | State Idle 6 | Accepting Yes 7 | JobSheets none none 8 | QuotaPeriod 0 9 | PageLimit 0 10 | KLimit 0 11 | 12 | 13 | 14 | Info Parallel Port Printer 15 | Location 16 | DeviceURI parallel:/dev/printers/0 17 | State Idle 18 | Accepting Yes 19 | JobSheets none none 20 | QuotaPeriod 0 21 | PageLimit 0 22 | KLimit 0 23 | 24 | -------------------------------------------------------------------------------- /net/cups/files/etc/cups/classes.conf: -------------------------------------------------------------------------------- 1 | ######################################################################## 2 | # # 3 | # This is a sample class configuration file. This file is included # 4 | # from the main configuration file (cups.conf) and lists all of the # 5 | # printer classes known to the system. # 6 | # # 7 | ######################################################################## 8 | -------------------------------------------------------------------------------- /net/cups/files/etc/cups/client.conf: -------------------------------------------------------------------------------- 1 | ######################################################################## 2 | # # 3 | # This is the CUPS client configuration file. This file is used to # 4 | # define client-specific parameters, such as the default server or # 5 | # default encryption settings. # 6 | # # 7 | ######################################################################## 8 | 9 | Encryption Never 10 | -------------------------------------------------------------------------------- /net/cups/patches/160-ppdc.patch: -------------------------------------------------------------------------------- 1 | --- cups-1.5.4/ppdc/Makefile 2012-10-09 09:36:00.000000000 +0200 2 | +++ cups-1.5.4/ppdc/Makefile 2012-10-09 09:36:34.000000000 +0200 3 | @@ -239,12 +239,7 @@ 4 | 5 | genstrings: genstrings.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) \ 6 | sample.drv ../data/media.defs 7 | - echo Linking $@... 8 | - $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o genstrings genstrings.o \ 9 | - libcupsppdc.a ../cups/$(LIBCUPSSTATIC) $(LIBGSSAPI) $(SSLLIBS) \ 10 | - $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) 11 | - echo Generating localization strings... 12 | - ./genstrings >sample.c 13 | + echo Not Linking $@... 14 | 15 | 16 | # 17 | -------------------------------------------------------------------------------- /opkg-install-printing-packages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # check opkg configuration 4 | grep -H -n printing /etc/opkg.conf 5 | 6 | opkg update 7 | 8 | echo "" 9 | 10 | opkg install fontconfig ghostscript-fonts-std liberation-fonts ubuntu-fonts ghostscript-gnu-gs-fonts-other 11 | opkg install cups-client cups-bjnp ghostscript gutenprint-cups openprinting-cups-filters 12 | opkg install avahi-daemon avahi-utils 13 | 14 | /etc/init.d/avahi-daemon enable 15 | /etc/init.d/cupsd enable 16 | /etc/init.d/dbus enable 17 | 18 | /etc/init.d/dbus restart 19 | 20 | sleep 1 21 | 22 | /etc/init.d/avahi-daemon restart 23 | 24 | sleep 1 25 | 26 | /etc/init.d/cupsd restart -------------------------------------------------------------------------------- /net/ghostscript/patches/02-ghostscript-9.05-configure-endian.patch: -------------------------------------------------------------------------------- 1 | diff -Naur ghostscript-9.05.orig/configure ghostscript-9.05/configure 2 | --- ghostscript-9.05.orig/configure 2012-02-13 16:22:33.000000000 -0500 3 | +++ ghostscript-9.05/configure 2012-02-13 16:23:12.000000000 -0500 4 | @@ -8879,10 +8879,18 @@ 5 | $as_echo_n "checking for big endian... " >&6; } 6 | 7 | if test "$cross_compiling" = yes; then : 8 | +if [ -n "$ac_cv_c_bigendian" ]; then 9 | + if test $ac_cv_c_bigendian = yes ; then 10 | + LCMS_BIGENDIAN=1 11 | + else 12 | + LCMS_BIGENDIAN=0 13 | + fi 14 | +else 15 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17 | as_fn_error $? "cannot run test program while cross compiling 18 | See \`config.log' for more details" "$LINENO" 5; } 19 | +fi 20 | else 21 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22 | /* end confdefs.h. */ 23 | -------------------------------------------------------------------------------- /setup-buildsystem.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # execute this from your AA cross-compilation directory 3 | 4 | #--------------------------------------------------------------- 5 | # WARNING: 'make dirclean' is a full clean of your build system. 6 | make dirclean 7 | #--------------------------------------------------------------- 8 | 9 | # Remove downloaded/generated files. 10 | ./scripts/feeds clean 11 | 12 | # Update all feeds listed within feeds.conf. 13 | ./scripts/feeds update -a 14 | 15 | # Uninstall all packages 16 | ./scripts/feeds uninstall -a 17 | 18 | # Mark all packages from 'printing' to be installed as 'm' 19 | ./scripts/feeds install bzip2 20 | ./scripts/feeds install -a -p printing -d m 21 | 22 | make defconfig 23 | 24 | # You should select the correct target architecture here 25 | make menuconfig 26 | 27 | echo "\n\n" 28 | echo "Assuming you selected the right architecture, you should be all set" 29 | echo "Issue 'make' and go drink some coffee as it takes a while..." 30 | -------------------------------------------------------------------------------- /net/ghostscript/patches2/002-RemoveBigEndianTest.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -8924,34 +8924,8 @@ 4 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5 5 | $as_echo_n "checking for big endian... " >&6; } 6 | 7 | -if test "$cross_compiling" = yes; then : 8 | - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9 | -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10 | -as_fn_error $? "cannot run test program while cross compiling 11 | -See \`config.log' for more details" "$LINENO" 5; } 12 | -else 13 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14 | -/* end confdefs.h. */ 15 | -#include 16 | -int 17 | -main () 18 | -{ 19 | - 20 | - static const int one = 1; 21 | - return (*(char*)&one == 0 ? 0 : 1); 22 | - 23 | - ; 24 | - return 0; 25 | -} 26 | -_ACEOF 27 | -if ac_fn_c_try_run "$LINENO"; then : 28 | - LCMS_BIGENDIAN=1 29 | -else 30 | - LCMS_BIGENDIAN=0 31 | -fi 32 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33 | conftest.$ac_objext conftest.beam conftest.$ac_ext 34 | -fi 35 | 36 | 37 | if test "x$LCMS_BIGENDIAN" != "x0"; then 38 | -------------------------------------------------------------------------------- /net/tig/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # This is free software, licensed under the GNU General Public License v2. 3 | # See /LICENSE for more information. 4 | # 5 | 6 | include $(TOPDIR)/rules.mk 7 | 8 | PKG_NAME:=tig 9 | PKG_VERSION:=1.2.1 10 | PKG_RELEASE:=1 11 | 12 | PKG_SOURCE:=tig-$(PKG_VERSION).tar.gz 13 | PKG_SOURCE_URL:=http://jonas.nitro.dk/tig/releases/ 14 | PKG_MD5SUM:=9dec2966d3d51f7d8b5b8d4a4b8d93eb 15 | PKG_CAT:=zcat 16 | 17 | PKG_BUILD_DIR:=$(BUILD_DIR)/tig-$(PKG_VERSION) 18 | PKG_BUILD_DEPENDS:=libncurses libiconv 19 | 20 | include $(INCLUDE_DIR)/package.mk 21 | include $(INCLUDE_DIR)/nls.mk 22 | 23 | define Package/tig 24 | SECTION:=devel 25 | CATEGORY:=Development 26 | TITLE:=Console Git repository viewer 27 | DEPENDS:=+git +libncursesw 28 | URL:=http://jonas.nitro.dk/tig/releases/ 29 | endef 30 | 31 | define Package/tig/description 32 | Tig is a git repository browser that additionally can act as a pager for output 33 | from various git commands. 34 | endef 35 | 36 | CONFIGURE_ARGS+= \ 37 | --with-libiconv="$(ICONV_PREFIX)" 38 | 39 | define Package/tig/install 40 | $(INSTALL_DIR) $(1)/usr/bin/ 41 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tig $(1)/usr/bin/tig 42 | endef 43 | 44 | $(eval $(call BuildPackage,tig)) 45 | -------------------------------------------------------------------------------- /libs/libijs/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2013 OpenWrt.org 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=ijs 11 | PKG_VERSION:=0.35 12 | PKG_RELEASE:=1 13 | 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 15 | PKG_SOURCE_URL:=http://www.openprinting.org/download/ijs/download/ 16 | PKG_MD5SUM:=896fdcb7a01c586ba6eb81398ea3f6e9 17 | 18 | PKG_INSTALL:=1 19 | 20 | include $(INCLUDE_DIR)/package.mk 21 | 22 | define Package/libijs 23 | SECTION:=libs 24 | CATEGORY:=Libraries 25 | TITLE:=IJS raster image transport protocol 26 | SUBMENU:=Printing 27 | endef 28 | 29 | define Package/libijs/description 30 | IJS raster image transport protocol 31 | endef 32 | 33 | define Package/libijs/install 34 | $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib 35 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ 36 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ 37 | endef 38 | 39 | define Build/InstallDev 40 | $(INSTALL_DIR) $(1)/usr/include/ijs $(1)/usr/lib 41 | $(CP) -r $(PKG_INSTALL_DIR)/usr/include/ijs $(1)/usr/include/ 42 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib 43 | endef 44 | 45 | $(eval $(call BuildPackage,libijs)) 46 | -------------------------------------------------------------------------------- /libs/lcms2/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2007-2013 OpenWrt.org 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=lcms2 11 | PKG_VERSION:=2.5 12 | PKG_RELEASE:=1 13 | 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 15 | PKG_SOURCE_URL:=@SF/lcms 16 | PKG_MD5SUM:=396d106600251441ff195fcaa277d10b 17 | 18 | PKG_INSTALL:=1 19 | 20 | include $(INCLUDE_DIR)/package.mk 21 | 22 | define Package/lcms2 23 | SECTION:=libs 24 | CATEGORY:=Libraries 25 | TITLE:=Little CMS color engine 26 | DEPENDS:=+libtiff +libjpeg +zlib 27 | URL:=http://www.littlecms.com/ 28 | SUBMENU:=Printing 29 | endef 30 | 31 | define Package/lcms2/description 32 | Little CMS color engine 33 | endef 34 | 35 | define Package/lcms2/install 36 | $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib 37 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ 38 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ 39 | endef 40 | 41 | define Build/InstallDev 42 | $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib 43 | $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ 44 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib 45 | endef 46 | 47 | $(eval $(call BuildPackage,lcms2)) 48 | -------------------------------------------------------------------------------- /fonts/ghostscript-fonts-std/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # This is free software, licensed under the GNU General Public License v2. 3 | # See /LICENSE for more information. 4 | # 5 | 6 | include $(TOPDIR)/rules.mk 7 | 8 | PKG_NAME:=ghostscript-fonts-std 9 | PKG_VERSION:=8.11 10 | PKG_RELEASE:=1 11 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 12 | PKG_SOURCE_URL:=@SF/gs-fonts 13 | PKG_MD5SUM:=6865682b095f8c4500c54b285ff05ef6 14 | 15 | include $(INCLUDE_DIR)/package.mk 16 | 17 | PKG_UNPACK:=gzip -dc $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR) $(TAR_OPTIONS) 18 | 19 | define Package/ghostscript-fonts-std 20 | SECTION:=fonts 21 | CATEGORY:=Network 22 | TITLE:=ghostscript-fonts-std 23 | SUBMENU:=Printing 24 | DEPENDS:=+fontconfig 25 | endef 26 | 27 | define Package/ghostscript-fonts-std/description 28 | Ghostscript, standard fonts. 29 | endef 30 | 31 | define Build/Configure 32 | endef 33 | 34 | define Build/Compile 35 | endef 36 | 37 | define Package/ghostscript-fonts-std/install 38 | $(INSTALL_DIR) $(1)/usr/share/fonts/ghostscript 39 | $(CP) $(PKG_BUILD_DIR)/fonts $(1)/usr/share/fonts/ghostscript 40 | endef 41 | 42 | define Package/ghostscript-fonts-std/postinst 43 | #!/bin/sh 44 | /usr/bin/fc-cache --force --verbose 45 | endef 46 | 47 | $(eval $(call BuildPackage,ghostscript-fonts-std)) 48 | -------------------------------------------------------------------------------- /fonts/ubuntu-fonts/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # This is free software, licensed under the GNU General Public License v2. 3 | # See /LICENSE for more information. 4 | # 5 | 6 | include $(TOPDIR)/rules.mk 7 | 8 | PKG_NAME:=ubuntu-font-family 9 | PKG_VERSION:=0.80 10 | PKG_RELEASE:=1 11 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip 12 | PKG_SOURCE_URL:=http://font.ubuntu.com/download/ 13 | PKG_MD5SUM:=a1fc70f5a5b1d096ab8310886cddaa1c 14 | 15 | include $(INCLUDE_DIR)/package.mk 16 | 17 | define Package/ubuntu-fonts 18 | SECTION:=fonts 19 | CATEGORY:=Network 20 | TITLE:=ubuntu-fonts 21 | SUBMENU:=Printing 22 | DEPENDS:= +fontconfig 23 | endef 24 | 25 | define Package/ubuntu-fonts/description 26 | The Ubuntu typeface has been specially created to complement the Ubuntu tone of 27 | voice. It has a contemporary style and contains characteristics unique to the 28 | Ubuntu brand that convey a precise, reliable and free attitude. 29 | endef 30 | 31 | define Build/Configure 32 | endef 33 | 34 | define Build/Compile 35 | endef 36 | 37 | define Package/ubuntu-fonts/install 38 | $(INSTALL_DIR) $(1)/usr/share/fonts/ubuntu 39 | $(CP) $(PKG_BUILD_DIR)/*.ttf $(1)/usr/share/fonts/ubuntu 40 | endef 41 | 42 | define Package/ubuntu-fonts/postinst 43 | #!/bin/sh 44 | /usr/bin/fc-cache --force --verbose 45 | endef 46 | 47 | $(eval $(call BuildPackage,ubuntu-fonts)) 48 | -------------------------------------------------------------------------------- /fonts/liberation-fonts/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # This is free software, licensed under the GNU General Public License v2. 3 | # See /LICENSE for more information. 4 | # 5 | 6 | include $(TOPDIR)/rules.mk 7 | 8 | PKG_NAME:=liberation-fonts-ttf 9 | PKG_VERSION:=2.00.1 10 | PKG_RELEASE:=1 11 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 12 | PKG_SOURCE_URL:=https://fedorahosted.org/releases/l/i/liberation-fonts/ 13 | PKG_MD5SUM:=5c781723a0d9ed6188960defba8e91cf 14 | 15 | include $(INCLUDE_DIR)/package.mk 16 | 17 | define Package/liberation-fonts 18 | SECTION:=fonts 19 | CATEGORY:=Network 20 | TITLE:=liberation-fonts 21 | SUBMENU:=Printing 22 | DEPENDS:= +fontconfig 23 | endef 24 | 25 | define Package/liberation-fonts/description 26 | The Liberation(tm) Fonts is a font family which aims at metric compatibility 27 | with Arial, Times New Roman, and Courier New. It is sponsored by Red Hat 28 | endef 29 | 30 | define Build/Configure 31 | endef 32 | 33 | define Build/Compile 34 | endef 35 | 36 | define Package/liberation-fonts/install 37 | $(INSTALL_DIR) $(1)/usr/share/fonts/truetype/liberation 38 | $(CP) $(PKG_BUILD_DIR)/*.ttf $(1)/usr/share/fonts/truetype/liberation 39 | endef 40 | 41 | define Package/liberation-fonts/postinst 42 | #!/bin/sh 43 | /usr/bin/fc-cache --force --verbose 44 | endef 45 | 46 | $(eval $(call BuildPackage,liberation-fonts)) 47 | -------------------------------------------------------------------------------- /fonts/ghostscript-gnu-gs-fonts/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2013 OpenWrt.org 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=ghostscript-gnu-gs-fonts-other 11 | PKG_VERSION:=6.0 12 | PKG_RELEASE:=1 13 | PKG_SOURCE:=gnu-gs-fonts-other-$(PKG_VERSION).tar.gz 14 | PKG_SOURCE_URL:=@SF/gs-fonts 15 | PKG_MD5SUM:=33457d3f37de7ef03d2eea05a9e6aa4f 16 | 17 | include $(INCLUDE_DIR)/package.mk 18 | 19 | PKG_UNPACK:=gzip -dc $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR) $(TAR_OPTIONS) 20 | 21 | define Package/ghostscript-gnu-gs-fonts-other 22 | SECTION:=fonts 23 | CATEGORY:=Network 24 | TITLE:=ghostscript-gnu-gs-fonts-other 25 | SUBMENU:=Printing 26 | DEPENDS:=+fontconfig 27 | endef 28 | 29 | define Package/ghostscript-gnu-gs-fonts-other/description 30 | Ghostscript, the 'other' standard fonts. 31 | endef 32 | 33 | define Build/Configure 34 | endef 35 | 36 | define Build/Compile 37 | endef 38 | 39 | define Package/ghostscript-gnu-gs-fonts-other/install 40 | $(INSTALL_DIR) $(1)/usr/share/fonts/ghostscript 41 | $(CP) $(PKG_BUILD_DIR)/fonts $(1)/usr/share/fonts/ghostscript 42 | endef 43 | 44 | define Package/ghostscript-gnu-gs-fonts-other/postinst 45 | #!/bin/sh 46 | /usr/bin/fc-cache --force --verbose 47 | endef 48 | 49 | $(eval $(call BuildPackage,ghostscript-gnu-gs-fonts-other)) 50 | -------------------------------------------------------------------------------- /net/cups-bjnp/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2010 OpenWrt.org 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=cups-bjnp 11 | PKG_VERSION:=1.2 12 | PKG_RELEASE:=1 13 | 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 15 | PKG_SOURCE_URL:=@SF/cups-bjnp 16 | PKG_MD5SUM:=8672b4585b71dee6dcefa00fbbbe7698 17 | 18 | PKG_BUILD_DEPENDS:=cups 19 | 20 | include $(INCLUDE_DIR)/package.mk 21 | 22 | define Package/cups-bjnp 23 | SECTION:=net 24 | CATEGORY:=Network 25 | TITLE:=BJNP protocol backend for CUPS 26 | URL:=http://sourceforge.net/projects/cups-bjnp/ 27 | DEPENDS:=cups 28 | SUBMENU:=Printing 29 | endef 30 | 31 | define Package/cups-bjnp/description 32 | CUPS backend for the canon printers using the proprietary USB over 33 | IP BJNP protocol. This backend allows Cups to print over the network 34 | to a Canon printer. It currently supports Cups 1.2 and Cups 1.3 and 35 | is designed by reverse engineering. 36 | endef 37 | 38 | CONFIGURE_ARGS += --with-cupsbackenddir=$(STAGING_DIR)/usr/include/cups 39 | 40 | TARGET_CFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib 41 | 42 | define Package/cups-bjnp/install 43 | $(INSTALL_DIR) $(1)/usr/lib/cups/backend 44 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/bjnp $(1)/usr/lib/cups/backend 45 | endef 46 | 47 | 48 | $(eval $(call BuildPackage,cups-bjnp)) 49 | -------------------------------------------------------------------------------- /net/cups/patches/150-64bit_host_fix.patch: -------------------------------------------------------------------------------- 1 | diff -u -r cups-1.6.3.orig/config-scripts/cups-directories.m4 cups-1.6.3/config-scripts/cups-directories.m4 2 | --- cups-1.6.3.orig/config-scripts/cups-directories.m4 2013-08-27 22:20:01.201998766 +0200 3 | +++ cups-1.6.3/config-scripts/cups-directories.m4 2013-08-27 22:25:47.863998755 +0200 4 | @@ -107,7 +107,7 @@ 5 | ;; 6 | Linux*) 7 | if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then 8 | - libdir="$exec_prefix/lib64" 9 | + libdir="$exec_prefix/lib" 10 | fi 11 | ;; 12 | HP-UX*) 13 | diff -u -r cups-1.6.3.orig/configure cups-1.6.3/configure 14 | --- cups-1.6.3.orig/configure 2013-08-27 22:20:01.201998766 +0200 15 | +++ cups-1.6.3/configure 2013-08-27 22:35:55.415998739 +0200 16 | @@ -5844,7 +5844,7 @@ 17 | ;; 18 | Linux*) 19 | if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then 20 | - libdir="$exec_prefix/lib64" 21 | + libdir="$exec_prefix/lib" 22 | fi 23 | ;; 24 | HP-UX*) 25 | diff -u -r cups-1.6.3.orig/cups-config.in cups-1.6.3/cups-config.in 26 | --- cups-1.6.3.orig/cups-config.in 2013-08-27 22:20:01.198998766 +0200 27 | +++ cups-1.6.3/cups-config.in 2013-08-27 22:20:48.137998757 +0200 28 | @@ -50,7 +50,7 @@ 29 | CFLAGS="$CFLAGS -I$includedir" 30 | fi 31 | 32 | - if test $libdir != /usr/lib -a $libdir != /usr/lib32 -a $libdir != /usr/lib64; then 33 | + if test $libdir != /usr/lib -a $libdir != /usr/lib -a $libdir != /usr/lib; then 34 | LDFLAGS="$LDFLAGS -L$libdir" 35 | fi 36 | fi 37 | -------------------------------------------------------------------------------- /net/cups/files/etc/cups/cupsd.conf: -------------------------------------------------------------------------------- 1 | ######################################################################## 2 | # # 3 | # This is the CUPS configuration file. If you are familiar with # 4 | # Apache or any of the other popular web servers, we've followed the # 5 | # same format. Any configuration variable used here has the same # 6 | # semantics as the corresponding variable in Apache. If we need # 7 | # different functionality then a different name is used to avoid # 8 | # confusion... # 9 | # # 10 | ######################################################################## 11 | 12 | 13 | AccessLog syslog 14 | ErrorLog syslog 15 | LogLevel info 16 | PageLog syslog 17 | PreserveJobHistory No 18 | PreserveJobFiles No 19 | AutoPurgeJobs Yes 20 | MaxJobs 25 21 | MaxPrinterHistory 10 22 | #Printcap /etc/printcap 23 | #PrintcapFormat BSD 24 | RequestRoot /var/cups 25 | #RemoteRoot remroot 26 | User nobody 27 | Group nogroup 28 | RIPCache auto 29 | TempDir /var/cups 30 | Port 631 31 | HostNameLookups On 32 | KeepAlive On 33 | # No: "BrowseOrder" "BrowseAllow" "BrowseRemoteProtocols" 34 | Browsing Yes 35 | BrowsingWebIF Yes 36 | BrowseLocalProtocols DNSSD 37 | DefaultShared Yes 38 | 39 | ServerAlias * 40 | 41 | 42 | Order Deny,Allow 43 | Allow From 127.0.0.1 44 | Allow From 192.168.1.0/24 45 | 46 | 47 | 48 | AuthType Basic 49 | AuthClass System 50 | Order Allow,Deny 51 | Allow From All 52 | 53 | -------------------------------------------------------------------------------- /net/splix/Makefile: -------------------------------------------------------------------------------- 1 | include $(TOPDIR)/rules.mk 2 | 3 | PKG_NAME:=splix 4 | PKG_VERSION:=2.0.1.20130902svn 5 | PKG_RELEASE:=1 6 | 7 | PKG_BUILD_DIR:=$(BUILD_DIR)/splix 8 | PKG_SOURCE:=splix-$(PKG_VERSION).tar.bz2 9 | PKG_SOURCE_URL:=https://pkgs.fedoraproject.org/repo/pkgs/splix/splix-2.0.1.20130902svn.tar.bz2/2901e9482dd1a7c44f7b730696868e09 10 | PKG_MD5SUM:=2901e9482dd1a7c44f7b730696868e09 11 | PKG_CAT:=bzcat 12 | PKG_INSTALL:=1 13 | 14 | include $(INCLUDE_DIR)/package.mk 15 | 16 | define Package/splix 17 | SECTION:=net 18 | CATEGORY:=Network 19 | TITLE:=SPL printer driver for Unix 20 | #DESCRIPTION:=This variable is obsolete. use the Package/name/description define instead! 21 | DEPENDS:=+cups +libcupsimage +libtiff +libjbigkit 22 | URL:=http://pkgs.fedoraproject.org/cgit/splix.git/ 23 | endef 24 | 25 | define Package/splix/description 26 | Splix is a driver for printers that speak SPL (Samsung Printer Language). This includes printers made by Samsung, Dell, and Xerox 27 | endef 28 | 29 | define Build/Configure 30 | $(SED) 's/(const PPDFile::Value::Value/(const PPDFile::Value/' $(PKG_BUILD_DIR)/src/ppdfile.cpp 31 | $(SED) "s/^CC\t\t:= gcc/CC\t\t:= $(TARGET_CC)/" -e "s/^CXX\t\t:= g++/CXX\t\t:= $(TARGET_CXX)/" -e "s/^AR\t\t:= ar/AR\t\t:= $(TARGET_AR)/" $(PKG_BUILD_DIR)/Makefile 32 | $(SED) 's|\(.*\)toqpdl_LDFLAGS\t*:=.*|\1toqpdl_LDFLAGS\t:=$(TARGET_LDFLAGS) -lpthread|' -e 's|\(.*\)toqpdl_LIBS\t*:=.*|\1toqpdl_LIBS\t:=-lpng -ltiff -lcups -lcupsimage|' -e 's|^CXXFLAGS\t\t+= `cups.*|CXXFLAGS\t\t+= $(TARGET_CFLAGS) -Iinclude -Wall $(TARGET_CPPFLAGS)|' -e 's|CUPSFILTER\t*:=.*|CUPSFILTER\t:= /usr/lib/cups/filter|' -e 's|CUPSPPD\t*:=.*|CUPSPPD\t:= /usr/share/cups/model|' $(PKG_BUILD_DIR)/module.mk 33 | $(SED) 's|g++|$(TARGET_CXX)|' $(PKG_BUILD_DIR)/rules.mk 34 | mv $(PKG_BUILD_DIR)/*.ppd $(PKG_BUILD_DIR)/ppd/ 35 | endef 36 | 37 | $(eval $(call BuildPackage,splix)) 38 | -------------------------------------------------------------------------------- /utils/qpdf/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2007-2013 OpenWrt.org 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=qpdf 11 | PKG_VERSION:=4.0.1 12 | PKG_RELEASE:=1 13 | 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 15 | PKG_SOURCE_URL:=@SF/$(PKG_NAME) 16 | PKG_MD5SUM:=093baece867a0a7e07774bd4008156b3 17 | 18 | PKG_INSTALL:=1 19 | 20 | include $(INCLUDE_DIR)/package.mk 21 | 22 | define Package/qpdf 23 | SECTION:=utils 24 | CATEGORY:=Utilities 25 | TITLE:=QPDF is a command-line program for transformations on PDF files. 26 | DEPENDS:= +libpcre +zlib +libstdcpp 27 | URL:=http://qpdf.sourceforge.net/ 28 | SUBMENU:=Printing 29 | endef 30 | 31 | define Package/qpdf/description 32 | QPDF is a command-line program that does structural, content-preserving 33 | transformations on PDF files. It could have been called something like pdf-to-pdf. 34 | It also provides many useful capabilities to developers of PDF-producing software 35 | or for people who just want to look at the innards of a PDF file to learn more 36 | about how they work. 37 | endef 38 | 39 | define Package/qpdf/install 40 | $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib 41 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ 42 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ 43 | endef 44 | 45 | define Build/Compile 46 | $(call Build/Compile/Default, LIBTOOL="./libtool --tag=CXX") 47 | endef 48 | 49 | define Build/InstallDev 50 | $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib 51 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ 52 | $(INSTALL_DIR) $(1)/usr/include 53 | $(CP) -r $(PKG_INSTALL_DIR)/usr/include/$(PKG_NAME) $(1)/usr/include/ 54 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib 55 | endef 56 | 57 | $(eval $(call BuildPackage,qpdf)) 58 | -------------------------------------------------------------------------------- /libs/libjbigkit/Makefile: -------------------------------------------------------------------------------- 1 | include $(TOPDIR)/rules.mk 2 | 3 | PKG_NAME:=libjbigkit 4 | PKG_VERSION:=2.1 5 | PKG_RELEASE:=1 6 | 7 | PKG_BUILD_DIR:=$(BUILD_DIR)/jbigkit-$(PKG_VERSION) 8 | PKG_SOURCE:=jbigkit-$(PKG_VERSION).tar.gz 9 | PKG_SOURCE_URL:=http://www.cl.cam.ac.uk/~mgk25/jbigkit/download 10 | PKG_MD5SUM:=ebcf09bed9f14d7fa188d3bd57349522 11 | PKG_CAT:=zcat 12 | 13 | include $(INCLUDE_DIR)/package.mk 14 | 15 | define Package/libjbigkit 16 | SECTION:=libs 17 | CATEGORY:=Libraries 18 | TITLE:=JBIG-KIT library 19 | #DESCRIPTION:=This variable is obsolete. use the Package/name/description define instead! 20 | DEPENDS:= 21 | URL:=http://freecode.com/projects/jbigkit/ 22 | endef 23 | 24 | define Package/libjbigkit/description 25 | JBIG-KIT implements a highly effective data compression algorithm for bi-level high-resolution images such as fax pages or scanned documents. This package provides JBIG-KIT C libraries of compression and decompression functions 26 | endef 27 | 28 | define Build/Compile 29 | cd $(PKG_BUILD_DIR)/libjbig; PATH=$(TARGET_PATH) $(TARGET_CC) -fPIC -g -c $(TARGET_CFLAGS) -ansi -pedantic jbig.c 30 | cd $(PKG_BUILD_DIR)/libjbig; PATH=$(TARGET_PATH) $(TARGET_CC) -fPIC -g -c $(TARGET_CFLAGS) -ansi -pedantic jbig85.c 31 | cd $(PKG_BUILD_DIR)/libjbig; PATH=$(TARGET_PATH) $(TARGET_CC) -fPIC -g -c $(TARGET_CFLAGS) -ansi -pedantic jbig_ar.c 32 | cd $(PKG_BUILD_DIR)/libjbig; PATH=$(TARGET_PATH) $(TARGET_CC) -shared -o libjbig.so jbig.o jbig_ar.o $(TARGET_LDLAGS) 33 | cd $(PKG_BUILD_DIR)/libjbig; PATH=$(TARGET_PATH) $(TARGET_CC) -shared -o libjbig85.so jbig85.o jbig_ar.o $(TARGET_LDLAGS) 34 | endef 35 | 36 | define Build/Install 37 | $(CP) $(PKG_BUILD_DIR)/libjbig/*.so $(STAGING_DIR)/usr/lib/ 38 | $(CP) $(PKG_BUILD_DIR)/libjbig/*.h $(STAGING_DIR)/usr/include/ 39 | endef 40 | 41 | define Package/libjbigkit/install 42 | $(INSTALL_DIR) $(1)/usr/lib 43 | $(CP) $(PKG_BUILD_DIR)/libjbig/*.so $(1)/usr/lib/ 44 | endef 45 | 46 | $(eval $(call BuildPackage,libjbigkit)) 47 | -------------------------------------------------------------------------------- /utils/poppler/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2013 OpenWrt.org 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=poppler 11 | PKG_VERSION:=0.24.1 12 | PKG_RELEASE:=1 13 | 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz 15 | PKG_SOURCE_URL:=http://poppler.freedesktop.org/ 16 | PKG_MD5SUM:=b11cc0408b4ad3809fa455d7b3d5ade9 17 | 18 | PKG_INSTALL:=1 19 | 20 | include $(INCLUDE_DIR)/package.mk 21 | 22 | define Package/poppler 23 | SECTION:=utils 24 | CATEGORY:=Utilities 25 | TITLE:=Poppler PDF rendering library 26 | DEPENDS:=+libpng +libtiff +libjpeg +zlib +lcms2 +fontconfig +libpthread +libfreetype +libstdcpp 27 | URL:=http://poppler.freedesktop.org/ 28 | SUBMENU:=Printing 29 | endef 30 | 31 | define Package/poppler/description 32 | Poppler is a PDF rendering library based on the xpdf-3.0 code base. 33 | endef 34 | 35 | CONFIGURE_ARGS+= \ 36 | --without-x \ 37 | --disable-gtk-test \ 38 | --disable-poppler-qt4 \ 39 | --disable-poppler-qt5 \ 40 | --disable-gtk-doc-html \ 41 | --enable-gtk-doc-html=no \ 42 | --enable-poppler-cpp \ 43 | --enable-xpdf-headers \ 44 | --enable-zlib \ 45 | --enable-libjpeg \ 46 | --enable-cms=lcms2 \ 47 | --disable-poppler-cpp \ 48 | --with-font-configuration=fontconfig 49 | 50 | define Package/poppler/install 51 | $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib 52 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ 53 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ 54 | endef 55 | 56 | define Build/InstallDev 57 | $(INSTALL_DIR) $(1)/usr/include/cpp $(1)/usr/lib 58 | $(CP) -r $(PKG_INSTALL_DIR)/usr/include/poppler $(1)/usr/include/ 59 | $(CP) -r $(PKG_BUILD_DIR)/cpp/poppler-version.h $(1)/usr/include/cpp 60 | $(CP) -r $(PKG_BUILD_DIR)/cpp/poppler-global.h $(1)/usr/include/cpp 61 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib 62 | endef 63 | 64 | $(eval $(call BuildPackage,poppler)) 65 | -------------------------------------------------------------------------------- /net/ghostscript/patches/003-ln-several-aux-binaries.patch: -------------------------------------------------------------------------------- 1 | diff -uarN ghostscript-9.06/base/unix-aux.mak ghostscript-9.06-B/base/unix-aux.mak 2 | --- a/base/unix-aux.mak 3 | +++ b/base/unix-aux.mak 4 | @@ -69,21 +69,21 @@ 5 | # -------------------------- Auxiliary programs --------------------------- # 6 | 7 | $(ECHOGS_XE): $(GLSRC)echogs.c $(AK) $(stdpre_h) $(MAKEDIRS) 8 | - $(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(ECHOGS_XE) $(GLSRC)echogs.c 9 | + ln -fs OPENWRT_BASE_BUILD_PATH/obj/aux/echogs OPENWRT_PGK_BUILD_PATH/obj/aux/echogs 10 | 11 | # On the RS/6000 (at least), compiling genarch.c with gcc with -O 12 | # produces a buggy executable. 13 | $(GENARCH_XE): $(GLSRC)genarch.c $(AK) $(GENARCH_DEPS) $(MAKEDIRS) 14 | - $(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENARCH_XE) $(GLSRC)genarch.c 15 | + ln -fs OPENWRT_BASE_BUILD_PATH/obj/aux/genarch OPENWRT_PGK_BUILD_PATH/obj/aux/genarch 16 | 17 | $(GENCONF_XE): $(GLSRC)genconf.c $(AK) $(GENCONF_DEPS) $(MAKEDIRS) 18 | - $(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENCONF_XE) $(GLSRC)genconf.c 19 | + ln -fs OPENWRT_BASE_BUILD_PATH/obj/aux/genconf OPENWRT_PGK_BUILD_PATH/obj/aux/genconf 20 | 21 | $(GENDEV_XE): $(GLSRC)gendev.c $(AK) $(GENDEV_DEPS) $(MAKEDIRS) 22 | - $(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENDEV_XE) $(GLSRC)gendev.c 23 | + ln -fs OPENWRT_BASE_BUILD_PATH/obj/aux/gendev OPENWRT_PGK_BUILD_PATH/obj/aux/gendev 24 | 25 | $(GENHT_XE): $(GLSRC)genht.c $(AK) $(GENHT_DEPS) $(MAKEDIRS) 26 | - $(CCAUX_) $(GENHT_CFLAGS) $(O_)$(GENHT_XE) $(GLSRC)genht.c 27 | + ln -fs OPENWRT_BASE_BUILD_PATH/obj/aux/genht OPENWRT_PGK_BUILD_PATH/obj/aux/genht 28 | 29 | # To get GS to use the system zlib, you remove/hide the gs/zlib directory 30 | # which means that the mkromfs build can't find the zlib source it needs. 31 | @@ -103,7 +103,7 @@ 32 | $(GLOBJ)gp_stdia.$(OBJ) $(GLOBJ)gsutil.$(OBJ) 33 | 34 | $(MKROMFS_XE)_1: $(GLSRC)mkromfs.c $(MKROMFS_COMMON_DEPS) $(MKROMFS_OBJS_1) 35 | - $(CCAUX_) $(GENOPT) $(CFLAGS) $(I_)$(GLSRCDIR)$(_I) $(I_)$(GLOBJ)$(_I) $(I_)$(ZSRCDIR)$(_I) $(GLSRC)mkromfs.c $(O_)$(MKROMFS_XE)_1 $(MKROMFS_OBJS_1) -lm $(EXTRALIBS) 36 | + ln -fs OPENWRT_BASE_BUILD_PATH/obj/aux/mkromfs_1 OPENWRT_PGK_BUILD_PATH/obj/aux/mkromfs_1 37 | 38 | $(MKROMFS_XE): $(MKROMFS_XE)_$(SHARE_ZLIB) $(MAKEDIRS) 39 | $(CP_) $(MKROMFS_XE)_$(SHARE_ZLIB) $(MKROMFS_XE) 40 | -------------------------------------------------------------------------------- /net/ghostscript/patches2/003-ln-several-aux-binaries.patch: -------------------------------------------------------------------------------- 1 | diff -uarN ghostscript-9.06/base/unix-aux.mak ghostscript-9.06-B/base/unix-aux.mak 2 | --- a/base/unix-aux.mak 3 | +++ b/base/unix-aux.mak 4 | @@ -69,21 +69,21 @@ 5 | # -------------------------- Auxiliary programs --------------------------- # 6 | 7 | $(ECHOGS_XE): $(GLSRC)echogs.c $(AK) $(stdpre_h) $(MAKEDIRS) 8 | - $(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(ECHOGS_XE) $(GLSRC)echogs.c 9 | + ln -fs OPENWRT_BASE_BUILD_PATH/obj/aux/echogs OPENWRT_PGK_BUILD_PATH/obj/aux/echogs 10 | 11 | # On the RS/6000 (at least), compiling genarch.c with gcc with -O 12 | # produces a buggy executable. 13 | $(GENARCH_XE): $(GLSRC)genarch.c $(AK) $(GENARCH_DEPS) $(MAKEDIRS) 14 | - $(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENARCH_XE) $(GLSRC)genarch.c 15 | + ln -fs OPENWRT_BASE_BUILD_PATH/obj/aux/genarch OPENWRT_PGK_BUILD_PATH/obj/aux/genarch 16 | 17 | $(GENCONF_XE): $(GLSRC)genconf.c $(AK) $(GENCONF_DEPS) $(MAKEDIRS) 18 | - $(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENCONF_XE) $(GLSRC)genconf.c 19 | + ln -fs OPENWRT_BASE_BUILD_PATH/obj/aux/genconf OPENWRT_PGK_BUILD_PATH/obj/aux/genconf 20 | 21 | $(GENDEV_XE): $(GLSRC)gendev.c $(AK) $(GENDEV_DEPS) $(MAKEDIRS) 22 | - $(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENDEV_XE) $(GLSRC)gendev.c 23 | + ln -fs OPENWRT_BASE_BUILD_PATH/obj/aux/gendev OPENWRT_PGK_BUILD_PATH/obj/aux/gendev 24 | 25 | $(GENHT_XE): $(GLSRC)genht.c $(AK) $(GENHT_DEPS) $(MAKEDIRS) 26 | - $(CCAUX_) $(GENHT_CFLAGS) $(O_)$(GENHT_XE) $(GLSRC)genht.c 27 | + ln -fs OPENWRT_BASE_BUILD_PATH/obj/aux/genht OPENWRT_PGK_BUILD_PATH/obj/aux/genht 28 | 29 | # To get GS to use the system zlib, you remove/hide the gs/zlib directory 30 | # which means that the mkromfs build can't find the zlib source it needs. 31 | @@ -103,7 +103,7 @@ 32 | $(GLOBJ)gp_stdia.$(OBJ) $(GLOBJ)gsutil.$(OBJ) 33 | 34 | $(MKROMFS_XE)_1: $(GLSRC)mkromfs.c $(MKROMFS_COMMON_DEPS) $(MKROMFS_OBJS_1) 35 | - $(CCAUX_) $(GENOPT) $(CFLAGS) $(I_)$(GLSRCDIR)$(_I) $(I_)$(GLOBJ)$(_I) $(I_)$(ZSRCDIR)$(_I) $(GLSRC)mkromfs.c $(O_)$(MKROMFS_XE)_1 $(MKROMFS_OBJS_1) -lm $(EXTRALIBS) 36 | + ln -fs OPENWRT_BASE_BUILD_PATH/obj/aux/mkromfs_1 OPENWRT_PGK_BUILD_PATH/obj/aux/mkromfs_1 37 | 38 | $(MKROMFS_XE): $(MKROMFS_XE)_$(SHARE_ZLIB) $(MAKEDIRS) 39 | $(CP_) $(MKROMFS_XE)_$(SHARE_ZLIB) $(MKROMFS_XE) 40 | -------------------------------------------------------------------------------- /libs/libffi/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2009-2012 OpenWrt.org 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=libffi 11 | PKG_VERSION:=3.0.11 12 | PKG_RELEASE:=1 13 | 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 15 | PKG_SOURCE_URL:=ftp://sourceware.org/pub/libffi/ 16 | PKG_MD5SUM:=f69b9693227d976835b4857b1ba7d0e3 17 | 18 | PKG_LICENSE:=MIT 19 | PKG_LICENSE_FILES:=LICENSE 20 | 21 | PKG_FIXUP:=autoreconf 22 | PKG_INSTALL:=1 23 | 24 | include $(INCLUDE_DIR)/package.mk 25 | include $(INCLUDE_DIR)/host-build.mk 26 | 27 | define Package/libffi 28 | SECTION:=libs 29 | CATEGORY:=Libraries 30 | TITLE:=Foreign Function Interface (FFI) library 31 | URL:=http://sourceware.org/libffi/ 32 | endef 33 | 34 | define Package/libffi/description 35 | The libffi library provides a portable, high level programming interface to 36 | various calling conventions. This allows a programmer to call any function 37 | specified by a call interface description at run-time. 38 | 39 | FFI stands for Foreign Function Interface. A foreign function interface is the 40 | popular name for the interface that allows code written in one language to call 41 | code written in another language. The libffi library really only provides the 42 | lowest, machine dependent layer of a fully featured foreign function interface. 43 | A layer must exist above libffi that handles type conversions for values passed 44 | between the two languages. 45 | endef 46 | 47 | CONFIGURE_PATH = build 48 | CONFIGURE_CMD = ../configure 49 | MAKE_PATH = build 50 | 51 | define Build/Configure 52 | mkdir -p $(PKG_BUILD_DIR)/build 53 | $(Build/Configure/Default) 54 | endef 55 | 56 | define Build/InstallDev 57 | $(INSTALL_DIR) $(1)/usr/lib/pkgconfig 58 | $(CP) \ 59 | $(PKG_INSTALL_DIR)/usr/lib/libffi.{so*,a,la} \ 60 | $(1)/usr/lib/ 61 | $(CP) \ 62 | $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \ 63 | $(1)/usr/lib/pkgconfig/ 64 | 65 | $(INSTALL_DIR) $(1)/usr/include 66 | $(CP) \ 67 | $(PKG_INSTALL_DIR)/usr/lib/libffi-$(PKG_VERSION)/include/*.h \ 68 | $(1)/usr/include/ 69 | endef 70 | 71 | define Package/libffi/install 72 | $(INSTALL_DIR) $(1)/usr/lib 73 | $(CP) \ 74 | $(PKG_INSTALL_DIR)/usr/lib/libffi.so.* \ 75 | $(1)/usr/lib/ 76 | endef 77 | 78 | $(eval $(call HostBuild)) 79 | $(eval $(call BuildPackage,libffi)) 80 | -------------------------------------------------------------------------------- /libs/freetype/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2013 OpenWrt.org 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=freetype 11 | PKG_VERSION:=2.4.11 12 | PKG_RELEASE:=1 13 | 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 15 | PKG_SOURCE_URL:=@SF/$(PKG_NAME) 16 | PKG_MD5SUM:=b93435488942486c8d0ca22e8f768034 17 | 18 | PKG_LICENSE:=FTL GPLv2 MIT ZLIB 19 | PKG_LICENSE_FILES:=docs/LICENSE.TXT docs/FTL.TXT docs/GPLv2.TXT src/bdf/README src/pcf/README src/gzip/zlib.h 20 | 21 | PKG_FIXUP:=autoreconf 22 | PKG_LIBTOOL_PATHS:=builds/unix 23 | 24 | include $(INCLUDE_DIR)/host-build.mk 25 | include $(INCLUDE_DIR)/package.mk 26 | 27 | define Package/libfreetype 28 | SECTION:=libs 29 | CATEGORY:=Libraries 30 | TITLE:=A free, high-quality and portable font engine 31 | URL:=http://www.freetype.org/ 32 | DEPENDS:=+zlib +libbz2 33 | endef 34 | 35 | define Package/libfreetype/description 36 | The FreeType project is a team of volunteers who develop free, 37 | portable and high-quality software solutions for digital typography. 38 | They specifically target embedded systems and focus on bringing small, 39 | efficient and ubiquitous products. 40 | endef 41 | 42 | TARGET_CFLAGS += $(FPIC) 43 | 44 | CONFIGURE_ARGS += \ 45 | --enable-shared \ 46 | --enable-static \ 47 | 48 | define Build/Compile 49 | $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install 50 | endef 51 | 52 | define Build/InstallDev 53 | $(INSTALL_DIR) $(2)/bin 54 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/freetype-config $(2)/bin/ 55 | $(INSTALL_DIR) $(1)/usr/include 56 | $(CP) $(PKG_INSTALL_DIR)/usr/include/freetype2 $(1)/usr/include/ 57 | $(CP) $(PKG_INSTALL_DIR)/usr/include/ft2build.h $(1)/usr/include/ 58 | $(INSTALL_DIR) $(1)/usr/lib 59 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.{a,so*} $(1)/usr/lib/ 60 | $(INSTALL_DIR) $(1)/usr/lib/pkgconfig 61 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/freetype2.pc $(1)/usr/lib/pkgconfig/ 62 | 63 | $(SED) \ 64 | 's,^\(prefix\|exec_prefix\)=.*,\1="$(STAGING_DIR)/usr",g' \ 65 | $(2)/bin/freetype-config 66 | endef 67 | 68 | 69 | define Package/libfreetype/install 70 | $(INSTALL_DIR) $(1)/usr/lib 71 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.so.* $(1)/usr/lib/ 72 | endef 73 | 74 | $(eval $(call HostBuild)) 75 | $(eval $(call BuildPackage,libfreetype)) 76 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Printing packages for OpenWrt 2 | 3 | # This project is ARCHIVED! 4 | 5 | This is a [package feed] aiming at providing a complete printing stack 6 | for OpenWrt. 7 | 8 | Notably it has: 9 | - Ghostscript 9.06 10 | - Gutenprint 5.2.9 11 | - Cups 1.6.3 12 | - OpenPrinting's cups-filters 1.0.37 13 | - poppler 0.24.1 14 | - many other packages to make sure the ones above work... 15 | 16 | [package feed]: http://wiki.openwrt.org/doc/devel/feeds 17 | 18 | [timesys.com]: http://repository.timesys.com/buildsources/g/ghostscript/ 19 | 20 | ### To use this feed, 21 | 22 | - set up your router to use [external storage] for its root file 23 | system, as these packages require more than a 100 MB of space. 24 | 25 | [external storage]: http://wiki.openwrt.org/doc/howto/extroot 26 | 27 | - set up a [cross-compilation environment] 28 | [cross-compilation environment]: http://wiki.openwrt.org/doc/devel/crosscompile 29 | 30 | - add this line to your `feeds.conf` or `feeds.conf.default` 31 | 32 | ``` 33 | src-git printing git://github.com/FranciscoBorges/openwrt-printing-packages.git 34 | ``` 35 | 36 | - to compile everything in this feed you should use the script `setup-buildsystem.sh` or some variation of those commands. 37 | 38 | - copy compiled packages to your router (copy the whole directory as you need the files used to index the packages) 39 | 40 | ``` 41 | scp -r ./bin/$ARCH/packages root@openwrt.lan:/storage/printer/packages/ 42 | ``` 43 | 44 | - add local package source to the opkg configuration `/etc/opkg.conf` with 45 | 46 | ``` 47 | src/gz printing file:/storage/printer/packages 48 | ``` 49 | 50 | - see `opkg-install-printing-packages.sh` to see a suggestion of what to install. 51 | 52 | - tested against *Attitude Adjustment* (because that is what I have installed...). 53 | 54 | - Avahi is notified of printers added to Cups, and these will appear as *Air Printer*'s in iOS devices. 55 | 56 | ### Issues / Missing / TODO 57 | 58 | Caveat: Ghostscript lacks proper cross-compilation support. I used a 59 | patch taken from [timesys.com]. If your architecture is not there, 60 | compiling it just won't work for you. 61 | 62 | The alternative for those who can't compile Ghostscript is to use a 63 | different PDF backend, in this case Poppler. For instructions of how 64 | to do this open the tar-ball of the `cups-filters-*.tar.bz2` and check 65 | the section *1. Selection of the renderer: Ghostscript, Poppler, or 66 | Adobe Reader* of the `README`. 67 | -------------------------------------------------------------------------------- /utils/fontconfig/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2013 OpenWrt.org 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=fontconfig 11 | PKG_VERSION:=2.10.91 12 | PKG_RELEASE:=2 13 | 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 15 | PKG_SOURCE_URL:=http://fontconfig.org/release/ 16 | PKG_MD5SUM:=c795bb39fab3a656e5dff8bad6a199f6 17 | 18 | PKG_INSTALL:=1 19 | 20 | include $(INCLUDE_DIR)/package.mk 21 | 22 | define Package/fontconfig 23 | SECTION:=utils 24 | CATEGORY:=Utilities 25 | TITLE:=Fontconfig, configure and customize font access 26 | DEPENDS:=+libfreetype +libexpat +libpthread 27 | URL:=http://fontconfig.org 28 | SUBMENU:=Printing 29 | endef 30 | 31 | define Package/fontconfig/description 32 | The Fontconfig package contains a library and support programs used for 33 | configuring and customizing font access. 34 | endef 35 | 36 | CONFIGURE_ARGS+= --disable-docs 37 | 38 | define Package/fontconfig/install 39 | $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib $(1)/usr/share/fontconfig/conf.avail 40 | $(INSTALL_DIR) $(1)/etc/fonts/conf.d 41 | $(CP) $(PKG_INSTALL_DIR)/etc/fonts/fonts.conf $(1)/etc/fonts 42 | $(CP) $(PKG_INSTALL_DIR)/etc/fonts/conf.d/* $(1)/etc/fonts/conf.d 43 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ 44 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ 45 | $(CP) $(PKG_INSTALL_DIR)/usr/share/fontconfig/conf.avail/* $(1)/usr/share/fontconfig/conf.avail 46 | $(INSTALL_DIR) $(1)/etc/init.d 47 | $(INSTALL_BIN) ./files/fontconfig.init $(1)/etc/init.d/fontconfig 48 | endef 49 | 50 | define Package/fontconfig/postinst 51 | #!/bin/sh 52 | # check if we are on a real system 53 | if [ -z "$${IPKG_INSTROOT}" ]; then 54 | echo "Enabling rc.d symlink for fontconfig cache rebuild" 55 | /etc/init.d/fontconfig enable 56 | /usr/bin/fc-cache --force --verbose 57 | fi 58 | exit 0 59 | endef 60 | 61 | define Package/fontconfig/prerm 62 | #!/bin/sh 63 | # check if we are on a real system 64 | if [ -z "$${IPKG_INSTROOT}" ]; then 65 | echo "Removing rc.d symlink for fontconfig" 66 | /etc/init.d/fontconfig disable 67 | fi 68 | exit 0 69 | endef 70 | 71 | define Build/InstallDev 72 | $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib 73 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ 74 | $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib 75 | $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ 76 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib 77 | endef 78 | 79 | $(eval $(call BuildPackage,fontconfig)) 80 | -------------------------------------------------------------------------------- /net/cups/patches/301-airprint-support.patch: -------------------------------------------------------------------------------- 1 | Description: Patch to support Apple AirPrint (printing from iPhone, iPad, iPod Touch to a CUPS server) 2 | Author: Till Kamppeter 3 | Bug: https://bugs.launchpad.net/bugs/711779 4 | Bug: https://bugs.launchpad.net/bugs/1054495 5 | Bug-Debian: http://bugs.debian.org/700961 6 | Last-Update: 2013-02-20 7 | 8 | --- a/scheduler/dirsvc.c 9 | +++ b/scheduler/dirsvc.c 10 | @@ -622,6 +622,12 @@ 11 | keyvalue[count ][0] = "pdl"; 12 | keyvalue[count++][1] = p->pdl ? p->pdl : "application/postscript"; 13 | 14 | + /* iOS 6 does not accept this printer as AirPrint printer if there is 15 | + no URF txt record or "URF=none", "DM3" is the minimum needed found 16 | + by try and error */ 17 | + keyvalue[count ][0] = "URF"; 18 | + keyvalue[count++][1] = "DM3"; 19 | + 20 | if (get_auth_info_required(p, air_str, sizeof(air_str))) 21 | { 22 | keyvalue[count ][0] = "air"; 23 | --- a/conf/mime.convs.in 24 | +++ b/conf/mime.convs.in 25 | @@ -48,6 +48,9 @@ 26 | # PWG Raster filter for IPP Everywhere... 27 | application/vnd.cups-raster image/pwg-raster 100 rastertopwg 28 | 29 | +# Needed for printing from iOS (AirPrint) clients 30 | +image/urf application/pdf 100 - 31 | + 32 | ######################################################################## 33 | # 34 | # Raw filter... 35 | --- a/conf/mime.types 36 | +++ b/conf/mime.types 37 | @@ -110,6 +110,9 @@ 38 | image/x-bitmap bmp string(0,BM) + !printable(2,14) 39 | image/x-icon ico 40 | 41 | +# Needed for printing from iOS (AirPrint) clients 42 | +image/urf urf string(0,UNIRAST<00>) 43 | + 44 | ######################################################################## 45 | # 46 | # Text files... 47 | --- a/scheduler/printers.c 48 | +++ b/scheduler/printers.c 49 | @@ -3592,7 +3592,9 @@ 50 | } 51 | else if (!_cups_strcasecmp(type->super, "image")) 52 | { 53 | - if (!_cups_strcasecmp(type->type, "jpeg")) 54 | + if (!_cups_strcasecmp(type->type, "urf")) 55 | + strlcat(pdl, "image/urf,", sizeof(pdl)); 56 | + else if (!_cups_strcasecmp(type->type, "jpeg")) 57 | strlcat(pdl, "image/jpeg,", sizeof(pdl)); 58 | else if (!_cups_strcasecmp(type->type, "png")) 59 | strlcat(pdl, "image/png,", sizeof(pdl)); 60 | --- a/scheduler/conf.c 61 | +++ b/scheduler/conf.c 62 | @@ -746,7 +746,7 @@ 63 | DefaultShared = CUPS_DEFAULT_DEFAULT_SHARED; 64 | 65 | #if defined(HAVE_DNSSD) || defined(HAVE_AVAHI) 66 | - cupsdSetString(&DNSSDSubTypes, "_cups,_print"); 67 | + cupsdSetString(&DNSSDSubTypes, "_cups,_print,_universal"); 68 | #endif /* HAVE_DNSSD || HAVE_AVAHI */ 69 | 70 | cupsdSetString(&LPDConfigFile, CUPS_DEFAULT_LPD_CONFIG_FILE); 71 | -------------------------------------------------------------------------------- /utils/zsh/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2013 OpenWrt.org 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=zsh 11 | PKG_VERSION:=5.0.2 12 | PKG_RELEASE:=1 13 | 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 15 | PKG_SOURCE_URL:=@SF/zsh 16 | PKG_MD5SUM:=b8f2ad691acf58b3252225746480dcad 17 | 18 | PKG_INSTALL:=1 19 | 20 | include $(INCLUDE_DIR)/package.mk 21 | 22 | define Package/zsh 23 | SECTION:=utils 24 | CATEGORY:=Utilities 25 | TITLE:=The Z shell 26 | DEPENDS:=+libncurses +librt 27 | URL:=http://www.zsh.org/ 28 | endef 29 | 30 | define Package/zsh/description 31 | Zsh is a UNIX command interpreter (shell) usable as an interactive 32 | login shell and as a shell script command processor. Of the standard 33 | shells, zsh most closely resembles ksh but includes many enhancements. 34 | Zsh has command line editing, builtin spelling correction, programmable 35 | command completion, shell functions (with autoloading), a history 36 | mechanism, and a host of other features. 37 | endef 38 | 39 | define Build/Configure 40 | $(call Build/Configure/Default, \ 41 | --bindir=/bin \ 42 | --disable-etcdir \ 43 | --disable-gdbm \ 44 | --with-term-lib="ncurses" \ 45 | ) 46 | # Do not install these functions: 47 | $(SED) 's, Completion/AIX/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules 48 | $(SED) 's, Completion/BSD/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules 49 | $(SED) 's, Completion/Cygwin/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules 50 | $(SED) 's, Completion/Darwin/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules 51 | $(SED) 's, Completion/Debian/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules 52 | $(SED) 's, Completion/Mandriva/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules 53 | $(SED) 's, Completion/Redhat/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules 54 | $(SED) 's, Completion/Solaris/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules 55 | $(SED) 's, Completion/X/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules 56 | $(SED) 's, Completion/openSUSE/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules 57 | # After mucking with 'config.modules', one must call 58 | $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" prep 59 | endef 60 | 61 | define Package/zsh/postinst 62 | #!/bin/sh 63 | grep zsh $${IPKG_INSTROOT}/etc/shells || \ 64 | echo "/bin/zsh" >> $${IPKG_INSTROOT}/etc/shells 65 | endef 66 | 67 | define Package/zsh/install 68 | $(INSTALL_DIR) $(1)/bin 69 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/zsh $(1)/bin/ 70 | $(INSTALL_DIR) $(1)/usr/share/zsh/$(PKG_VERSION) 71 | $(CP) $(PKG_INSTALL_DIR)/usr/share/zsh/$(PKG_VERSION)/* $(1)/usr/share/zsh/$(PKG_VERSION)/ 72 | endef 73 | 74 | $(eval $(call BuildPackage,zsh)) 75 | -------------------------------------------------------------------------------- /libs/glib2/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2007-2012 OpenWrt.org 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=glib2 11 | PKG_VERSION:=2.34.3 12 | PKG_RELEASE:=1 13 | 14 | PKG_SOURCE:=glib-$(PKG_VERSION).tar.xz 15 | PKG_BUILD_DIR:=$(BUILD_DIR)/glib-$(PKG_VERSION) 16 | PKG_SOURCE_URL:=@GNOME/glib/2.34 17 | PKG_MD5SUM:=a4ca31e258273c3761e3de2edd607661 18 | 19 | PKG_BUILD_DEPENDS:=glib2/host libpthread zlib libintl libffi 20 | HOST_BUILD_DEPENDS:=libintl/host libiconv/host libffi/host 21 | PKG_INSTALL:=1 22 | 23 | HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/glib-$(PKG_VERSION) 24 | 25 | include $(INCLUDE_DIR)/host-build.mk 26 | include $(INCLUDE_DIR)/package.mk 27 | include $(INCLUDE_DIR)/nls.mk 28 | 29 | define Package/glib2 30 | SECTION:=libs 31 | CATEGORY:=Libraries 32 | DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS) +zlib +libpthread +libffi 33 | TITLE:=glib 2.0 34 | URL:=http://www.gtk.org/ 35 | endef 36 | 37 | define Package/glib2/description 38 | The GLib library of C routines 39 | endef 40 | 41 | define Build/Configure 42 | $(call Build/Configure/Default, \ 43 | --enable-shared \ 44 | --enable-static \ 45 | --enable-debug=no \ 46 | --disable-selinux \ 47 | --disable-fam \ 48 | $(if $(ICONV_FULL),--with-libiconv=gnu) \ 49 | , \ 50 | glib_cv_stack_grows=no \ 51 | glib_cv_uscore=no \ 52 | ac_cv_path_GLIB_GENMARSHAL=$(STAGING_DIR_HOST)/bin/glib-genmarshal \ 53 | ac_cv_func_mmap_fixed_mapped=yes \ 54 | ac_cv_func_posix_getpwuid_r=yes \ 55 | ac_cv_func_posix_getgrgid_r=yes \ 56 | ); 57 | endef 58 | 59 | define Build/InstallDev 60 | $(INSTALL_DIR) $(1)/usr/include 61 | $(CP) \ 62 | $(PKG_INSTALL_DIR)/usr/include/glib-2.0 \ 63 | $(1)/usr/include/ 64 | $(CP) \ 65 | $(PKG_INSTALL_DIR)/usr/lib/glib-2.0/include/*.h \ 66 | $(1)/usr/include/glib-2.0/ 67 | $(CP) \ 68 | $(PKG_INSTALL_DIR)/usr/include/gio-unix-2.0 \ 69 | $(1)/usr/include/ 70 | 71 | $(INSTALL_DIR) $(1)/usr/lib 72 | $(CP) \ 73 | $(PKG_INSTALL_DIR)/usr/lib/glib-2.0 \ 74 | $(1)/usr/lib/ 75 | 76 | $(CP) \ 77 | $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \ 78 | $(1)/usr/lib/ 79 | 80 | $(INSTALL_DIR) $(1)/usr/lib/pkgconfig 81 | $(INSTALL_DATA) \ 82 | $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \ 83 | $(1)/usr/lib/pkgconfig 84 | 85 | $(INSTALL_DIR) $(2)/share/aclocal/ 86 | $(INSTALL_DATA) \ 87 | $(PKG_INSTALL_DIR)/usr/share/aclocal/*.m4 \ 88 | $(2)/share/aclocal/ 89 | endef 90 | 91 | define Package/glib2/install 92 | $(INSTALL_DIR) $(1)/usr/lib 93 | $(CP) \ 94 | $(PKG_INSTALL_DIR)/usr/lib/*.so* \ 95 | $(1)/usr/lib/ 96 | endef 97 | 98 | $(eval $(call HostBuild)) 99 | $(eval $(call BuildPackage,glib2)) 100 | -------------------------------------------------------------------------------- /net/openprinting-cups-filters/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # This is free software, licensed under the GNU General Public License v2. 3 | # See /LICENSE for more information. 4 | # 5 | 6 | include $(TOPDIR)/rules.mk 7 | 8 | PKG_NAME:=openprinting-cups-filters 9 | PKG_VERSION:=1.0.37 10 | PKG_RELEASE:=2 11 | 12 | PKG_SOURCE:=cups-filters-$(PKG_VERSION).tar.xz 13 | PKG_SOURCE_URL:=http://www.openprinting.org/download/cups-filters/ 14 | PKG_MD5SUM:=210e5cb70e9474b91dd2ab4291a5e48e 15 | PKG_BUILD_DIR:=$(BUILD_DIR)/cups-filters-$(PKG_VERSION) 16 | 17 | PKG_INSTALL:=1 18 | 19 | include $(INCLUDE_DIR)/package.mk 20 | 21 | EXTRA_CFLAGS+=-DHAVE_CPP_POPPLER_VERSION_H 22 | 23 | define Package/openprinting-cups-filters 24 | SECTION:=Net 25 | CATEGORY:=Network 26 | TITLE:=OpenPrinting CUPS filters 27 | DEPENDS:=+cups +libcupsimage +fontconfig +libijs +libtiff +libjpeg +libpng +poppler +qpdf +glib2 28 | URL:=http://www.openprinting.org 29 | SUBMENU:=Printing 30 | endef 31 | 32 | define Package/openprinting-cups-filters/description 33 | CUPS filters maintained by OpenPrinting. 34 | The CUPS Filters package contains backends, filters and other software that was once part of the core CUPS distribution but is no longer maintained by Apple Inc. 35 | endef 36 | 37 | define Build/Configure 38 | $(call Build/Configure/Default, \ 39 | --enable-imagefilters \ 40 | --with-pdftops=gs \ 41 | --with-gs-path=/usr/bin/gs \ 42 | --with-pdftops-path=/usr/bin/gs \ 43 | --disable-gnutls \ 44 | --disable-openssl \ 45 | --disable-cdsassl \ 46 | --disable-ssl \ 47 | --disable-gssapi \ 48 | --disable-avahi \ 49 | ) 50 | endef 51 | 52 | define Package/openprinting-cups-filters/install 53 | $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/ 54 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ 55 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ 56 | $(CP) -r $(PKG_INSTALL_DIR)/usr/lib/cups $(1)/usr/lib/ 57 | $(INSTALL_DIR) $(1)/usr/share/cups $(1)/usr/share/ppd/cupsfilters 58 | $(CP) -r $(PKG_INSTALL_DIR)/usr/share/cups/* $(1)/usr/share/cups 59 | $(CP) -r $(PKG_INSTALL_DIR)/usr/share/ppd/cupsfilters/* $(1)/usr/share/ppd/cupsfilters 60 | endef 61 | 62 | define Build/InstallDev 63 | $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib 64 | $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ 65 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib 66 | endef 67 | 68 | define Package/preinst 69 | #!/bin/sh 70 | # Be on the safe side: get rid of any files from CUPS 1.5.X filters. 71 | # See OpenPrinting's cups-filters-1.0.X/INSTALL 72 | rm /usr/lib/cups/backend/serial 73 | rm /usr/lib/cups/backend/parallel 74 | rm /usr/lib/cups/filter/bannertops 75 | rm /usr/lib/cups/filter/commandtoescpx 76 | rm /usr/lib/cups/filter/commandtopclx 77 | rm /usr/lib/cups/filter/imagetops 78 | rm /usr/lib/cups/filter/imagetoraster 79 | rm /usr/lib/cups/filter/pdftops 80 | rm /usr/lib/cups/filter/rastertoescpx 81 | rm /usr/lib/cups/filter/rastertopclx 82 | rm /usr/lib/cups/filter/texttops 83 | rm /usr/share/cups/banners/* 84 | rm /usr/share/cups/data/testprint 85 | rm /usr/share/cups/data/psglyphs 86 | rm /usr/share/cups/fonts/* 87 | endef 88 | 89 | define Package/postinst 90 | #!/bin/sh 91 | /etc/init.d/cupsd stop 92 | /etc/init.d/cupsd start 93 | endef 94 | 95 | $(eval $(call BuildPackage,openprinting-cups-filters)) 96 | -------------------------------------------------------------------------------- /net/gutenprint/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2013 OpenWrt.org 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=gutenprint 11 | PKG_VERSION:=5.2.9 12 | PKG_RELEASE:=1 13 | 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 15 | PKG_SOURCE_URL:=@SF/gimp-print 16 | PKG_MD5SUM:=aefbec27b96dd404d9ac9811e17d58ce 17 | 18 | PKG_BUILD_DEPENDS:=gutenprint-cups/host cups libiconv 19 | HOST_BUILD_DEPENDS:=libiconv/host 20 | PKG_INSTALL:=1 21 | 22 | include $(INCLUDE_DIR)/host-build.mk 23 | include $(INCLUDE_DIR)/package.mk 24 | include $(INCLUDE_DIR)/nls.mk 25 | 26 | define Package/gutenprint-cups 27 | SECTION:=net 28 | CATEGORY:=Network 29 | TITLE:=gutenprint-cups -- Gutenprint CUPS drivers 30 | # XXX FIXME perl is required by cups-genppdupdate, but it needs more libs 31 | DEPENDS:=+cups +libcupsimage +libiconv 32 | URL:=http://gimp-print.sourceforge.net/ 33 | SUBMENU:=Printing 34 | endef 35 | 36 | # define Package/gutenprint-foomatic 37 | # SECTION:=net 38 | # CATEGORY:=Network 39 | # TITLE:=gutenprint-foomatic -- Gutenprint Foomatic drivers 40 | # # perl is required by cups-genppdupdate 41 | # DEPENDS:=+ghostscript +libiconv 42 | # URL:=http://gimp-print.sourceforge.net/ 43 | # SUBMENU:=Printing 44 | # endef 45 | 46 | define Package/gutenprint-cups/description 47 | Gutenprint CUPS drivers for a wide range of Canon, Epson, HP and 48 | compatible printers. 49 | endef 50 | 51 | CONFIGURE_ARGS+= \ 52 | --disable-nls \ 53 | --disable-test \ 54 | --without-doc \ 55 | --without-readline \ 56 | --without-foomatic \ 57 | --without-foomatic3 \ 58 | --enable-escputil=no \ 59 | --enable-test=no \ 60 | --disable-translated-cups-ppds \ 61 | --disable-globalized-cups-ppds \ 62 | --enable-simplified-cups-ppds \ 63 | --bindir=/usr/bin \ 64 | --sbindir=/usr/bin \ 65 | --prefix=/usr \ 66 | --exec-prefix=/usr 67 | 68 | define Build/Compile 69 | # Replace the cross-compiled "extract-string" by a shell-script that 70 | # runs the host's own compiled version (gutenprint needs to run this) 71 | (cd $(PKG_BUILD_DIR) && $(MAKE) -C src/xml extract-strings && \ 72 | $(RM) src/xml/extract-strings && \ 73 | echo '#!/bin/sh' > src/xml/extract-strings && \ 74 | echo 'exec $(HOST_BUILD_DIR)/src/xml/extract-strings "$$$$@" ' \ 75 | >> src/xml/extract-strings && chmod +x src/xml/extract-strings && cp src/xml/extract-strings /tmp/) 76 | $(call Build/Compile/Default) 77 | endef 78 | 79 | define Package/gutenprint-cups/install 80 | $(INSTALL_DIR) $(1)/usr/sbin $(1)/usr/bin 81 | # XXX Do not install cups-genppdupdate, as it requires Perl + some perl libs 82 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/cups-genppd.[0-9]*.[0-9]* $(1)/usr/sbin/ 83 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cups-calibrate $(1)/usr/bin/ 84 | 85 | $(INSTALL_DIR) $(1)/usr/lib/cups/driver $(1)/usr/lib/cups/filter 86 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/cups/driver/gutenprint.* $(1)/usr/lib/cups/driver 87 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/cups/filter/* $(1)/usr/lib/cups/filter 88 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libgutenprint.* $(1)/usr/lib 89 | $(INSTALL_DIR) $(1)/usr/share/cups/mime 90 | $(CP) $(PKG_INSTALL_DIR)/etc/cups/command.types $(1)/usr/share/cups/mime 91 | $(INSTALL_DIR) $(1)/usr/share/gutenprint 92 | $(CP) $(PKG_INSTALL_DIR)/usr/share/gutenprint/[0-9]*.[0-9]* $(1)/usr/share/gutenprint 93 | endef 94 | 95 | define Host/Compile 96 | $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR)/src/xml $(HOST_MAKE_FLAGS) extract-strings 97 | endef 98 | 99 | define Host/Install 100 | endef 101 | 102 | $(eval $(call HostBuild)) 103 | $(eval $(call BuildPackage,gutenprint-cups)) 104 | -------------------------------------------------------------------------------- /net/ghostscript/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2013 OpenWrt.org 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=ghostscript 11 | PKG_VERSION:=9.06 12 | PKG_RELEASE:=2 13 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 14 | PKG_SOURCE_URL:=http://downloads.ghostscript.com/public/$(PKG-SOURCE) 15 | PKG_MD5SUM:=153ddb0622cb155d2f600146f1e28d84 16 | 17 | PKG_BUILD_DEPENDS:=ghostscript/host 18 | PKG_INSTALL:=1 19 | 20 | # During its build Ghostscript needs to run some binaries of its 21 | # own. Thus the 'host-build' 22 | include $(INCLUDE_DIR)/host-build.mk 23 | include $(INCLUDE_DIR)/package.mk 24 | 25 | define Package/ghostscript 26 | SECTION:=net 27 | CATEGORY:=Network 28 | TITLE:=ghostscript 29 | DEPENDS:=+cups +libcupsimage +libfreetype +fontconfig +libtiff +libjpeg +libpng +libexpat +lcms2 +zlib +ghostscript-fonts-std 30 | SUBMENU:=Printing 31 | endef 32 | 33 | define Package/ghostscript/description 34 | Ghostscript, an interpreter for the PostScript language and for PDF. 35 | endef 36 | 37 | define Build/Configure 38 | (cd $(PKG_BUILD_DIR) && $(RM) -r expat jasper freetype lcms2 lcms libpng tiff zlib) 39 | $(call Build/Configure/Default, \ 40 | --disable-gtk \ 41 | --without-libidn \ 42 | --without-x \ 43 | --without-jasper \ 44 | --without-jbig2dec \ 45 | --with-install-cups \ 46 | --with-fontpath /usr/share/fonts/ghostscript/fonts/:/usr/share/ghostscript/9.06/Resource/Font/:/usr/share/fonts/default/ghostscript/:/usr/share/fonts/default/TrueType/:/usr/share/fonts/default/Type1:/usr/share/cups/fonts/:/usr/share/fonts/:/usr/share/fonts/ubuntu/:/usr/share/fonts/truetype/liberation/ \ 47 | --with-system-libtiff \ 48 | --with-cups-serverbin="/usr/lib/cups" \ 49 | --with-cups-serverroot="/etc/cups" \ 50 | --with-cups-datadir="/usr/share/cups") 51 | endef 52 | 53 | define Build/Compile 54 | # base/unix-aux.mak is patched, and now we replace these fixed strings by the actual paths. 55 | # PS. doing all in sed would be painful because the commands would need too much escaping. 56 | $(SED) 's,OPENWRT_BASE_BUILD_PATH,$(HOST_BUILD_DIR),g' $(PKG_BUILD_DIR)/base/unix-aux.mak 57 | $(SED) 's,OPENWRT_PGK_BUILD_PATH,$(PKG_BUILD_DIR),g' $(PKG_BUILD_DIR)/base/unix-aux.mak 58 | $(call Build/Compile/Default, cross_prepare) 59 | $(call Build/Compile/Default) 60 | endef 61 | 62 | # Host build should also use system's zlib 63 | define Host/Configure 64 | (cd $(HOST_BUILD_DIR) && $(RM) -r zlib) 65 | $(call Host/Configure/Default, \ 66 | --without-x \ 67 | --without-jasper \ 68 | --without-jbig2dec \ 69 | --without-pdftoraster \ 70 | --without-libpaper \ 71 | --disable-gtk \ 72 | --without-libidn) 73 | endef 74 | 75 | # Patches cannot be applied to the host build 76 | define Host/Patch 77 | endef 78 | 79 | # No need to install or patch HOST 80 | define Host/Install 81 | endef 82 | 83 | define Package/ghostscript/install 84 | $(INSTALL_DIR) $(1)/usr/bin 85 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ 86 | #-------------------------------------------------------------- 87 | # Unlike what 88 | # http://ghostscript.com/doc/9.06/Use.htm#Finding_files states 89 | # GS is /not/ taking the first dir of GS_LIB_DEFAULT (perhaps 90 | # because it does not exist in my system?). The solution in 91 | # place is to replace 'gs' by a script that sets GS_LIB 92 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gs $(1)/usr/bin/gs.orig 93 | $(RM) $(1)/usr/bin/gs 94 | $(CP) ./files/gs $(1)/usr/bin/ 95 | #-------------------------------------------------------------- 96 | # $(INSTALL_DIR) $(1)/usr/lib/cups/filter 97 | # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/cups/filter/* $(1)/usr/lib/cups/filter 98 | $(INSTALL_DIR) $(1)/usr/share/cups/model 99 | $(CP) $(PKG_INSTALL_DIR)/usr/share/cups/model/* $(1)/usr/share/cups/model 100 | $(INSTALL_DIR) $(1)/usr/share/ghostscript/$(PKG_VERSION)/lib 101 | $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/ghostscript/$(PKG_VERSION)/lib/* \ 102 | $(1)/usr/share/ghostscript/$(PKG_VERSION)/lib 103 | $(CP) -r $(PKG_BUILD_DIR)/Resource $(1)/usr/share/ghostscript/$(PKG_VERSION)/ 104 | $(CP) -r $(PKG_BUILD_DIR)/iccprofiles $(1)/usr/share/ghostscript/$(PKG_VERSION)/ 105 | # $(INSTALL_DIR) $(1)/usr/share/ghostscript/$(PKG_VERSION)/examples/cjk 106 | $(CP) -r $(PKG_INSTALL_DIR)/usr/share/ghostscript/$(PKG_VERSION)/examples \ 107 | $(1)/usr/share/ghostscript/$(PKG_VERSION)/examples 108 | $(INSTALL_DIR) $(1)/etc/cups 109 | $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/cups/gstoraster.convs $(1)/etc/cups 110 | endef 111 | 112 | $(eval $(call HostBuild)) 113 | $(eval $(call BuildPackage,ghostscript)) 114 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5 | 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Library General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License 307 | along with this program; if not, write to the Free Software 308 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 309 | 310 | 311 | Also add information on how to contact you by electronic and paper mail. 312 | 313 | If the program is interactive, make it output a short notice like this 314 | when it starts in an interactive mode: 315 | 316 | Gnomovision version 69, Copyright (C) year name of author 317 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 318 | This is free software, and you are welcome to redistribute it 319 | under certain conditions; type `show c' for details. 320 | 321 | The hypothetical commands `show w' and `show c' should show the appropriate 322 | parts of the General Public License. Of course, the commands you use may 323 | be called something other than `show w' and `show c'; they could even be 324 | mouse-clicks or menu items--whatever suits your program. 325 | 326 | You should also get your employer (if you work as a programmer) or your 327 | school, if any, to sign a "copyright disclaimer" for the program, if 328 | necessary. Here is a sample; alter the names: 329 | 330 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 331 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 332 | 333 | , 1 April 1989 334 | Ty Coon, President of Vice 335 | 336 | This General Public License does not permit incorporating your program into 337 | proprietary programs. If your program is a subroutine library, you may 338 | consider it more useful to permit linking proprietary applications with the 339 | library. If this is what you want to do, use the GNU Library General 340 | Public License instead of this License. 341 | -------------------------------------------------------------------------------- /net/cups/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2012 OpenWrt.org 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=cups 11 | PKG_VERSION:=1.6.3 12 | PKG_RELEASE:=4 13 | 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-source.tar.bz2 15 | PKG_SOURCE_URL:= \ 16 | http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$(PKG_VERSION) \ 17 | ftp://ftp.easysw.com/pub/cups/$(PKG_VERSION) \ 18 | ftp://ftp3.easysw.com/pub/cups/$(PKG_VERSION) \ 19 | http://www.cups.org/software/$(PKG_VERSION) 20 | PKG_MD5SUM:=946a2d8ad1aec6beced312fce18543da 21 | 22 | TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib 23 | 24 | include $(INCLUDE_DIR)/package.mk 25 | 26 | define Package/cups/Default 27 | URL:=http://www.cups.org/ 28 | SUBMENU:=Printing 29 | endef 30 | 31 | define Package/cups 32 | $(call Package/cups/Default) 33 | SECTION:=net 34 | CATEGORY:=Network 35 | DEPENDS:=+libcups +libcupsmime +libcupscgi +libcupsppdc +libusb-1.0 +libavahi-dbus-support +libavahi-client +libdbus +openslp +avahi-autoipd +avahi-dnsconfd 36 | TITLE:=Common UNIX Printing System (daemon) 37 | endef 38 | 39 | define Package/cups/description 40 | Common UNIX Printing System (daemon) 41 | endef 42 | 43 | define Package/cups/conffiles 44 | /etc/cups/classes.conf 45 | /etc/cups/cupsd.conf 46 | /etc/cups/printers.conf 47 | endef 48 | 49 | define Package/cups-bsd 50 | $(call Package/cups/Default) 51 | SECTION:=net 52 | CATEGORY:=Network 53 | DEPENDS:=+libcups 54 | TITLE:=Common UNIX Printing System - BSD commands (old) 55 | endef 56 | 57 | define Package/cups-bsd/description 58 | Common UNIX Printing System - BSD commands (old) 59 | endef 60 | 61 | define Package/cups-client 62 | $(call Package/cups/Default) 63 | SECTION:=net 64 | CATEGORY:=Network 65 | DEPENDS:=+libcups +libcupsimage +libcupsmime 66 | TITLE:=Common UNIX Printing System - Client commands 67 | endef 68 | 69 | define Package/cups-client/conffiles 70 | /etc/cups/client.conf 71 | endef 72 | 73 | define Package/cups-client/description 74 | Common UNIX Printing System - Client commands 75 | endef 76 | 77 | # define Package/cups-filters 78 | # $(call Package/cups/Default) 79 | # SECTION:=net 80 | # CATEGORY:=Network 81 | # DEPENDS:=+libcupsimage 82 | # TITLE:=Common UNIX Printing System - Filter 83 | # endef 84 | 85 | # define Package/cups-filters/description 86 | # Common UNIX Printing System - Filter 87 | # endef 88 | 89 | define Package/cups-ppdc 90 | $(call Package/cups/Default) 91 | SECTION:=net 92 | CATEGORY:=Network 93 | DEPENDS:=+libcupsppdc 94 | TITLE:=Common UNIX Printing System - PPDC utils 95 | endef 96 | 97 | define Package/cups-ppdc/description 98 | Common UNIX Printing System - PPDC utils 99 | endef 100 | 101 | define Package/libcups 102 | $(call Package/cups/Default) 103 | SECTION:=libs 104 | CATEGORY:=Libraries 105 | DEPENDS:=+zlib +libpthread +libpng +libjpeg +libavahi-client +libavahi 106 | TITLE:=Common UNIX Printing System - Core library 107 | endef 108 | 109 | define Package/libcups/description 110 | Common UNIX Printing System - Core library 111 | endef 112 | 113 | define Package/libcupscgi 114 | $(call Package/cups/Default) 115 | SECTION:=libs 116 | CATEGORY:=Libraries 117 | DEPENDS:=+libcups 118 | TITLE:=Common UNIX Printing System - CGI library 119 | endef 120 | 121 | define Package/libcupscgi/description 122 | Common UNIX Printing System - CGI library 123 | endef 124 | 125 | define Package/libcupsimage 126 | $(call Package/cups/Default) 127 | SECTION:=libs 128 | CATEGORY:=Libraries 129 | DEPENDS:=+libcups 130 | TITLE:=Common UNIX Printing System - Image library 131 | endef 132 | 133 | define Package/libcupsimage/description 134 | Common UNIX Printing System - Image library 135 | endef 136 | 137 | define Package/libcupsmime 138 | $(call Package/cups/Default) 139 | SECTION:=libs 140 | CATEGORY:=Libraries 141 | DEPENDS:=+libcups 142 | TITLE:=Common UNIX Printing System - MIME library 143 | endef 144 | 145 | define Package/libcupsmime/description 146 | Common UNIX Printing System - MIME library 147 | endef 148 | 149 | define Package/libcupsppdc 150 | $(call Package/cups/Default) 151 | SECTION:=libs 152 | CATEGORY:=Libraries 153 | DEPENDS:=+libcups +libstdcpp 154 | TITLE:=Common UNIX Printing System - PPDC library 155 | endef 156 | 157 | define Package/libcupsppdc/description 158 | Common UNIX Printing System - PPDC library 159 | endef 160 | 161 | # define Package/cups-locale-de 162 | # $(call Package/cups/Default) 163 | # SECTION:=net 164 | # CATEGORY:=Network 165 | # TITLE:=Common UNIX Printing System - Locale de 166 | # endef 167 | 168 | # define Package/cups-locale-de/description 169 | # Common UNIX Printing System - Locale de 170 | # endef 171 | 172 | # define Package/cups-locale-nl 173 | # $(call Package/cups/Default) 174 | # SECTION:=net 175 | # CATEGORY:=Network 176 | # TITLE:=Common UNIX Printing System - Locale nl 177 | # endef 178 | 179 | # define Package/cups-locale-nl/description 180 | # Common UNIX Printing System - Locale nl 181 | # endef 182 | 183 | # define Package/cups-locale-hu 184 | # $(call Package/cups/Default) 185 | # SECTION:=net 186 | # CATEGORY:=Network 187 | # TITLE:=Common UNIX Printing System - Locale hu 188 | # endef 189 | 190 | # define Package/cups-locale-hu/description 191 | # Common UNIX Printing System - Locale hu 192 | # endef 193 | 194 | # define Package/cups-locale-pt 195 | # $(call Package/cups/Default) 196 | # SECTION:=net 197 | # CATEGORY:=Network 198 | # TITLE:=Common UNIX Printing System - Locale pt 199 | # endef 200 | 201 | # define Package/cups-locale-pt/description 202 | # Common UNIX Printing System - Locale pt 203 | # endef 204 | 205 | # define Package/cups-locale-pt_BR 206 | # $(call Package/cups/Default) 207 | # SECTION:=net 208 | # CATEGORY:=Network 209 | # TITLE:=Common UNIX Printing System - Locale pt_BR 210 | # endef 211 | 212 | # define Package/cups-locale-pt_BR/description 213 | # Common UNIX Printing System - Locale pt_BR 214 | # endef 215 | 216 | # define Package/cups-locale-fi 217 | # $(call Package/cups/Default) 218 | # SECTION:=net 219 | # CATEGORY:=Network 220 | # TITLE:=Common UNIX Printing System - Locale fi 221 | # endef 222 | 223 | # define Package/cups-locale-fi/description 224 | # Common UNIX Printing System - Locale fi 225 | # endef 226 | 227 | # define Package/cups-locale-sv 228 | # $(call Package/cups/Default) 229 | # SECTION:=net 230 | # CATEGORY:=Network 231 | # TITLE:=Common UNIX Printing System - Locale sv 232 | # endef 233 | 234 | # define Package/cups-locale-sv/description 235 | # Common UNIX Printing System - Locale sv 236 | # endef 237 | 238 | # define Package/cups-locale-da 239 | # $(call Package/cups/Default) 240 | # SECTION:=net 241 | # CATEGORY:=Network 242 | # TITLE:=Common UNIX Printing System - Locale da 243 | # endef 244 | 245 | # define Package/cups-locale-da/description 246 | # Common UNIX Printing System - Locale da 247 | # endef 248 | 249 | # define Package/cups-locale-ko 250 | # $(call Package/cups/Default) 251 | # SECTION:=net 252 | # CATEGORY:=Network 253 | # TITLE:=Common UNIX Printing System - Locale ko 254 | # endef 255 | 256 | # define Package/cups-locale-ko/description 257 | # Common UNIX Printing System - Locale ko 258 | # endef 259 | 260 | # define Package/cups-locale-zh 261 | # $(call Package/cups/Default) 262 | # SECTION:=net 263 | # CATEGORY:=Network 264 | # TITLE:=Common UNIX Printing System - Locale zh 265 | # endef 266 | 267 | # define Package/cups-locale-zh/description 268 | # Common UNIX Printing System - Locale zh 269 | # endef 270 | 271 | # define Package/cups-locale-ja 272 | # $(call Package/cups/Default) 273 | # SECTION:=net 274 | # CATEGORY:=Network 275 | # TITLE:=Common UNIX Printing System - Locale ja 276 | # endef 277 | 278 | # define Package/cups-locale-ja/description 279 | # Common UNIX Printing System - Locale ja 280 | # endef 281 | 282 | # define Package/cups-locale-es 283 | # $(call Package/cups/Default) 284 | # SECTION:=net 285 | # CATEGORY:=Network 286 | # TITLE:=Common UNIX Printing System - Locale es 287 | # endef 288 | 289 | # define Package/cups-locale-es/description 290 | # Common UNIX Printing System - Locale es 291 | # endef 292 | 293 | # define Package/cups-locale-zh_TW 294 | # $(call Package/cups/Default) 295 | # SECTION:=net 296 | # CATEGORY:=Network 297 | # TITLE:=Common UNIX Printing System - Locale zh_TW 298 | # endef 299 | 300 | # define Package/cups-locale-zh_TW/description 301 | # Common UNIX Printing System - Locale zh_TW 302 | # endef 303 | 304 | # define Package/cups-locale-pl 305 | # $(call Package/cups/Default) 306 | # SECTION:=net 307 | # CATEGORY:=Network 308 | # TITLE:=Common UNIX Printing System - Locale pl 309 | # endef 310 | 311 | # define Package/cups-locale-pl/description 312 | # Common UNIX Printing System - Locale pl 313 | # endef 314 | 315 | # define Package/cups-locale-no 316 | # $(call Package/cups/Default) 317 | # SECTION:=net 318 | # CATEGORY:=Network 319 | # TITLE:=Common UNIX Printing System - Locale no 320 | # endef 321 | 322 | # define Package/cups-locale-no/description 323 | # Common UNIX Printing System - Locale no 324 | # endef 325 | 326 | # define Package/cups-locale-ru 327 | # $(call Package/cups/Default) 328 | # SECTION:=net 329 | # CATEGORY:=Network 330 | # TITLE:=Common UNIX Printing System - Locale ru 331 | # endef 332 | 333 | # define Package/cups-locale-ru/description 334 | # Common UNIX Printing System - Locale ru 335 | # endef 336 | 337 | # define Package/cups-locale-eu 338 | # $(call Package/cups/Default) 339 | # SECTION:=net 340 | # CATEGORY:=Network 341 | # TITLE:=Common UNIX Printing System - Locale eu 342 | # endef 343 | 344 | # define Package/cups-locale-eu/description 345 | # Common UNIX Printing System - Locale eu 346 | # endef 347 | 348 | # define Package/cups-locale-fr 349 | # $(call Package/cups/Default) 350 | # SECTION:=net 351 | # CATEGORY:=Network 352 | # TITLE:=Common UNIX Printing System - Locale fr 353 | # endef 354 | 355 | # define Package/cups-locale-fr/description 356 | # Common UNIX Printing System - Locale fr 357 | # endef 358 | 359 | # define Package/cups-locale-it 360 | # $(call Package/cups/Default) 361 | # SECTION:=net 362 | # CATEGORY:=Network 363 | # TITLE:=Common UNIX Printing System - Locale it 364 | # endef 365 | 366 | # define Package/cups-locale-it/description 367 | # Common UNIX Printing System - Locale it 368 | # endef 369 | 370 | # define Package/cups-locale-id 371 | # $(call Package/cups/Default) 372 | # SECTION:=net 373 | # CATEGORY:=Network 374 | # TITLE:=Common UNIX Printing System - Locale id 375 | # endef 376 | 377 | # define Package/cups-locale-id/description 378 | # Common UNIX Printing System - Locale id 379 | # endef 380 | 381 | define Build/Configure 382 | $(call Build/Configure/Default, \ 383 | --with-cups-user="nobody" \ 384 | --with-cups-group="nogroup" \ 385 | --with-system-groups="root" \ 386 | --with-local_protocols='dnssd' \ 387 | --enable-default-shared \ 388 | --without-perl \ 389 | --without-python \ 390 | --without-php \ 391 | --enable-shared \ 392 | --enable-image \ 393 | --enable-libusb \ 394 | --enable-dbus \ 395 | --enable-avahi \ 396 | --disable-launchd \ 397 | --disable-ldap \ 398 | --disable-pam \ 399 | --enable-slp \ 400 | --disable-gnutls \ 401 | --disable-openssl \ 402 | --disable-cdsassl \ 403 | --disable-ssl \ 404 | --disable-gssapi \ 405 | --disable-tiff \ 406 | --with-pdftops=/usr/bin/gs, \ 407 | UNAME="Linux" \ 408 | LIBS="$(TARGET_LDFLAGS) -lz -lpng -ljpeg" \ 409 | ) 410 | endef 411 | 412 | define Build/Compile 413 | $(MAKE) -C $(PKG_BUILD_DIR) \ 414 | $(TARGET_CONFIGURE_OPTS) \ 415 | DSTROOT="$(PKG_INSTALL_DIR)" \ 416 | STRIP="/bin/true" \ 417 | all install 418 | # Comment out any mime.convs using CUPS' own filters. These 419 | # are deprecated by OpenPrinting's cups-filters package. Perl 420 | # command taken from cups-filters-1.0.X/INSTALL 421 | perl -p -i -e 's:^(.*\s+(pdftops|texttops|imagetops|bannertops|imagetoraster)\s*)$$$$:#\1:' $(PKG_INSTALL_DIR)/usr/share/cups/mime/mime.convs 422 | endef 423 | 424 | define Package/cups/install 425 | rm -rf $(1)/etc/cups 426 | $(INSTALL_DIR) $(1)/etc/cups 427 | $(CP) $(PKG_INSTALL_DIR)/etc/cups/* $(1)/etc/cups/ 428 | rm -rf $(1)/etc/cups/certs 429 | ln -sf /tmp $(1)/etc/cups/certs 430 | rm -f $(1)/usr/bin/cups-config 431 | $(INSTALL_DIR) $(1)/usr/lib/cups 432 | ### OpenPrinting cups-filters -------------------------------- 433 | rm -f $(PKG_INSTALL_DIR)/usr/lib/cups/backend/parallel 434 | rm -f $(PKG_INSTALL_DIR)/usr/lib/cups/backend/serial 435 | ###----------------------------------------------------------- 436 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/cups/backend $(1)/usr/lib/cups 437 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/cups/cgi-bin $(1)/usr/lib/cups 438 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/cups/daemon $(1)/usr/lib/cups 439 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/cups/driver $(1)/usr/lib/cups 440 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/cups/monitor $(1)/usr/lib/cups 441 | $(INSTALL_DIR) $(1)/usr/lib/cups/filter 442 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/cups/filter/{commandtops,pstops} \ 443 | $(PKG_INSTALL_DIR)/usr/lib/cups/filter/gziptoany \ 444 | $(1)/usr/lib/cups/filter 445 | $(INSTALL_DIR) $(1)/usr/share/cups 446 | #$(CP) $(PKG_INSTALL_DIR)/usr/share/cups/* $(1)/usr/share/cups 447 | $(INSTALL_DIR) $(1)/usr/share/cups/templates 448 | $(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/*.tmpl \ 449 | $(1)/usr/share/cups/templates/ 450 | $(INSTALL_DIR) $(1)/usr/share/cups/mime 451 | $(CP) $(PKG_INSTALL_DIR)/usr/share/cups/mime/* $(1)/usr/share/cups/mime/ 452 | ### Do not install any docs. 453 | ### Do install docs: cups web interface relies on them 454 | $(INSTALL_DIR) $(1)/usr/share/doc/cups 455 | $(CP) $(PKG_INSTALL_DIR)/usr/share/doc/cups/*.*html \ 456 | $(1)/usr/share/doc/cups/ 457 | $(CP) $(PKG_INSTALL_DIR)/usr/share/doc/cups/*.css \ 458 | $(1)/usr/share/doc/cups/ 459 | $(CP) $(PKG_INSTALL_DIR)/usr/share/doc/cups/*.txt \ 460 | $(1)/usr/share/doc/cups/ 461 | $(CP) $(PKG_INSTALL_DIR)/usr/share/doc/cups/images \ 462 | $(1)/usr/share/doc/cups/ 463 | $(INSTALL_DIR) $(1)/usr/sbin 464 | # overwrite default config with our own 465 | $(CP) ./files/etc/cups/* $(1)/etc/cups/ 466 | # install initscript with priority 60 467 | $(INSTALL_DIR) $(1)/etc/init.d 468 | $(INSTALL_BIN) ./files/cupsd.init $(1)/etc/init.d/cupsd 469 | $(INSTALL_BIN) \ 470 | $(PKG_INSTALL_DIR)/usr/sbin/{cupsctl,cupsd} \ 471 | $(1)/usr/sbin/ 472 | # needed for cups to find usb printers per http://wiki.openwrt.org/doc/howto/cups.server 473 | chmod 700 $(1)/usr/lib/cups/backend/usb 474 | endef 475 | 476 | define Package/cups-bsd/install 477 | $(INSTALL_DIR) $(1)/usr/bin 478 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{lprm,lpq,lpr} $(1)/usr/bin/ 479 | $(INSTALL_DIR) $(1)/usr/sbin 480 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/lpc $(1)/usr/sbin/ 481 | endef 482 | 483 | define Package/cups-client/install 484 | $(INSTALL_DIR) $(1)/usr/bin 485 | $(INSTALL_BIN) \ 486 | $(PKG_INSTALL_DIR)/usr/bin/{lp,cancel,cupstestppd,cupstestdsc} \ 487 | $(PKG_INSTALL_DIR)/usr/bin/{ipptool,lpoptions,lpstat,lppasswd} \ 488 | $(1)/usr/bin/ 489 | $(INSTALL_DIR) $(1)/usr/sbin 490 | $(INSTALL_BIN) \ 491 | $(PKG_INSTALL_DIR)/usr/sbin/{cupsaccept,cupsaddsmb,cupsfilter} \ 492 | $(PKG_INSTALL_DIR)/usr/sbin/{lpadmin,lpinfo,lpmove} \ 493 | $(1)/usr/sbin/ 494 | (cd $(1)/usr/sbin; ln -sf cupsaccept accept; ln -sf cupsaccept cupsenable; ln -sf cupsaccept cupsdisable; ln -sf cupsaccept reject; ln -sf cupsaccept cupsreject;) 495 | endef 496 | 497 | # define Package/cups-filters/install 498 | # $(INSTALL_DIR) $(1)/usr/lib/cups/filter 499 | # $(CP) $(PKG_INSTALL_DIR)/usr/lib/cups/filter/{bannertops,commandtoescpx,commandtopclx,imagetops,imagetoraster,pdftops,rastertoepson,rastertopwg,rastertohp,rastertoescpx,rastertopclx,rastertolabel,texttops} \ 500 | # $(1)/usr/lib/cups/filter 501 | # (cd $(1)/usr/lib/cups/filter; ln -sf rastertolabel rastertodymo;) 502 | # endef 503 | 504 | define Package/cups-ppdc/install 505 | $(INSTALL_DIR) $(1)/usr/bin 506 | $(INSTALL_BIN) \ 507 | $(PKG_INSTALL_DIR)/usr/bin/{ppdc,ppdhtml,ppdi,ppdmerge,ppdpo} \ 508 | $(1)/usr/bin/ 509 | endef 510 | 511 | define Package/libcups/install 512 | $(INSTALL_DIR) $(1)/usr/lib 513 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcups.so* $(1)/usr/lib/ 514 | endef 515 | 516 | define Package/libcupscgi/install 517 | $(INSTALL_DIR) $(1)/usr/lib 518 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcupscgi.so* $(1)/usr/lib/ 519 | endef 520 | 521 | define Package/libcupsimage/install 522 | $(INSTALL_DIR) $(1)/usr/lib 523 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcupsimage.so* $(1)/usr/lib/ 524 | endef 525 | 526 | define Package/libcupsmime/install 527 | $(INSTALL_DIR) $(1)/usr/lib 528 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcupsmime.so* $(1)/usr/lib/ 529 | endef 530 | 531 | define Package/libcupsppdc/install 532 | $(INSTALL_DIR) $(1)/usr/lib 533 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcupsppdc.so* $(1)/usr/lib/ 534 | endef 535 | 536 | # define Package/cups-locale-de/install 537 | # $(INSTALL_DIR) $(1)/usr/share/locale 538 | # $(INSTALL_DIR) $(1)/usr/share/cups/templates 539 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/de $(1)/usr/share/locale/ 540 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/de \ 541 | # $(1)/usr/share/cups/templates/ 542 | # endef 543 | 544 | # define Package/cups-locale-nl/install 545 | # $(INSTALL_DIR) $(1)/usr/share/locale 546 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/nl $(1)/usr/share/locale/ 547 | # endef 548 | 549 | # define Package/cups-locale-hu/install 550 | # $(INSTALL_DIR) $(1)/usr/share/locale 551 | # $(INSTALL_DIR) $(1)/usr/share/cups/templates 552 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/hu $(1)/usr/share/locale/ 553 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/hu \ 554 | # $(1)/usr/share/cups/templates/ 555 | # endef 556 | 557 | # define Package/cups-locale-pt/install 558 | # $(INSTALL_DIR) $(1)/usr/share/locale 559 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/pt $(1)/usr/share/locale/ 560 | # endef 561 | 562 | # define Package/cups-locale-pt_BR/install 563 | # $(INSTALL_DIR) $(1)/usr/share/locale 564 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/pt_BR $(1)/usr/share/locale/ 565 | # endef 566 | 567 | # define Package/cups-locale-fi/install 568 | # $(INSTALL_DIR) $(1)/usr/share/locale 569 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/fi $(1)/usr/share/locale/ 570 | # endef 571 | 572 | # define Package/cups-locale-sv/install 573 | # $(INSTALL_DIR) $(1)/usr/share/locale 574 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/sv $(1)/usr/share/locale/ 575 | # endef 576 | 577 | # define Package/cups-locale-da/install 578 | # $(INSTALL_DIR) $(1)/usr/share/locale 579 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/da $(1)/usr/share/locale/ 580 | # endef 581 | 582 | # define Package/cups-locale-ko/install 583 | # $(INSTALL_DIR) $(1)/usr/share/locale 584 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/ko $(1)/usr/share/locale/ 585 | # endef 586 | 587 | # define Package/cups-locale-zh/install 588 | # $(INSTALL_DIR) $(1)/usr/share/locale 589 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/zh $(1)/usr/share/locale/ 590 | # endef 591 | 592 | # define Package/cups-locale-ja/install 593 | # $(INSTALL_DIR) $(1)/usr/share/locale 594 | # $(INSTALL_DIR) $(1)/usr/share/cups/templates 595 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/ja $(1)/usr/share/locale/ 596 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/ja \ 597 | # $(1)/usr/share/cups/templates/ 598 | # endef 599 | 600 | # define Package/cups-locale-es/install 601 | # $(INSTALL_DIR) $(1)/usr/share/locale 602 | # $(INSTALL_DIR) $(1)/usr/share/cups/templates 603 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/es $(1)/usr/share/locale/ 604 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/es \ 605 | # $(1)/usr/share/cups/templates/ 606 | # endef 607 | 608 | # define Package/cups-locale-zh_TW/install 609 | # $(INSTALL_DIR) $(1)/usr/share/locale 610 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/zh_TW $(1)/usr/share/locale/ 611 | # endef 612 | 613 | # define Package/cups-locale-pl/install 614 | # $(INSTALL_DIR) $(1)/usr/share/locale 615 | # $(INSTALL_DIR) $(1)/usr/share/cups/templates 616 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/pl $(1)/usr/share/locale/ 617 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/pl \ 618 | # $(1)/usr/share/cups/templates/ 619 | # endef 620 | 621 | # define Package/cups-locale-no/install 622 | # $(INSTALL_DIR) $(1)/usr/share/locale 623 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/no $(1)/usr/share/locale/ 624 | # endef 625 | 626 | # define Package/cups-locale-ru/install 627 | # $(INSTALL_DIR) $(1)/usr/share/locale 628 | # $(INSTALL_DIR) $(1)/usr/share/cups/templates 629 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/ru $(1)/usr/share/locale/ 630 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/ru \ 631 | # $(1)/usr/share/cups/templates/ 632 | # endef 633 | 634 | # define Package/cups-locale-eu/install 635 | # $(INSTALL_DIR) $(1)/usr/share/locale 636 | # $(INSTALL_DIR) $(1)/usr/share/cups/templates 637 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/eu $(1)/usr/share/locale/ 638 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/eu \ 639 | # $(1)/usr/share/cups/templates/ 640 | # endef 641 | 642 | # define Package/cups-locale-fr/install 643 | # $(INSTALL_DIR) $(1)/usr/share/locale 644 | # $(INSTALL_DIR) $(1)/usr/share/cups/templates 645 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/fr $(1)/usr/share/locale/ 646 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/fr \ 647 | # $(1)/usr/share/cups/templates/ 648 | # endef 649 | 650 | # define Package/cups-locale-it/install 651 | # $(INSTALL_DIR) $(1)/usr/share/locale 652 | # $(INSTALL_DIR) $(1)/usr/share/cups/templates 653 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/it $(1)/usr/share/locale/ 654 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/it \ 655 | # $(1)/usr/share/cups/templates/ 656 | # endef 657 | 658 | # define Package/cups-locale-id/install 659 | # $(INSTALL_DIR) $(1)/usr/share/locale 660 | # $(INSTALL_DIR) $(1)/usr/share/cups/templates 661 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/locale/id $(1)/usr/share/locale/ 662 | # $(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/id \ 663 | # $(1)/usr/share/cups/templates/ 664 | # endef 665 | 666 | define Build/InstallDev 667 | $(INSTALL_DIR) $(2)/bin 668 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cups-config $(2)/bin/ 669 | $(INSTALL_DIR) $(1)/usr/include 670 | $(CP) $(PKG_INSTALL_DIR)/usr/include/cups $(1)/usr/include/ 671 | $(INSTALL_DIR) $(1)/usr/lib 672 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcups*.so* $(1)/usr/lib/ 673 | endef 674 | 675 | $(eval $(call BuildPackage,cups)) 676 | $(eval $(call BuildPackage,libcups)) 677 | $(eval $(call BuildPackage,libcupscgi)) 678 | $(eval $(call BuildPackage,libcupsimage)) 679 | $(eval $(call BuildPackage,libcupsmime)) 680 | $(eval $(call BuildPackage,libcupsppdc)) 681 | $(eval $(call BuildPackage,cups-bsd)) 682 | $(eval $(call BuildPackage,cups-client)) 683 | #$(eval $(call BuildPackage,cups-filters)) 684 | $(eval $(call BuildPackage,cups-ppdc)) 685 | # $(eval $(call BuildPackage,cups-locale-de)) 686 | # $(eval $(call BuildPackage,cups-locale-nl)) 687 | # $(eval $(call BuildPackage,cups-locale-hu)) 688 | # $(eval $(call BuildPackage,cups-locale-pt)) 689 | # $(eval $(call BuildPackage,cups-locale-pt_BR)) 690 | # $(eval $(call BuildPackage,cups-locale-fi)) 691 | # $(eval $(call BuildPackage,cups-locale-sv)) 692 | # $(eval $(call BuildPackage,cups-locale-da)) 693 | # $(eval $(call BuildPackage,cups-locale-ko)) 694 | # $(eval $(call BuildPackage,cups-locale-zh)) 695 | # $(eval $(call BuildPackage,cups-locale-ja)) 696 | # $(eval $(call BuildPackage,cups-locale-es)) 697 | # $(eval $(call BuildPackage,cups-locale-zh_TW)) 698 | # $(eval $(call BuildPackage,cups-locale-pl)) 699 | # $(eval $(call BuildPackage,cups-locale-no)) 700 | # $(eval $(call BuildPackage,cups-locale-ru)) 701 | # $(eval $(call BuildPackage,cups-locale-eu)) 702 | # $(eval $(call BuildPackage,cups-locale-fr)) 703 | # $(eval $(call BuildPackage,cups-locale-it)) 704 | # $(eval $(call BuildPackage,cups-locale-id)) 705 | -------------------------------------------------------------------------------- /net/ghostscript/patches/03-ghostscript-9.05-cross.patch: -------------------------------------------------------------------------------- 1 | diff -Naur ghostscript-9.05.orig/arm-arch.h ghostscript-9.05/arm-arch.h 2 | --- ghostscript-9.05.orig/arm-arch.h 1969-12-31 19:00:00.000000000 -0500 3 | +++ ghostscript-9.05/arm-arch.h 2012-02-13 13:08:44.000000000 -0500 4 | @@ -0,0 +1,41 @@ 5 | +/* Parameters derived from machine and compiler architecture. */ 6 | +/* This file is generated mechanically by genarch.c. */ 7 | + 8 | + /* ---------------- Scalar alignments ---------------- */ 9 | + 10 | +#define ARCH_ALIGN_SHORT_MOD 2 11 | +#define ARCH_ALIGN_INT_MOD 4 12 | +#define ARCH_ALIGN_LONG_MOD 4 13 | +#define ARCH_ALIGN_PTR_MOD 4 14 | +#define ARCH_ALIGN_FLOAT_MOD 4 15 | +#define ARCH_ALIGN_DOUBLE_MOD 8 16 | + 17 | + /* ---------------- Scalar sizes ---------------- */ 18 | + 19 | +#define ARCH_LOG2_SIZEOF_CHAR 0 20 | +#define ARCH_LOG2_SIZEOF_SHORT 1 21 | +#define ARCH_LOG2_SIZEOF_INT 2 22 | +#define ARCH_LOG2_SIZEOF_LONG 2 23 | +#define ARCH_LOG2_SIZEOF_LONG_LONG 3 24 | +#define ARCH_SIZEOF_GX_COLOR_INDEX 8 25 | +#define ARCH_SIZEOF_PTR 4 26 | +#define ARCH_SIZEOF_FLOAT 4 27 | +#define ARCH_SIZEOF_DOUBLE 8 28 | +#define ARCH_FLOAT_MANTISSA_BITS 24 29 | +#define ARCH_DOUBLE_MANTISSA_BITS 53 30 | + 31 | + /* ---------------- Unsigned max values ---------------- */ 32 | + 33 | +#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0) 34 | +#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0) 35 | +#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0) 36 | +#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0) 37 | + 38 | + /* ---------------- Miscellaneous ---------------- */ 39 | + 40 | +#define ARCH_IS_BIG_ENDIAN 0 41 | +#define ARCH_PTRS_ARE_SIGNED 0 42 | +#define ARCH_FLOATS_ARE_IEEE 1 43 | +#define ARCH_ARITH_RSHIFT 2 44 | +#define ARCH_DIV_NEG_POS_TRUNCATES 1 45 | + 46 | diff -Naur ghostscript-9.05.orig/armeb-arch.h ghostscript-9.05/armeb-arch.h 47 | --- ghostscript-9.05.orig/armeb-arch.h 1969-12-31 19:00:00.000000000 -0500 48 | +++ ghostscript-9.05/armeb-arch.h 2012-02-13 13:08:44.000000000 -0500 49 | @@ -0,0 +1,41 @@ 50 | +/* Parameters derived from machine and compiler architecture. */ 51 | +/* This file is generated mechanically by genarch.c. */ 52 | + 53 | + /* ---------------- Scalar alignments ---------------- */ 54 | + 55 | +#define ARCH_ALIGN_SHORT_MOD 2 56 | +#define ARCH_ALIGN_INT_MOD 4 57 | +#define ARCH_ALIGN_LONG_MOD 4 58 | +#define ARCH_ALIGN_PTR_MOD 4 59 | +#define ARCH_ALIGN_FLOAT_MOD 4 60 | +#define ARCH_ALIGN_DOUBLE_MOD 8 61 | + 62 | + /* ---------------- Scalar sizes ---------------- */ 63 | + 64 | +#define ARCH_LOG2_SIZEOF_CHAR 0 65 | +#define ARCH_LOG2_SIZEOF_SHORT 1 66 | +#define ARCH_LOG2_SIZEOF_INT 2 67 | +#define ARCH_LOG2_SIZEOF_LONG 2 68 | +#define ARCH_LOG2_SIZEOF_LONG_LONG 3 69 | +#define ARCH_SIZEOF_GX_COLOR_INDEX 8 70 | +#define ARCH_SIZEOF_PTR 4 71 | +#define ARCH_SIZEOF_FLOAT 4 72 | +#define ARCH_SIZEOF_DOUBLE 8 73 | +#define ARCH_FLOAT_MANTISSA_BITS 24 74 | +#define ARCH_DOUBLE_MANTISSA_BITS 53 75 | + 76 | + /* ---------------- Unsigned max values ---------------- */ 77 | + 78 | +#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0) 79 | +#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0) 80 | +#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0) 81 | +#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0) 82 | + 83 | + /* ---------------- Miscellaneous ---------------- */ 84 | + 85 | +#define ARCH_IS_BIG_ENDIAN 1 86 | +#define ARCH_PTRS_ARE_SIGNED 0 87 | +#define ARCH_FLOATS_ARE_IEEE 1 88 | +#define ARCH_ARITH_RSHIFT 2 89 | +#define ARCH_DIV_NEG_POS_TRUNCATES 1 90 | + 91 | diff -Naur ghostscript-9.05.orig/avr32-arch.h ghostscript-9.05/avr32-arch.h 92 | --- ghostscript-9.05.orig/avr32-arch.h 1969-12-31 19:00:00.000000000 -0500 93 | +++ ghostscript-9.05/avr32-arch.h 2012-02-13 13:08:44.000000000 -0500 94 | @@ -0,0 +1,41 @@ 95 | +/* Parameters derived from machine and compiler architecture. */ 96 | +/* This file is generated mechanically by genarch.c. */ 97 | + 98 | + /* ---------------- Scalar alignments ---------------- */ 99 | + 100 | +#define ARCH_ALIGN_SHORT_MOD 2 101 | +#define ARCH_ALIGN_INT_MOD 4 102 | +#define ARCH_ALIGN_LONG_MOD 4 103 | +#define ARCH_ALIGN_PTR_MOD 4 104 | +#define ARCH_ALIGN_FLOAT_MOD 4 105 | +#define ARCH_ALIGN_DOUBLE_MOD 8 106 | + 107 | + /* ---------------- Scalar sizes ---------------- */ 108 | + 109 | +#define ARCH_LOG2_SIZEOF_CHAR 0 110 | +#define ARCH_LOG2_SIZEOF_SHORT 1 111 | +#define ARCH_LOG2_SIZEOF_INT 2 112 | +#define ARCH_LOG2_SIZEOF_LONG 2 113 | +#define ARCH_LOG2_SIZEOF_LONG_LONG 3 114 | +#define ARCH_SIZEOF_GX_COLOR_INDEX 8 115 | +#define ARCH_SIZEOF_PTR 4 116 | +#define ARCH_SIZEOF_FLOAT 4 117 | +#define ARCH_SIZEOF_DOUBLE 8 118 | +#define ARCH_FLOAT_MANTISSA_BITS 24 119 | +#define ARCH_DOUBLE_MANTISSA_BITS 53 120 | + 121 | + /* ---------------- Unsigned max values ---------------- */ 122 | + 123 | +#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0) 124 | +#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0) 125 | +#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0) 126 | +#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0) 127 | + 128 | + /* ---------------- Miscellaneous ---------------- */ 129 | + 130 | +#define ARCH_IS_BIG_ENDIAN 1 131 | +#define ARCH_PTRS_ARE_SIGNED 0 132 | +#define ARCH_FLOATS_ARE_IEEE 1 133 | +#define ARCH_ARITH_RSHIFT 2 134 | +#define ARCH_DIV_NEG_POS_TRUNCATES 1 135 | + 136 | diff -Naur ghostscript-9.05.orig/base/cross.mak ghostscript-9.05/base/cross.mak 137 | --- ghostscript-9.05.orig/base/cross.mak 1969-12-31 19:00:00.000000000 -0500 138 | +++ ghostscript-9.05/base/cross.mak 2012-02-13 13:08:44.000000000 -0500 139 | @@ -0,0 +1,5 @@ 140 | + 141 | +cross_prepare: 142 | + mkdir -p $(GLGEN) 143 | + cp -f $(ARCH)-arch.h $(GLGEN)/arch.h 144 | + touch $(GLGEN)/arch.h 145 | diff -Naur ghostscript-9.05.orig/base/Makefile.in ghostscript-9.05/base/Makefile.in 146 | --- ghostscript-9.05.orig/base/Makefile.in 2012-02-13 13:07:44.000000000 -0500 147 | +++ ghostscript-9.05/base/Makefile.in 2012-02-13 13:08:44.000000000 -0500 148 | @@ -636,3 +636,4 @@ 149 | check : default 150 | $(NO_OP) 151 | 152 | +include $(GLSRCDIR)/cross.mak 153 | diff -Naur ghostscript-9.05.orig/base/unixhead.mak ghostscript-9.05/base/unixhead.mak 154 | --- ghostscript-9.05.orig/base/unixhead.mak 2012-02-13 13:07:44.000000000 -0500 155 | +++ ghostscript-9.05/base/unixhead.mak 2012-02-13 13:08:44.000000000 -0500 156 | @@ -54,7 +54,7 @@ 157 | 158 | # Define generic commands. 159 | 160 | -CP_=cp 161 | +CP_=cp -f 162 | RM_=rm -f 163 | RMN_=rm -f 164 | 165 | diff -Naur ghostscript-9.05.orig/i386-arch.h ghostscript-9.05/i386-arch.h 166 | --- ghostscript-9.05.orig/i386-arch.h 1969-12-31 19:00:00.000000000 -0500 167 | +++ ghostscript-9.05/i386-arch.h 2012-02-13 13:08:44.000000000 -0500 168 | @@ -0,0 +1,41 @@ 169 | +/* Parameters derived from machine and compiler architecture. */ 170 | +/* This file is generated mechanically by genarch.c. */ 171 | + 172 | + /* ---------------- Scalar alignments ---------------- */ 173 | + 174 | +#define ARCH_ALIGN_SHORT_MOD 2 175 | +#define ARCH_ALIGN_INT_MOD 4 176 | +#define ARCH_ALIGN_LONG_MOD 4 177 | +#define ARCH_ALIGN_PTR_MOD 4 178 | +#define ARCH_ALIGN_FLOAT_MOD 4 179 | +#define ARCH_ALIGN_DOUBLE_MOD 4 180 | + 181 | + /* ---------------- Scalar sizes ---------------- */ 182 | + 183 | +#define ARCH_LOG2_SIZEOF_CHAR 0 184 | +#define ARCH_LOG2_SIZEOF_SHORT 1 185 | +#define ARCH_LOG2_SIZEOF_INT 2 186 | +#define ARCH_LOG2_SIZEOF_LONG 2 187 | +#define ARCH_LOG2_SIZEOF_LONG_LONG 3 188 | +#define ARCH_SIZEOF_GX_COLOR_INDEX 8 189 | +#define ARCH_SIZEOF_PTR 4 190 | +#define ARCH_SIZEOF_FLOAT 4 191 | +#define ARCH_SIZEOF_DOUBLE 8 192 | +#define ARCH_FLOAT_MANTISSA_BITS 24 193 | +#define ARCH_DOUBLE_MANTISSA_BITS 53 194 | + 195 | + /* ---------------- Unsigned max values ---------------- */ 196 | + 197 | +#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0) 198 | +#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0) 199 | +#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0) 200 | +#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0) 201 | + 202 | + /* ---------------- Miscellaneous ---------------- */ 203 | + 204 | +#define ARCH_IS_BIG_ENDIAN 0 205 | +#define ARCH_PTRS_ARE_SIGNED 0 206 | +#define ARCH_FLOATS_ARE_IEEE 1 207 | +#define ARCH_ARITH_RSHIFT 2 208 | +#define ARCH_DIV_NEG_POS_TRUNCATES 1 209 | + 210 | diff -Naur ghostscript-9.05.orig/m68k-arch.h ghostscript-9.05/m68k-arch.h 211 | --- ghostscript-9.05.orig/m68k-arch.h 1969-12-31 19:00:00.000000000 -0500 212 | +++ ghostscript-9.05/m68k-arch.h 2012-02-13 13:08:44.000000000 -0500 213 | @@ -0,0 +1,41 @@ 214 | +/* Parameters derived from machine and compiler architecture. */ 215 | +/* This file is generated mechanically by genarch.c. */ 216 | + 217 | + /* ---------------- Scalar alignments ---------------- */ 218 | + 219 | +#define ARCH_ALIGN_SHORT_MOD 2 220 | +#define ARCH_ALIGN_INT_MOD 4 221 | +#define ARCH_ALIGN_LONG_MOD 4 222 | +#define ARCH_ALIGN_PTR_MOD 4 223 | +#define ARCH_ALIGN_FLOAT_MOD 4 224 | +#define ARCH_ALIGN_DOUBLE_MOD 8 225 | + 226 | + /* ---------------- Scalar sizes ---------------- */ 227 | + 228 | +#define ARCH_LOG2_SIZEOF_CHAR 0 229 | +#define ARCH_LOG2_SIZEOF_SHORT 1 230 | +#define ARCH_LOG2_SIZEOF_INT 2 231 | +#define ARCH_LOG2_SIZEOF_LONG 2 232 | +#define ARCH_LOG2_SIZEOF_LONG_LONG 3 233 | +#define ARCH_SIZEOF_GX_COLOR_INDEX 8 234 | +#define ARCH_SIZEOF_PTR 4 235 | +#define ARCH_SIZEOF_FLOAT 4 236 | +#define ARCH_SIZEOF_DOUBLE 8 237 | +#define ARCH_FLOAT_MANTISSA_BITS 24 238 | +#define ARCH_DOUBLE_MANTISSA_BITS 53 239 | + 240 | + /* ---------------- Unsigned max values ---------------- */ 241 | + 242 | +#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0) 243 | +#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0) 244 | +#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0) 245 | +#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0) 246 | + 247 | + /* ---------------- Miscellaneous ---------------- */ 248 | + 249 | +#define ARCH_IS_BIG_ENDIAN 1 250 | +#define ARCH_PTRS_ARE_SIGNED 0 251 | +#define ARCH_FLOATS_ARE_IEEE 1 252 | +#define ARCH_ARITH_RSHIFT 2 253 | +#define ARCH_DIV_NEG_POS_TRUNCATES 1 254 | + 255 | diff -Naur ghostscript-9.05.orig/mips64-arch.h ghostscript-9.05/mips64-arch.h 256 | --- ghostscript-9.05.orig/mips64-arch.h 1969-12-31 19:00:00.000000000 -0500 257 | +++ ghostscript-9.05/mips64-arch.h 2012-02-13 13:08:44.000000000 -0500 258 | @@ -0,0 +1,41 @@ 259 | +/* Parameters derived from machine and compiler architecture. */ 260 | +/* This file is generated mechanically by genarch.c. */ 261 | + 262 | + /* ---------------- Scalar alignments ---------------- */ 263 | + 264 | +#define ARCH_ALIGN_SHORT_MOD 2 265 | +#define ARCH_ALIGN_INT_MOD 4 266 | +#define ARCH_ALIGN_LONG_MOD 8 267 | +#define ARCH_ALIGN_PTR_MOD 8 268 | +#define ARCH_ALIGN_FLOAT_MOD 4 269 | +#define ARCH_ALIGN_DOUBLE_MOD 8 270 | + 271 | + /* ---------------- Scalar sizes ---------------- */ 272 | + 273 | +#define ARCH_LOG2_SIZEOF_CHAR 0 274 | +#define ARCH_LOG2_SIZEOF_SHORT 1 275 | +#define ARCH_LOG2_SIZEOF_INT 2 276 | +#define ARCH_LOG2_SIZEOF_LONG 3 277 | +#define ARCH_LOG2_SIZEOF_LONG_LONG 3 278 | +#define ARCH_SIZEOF_GX_COLOR_INDEX 8 279 | +#define ARCH_SIZEOF_PTR 8 280 | +#define ARCH_SIZEOF_FLOAT 4 281 | +#define ARCH_SIZEOF_DOUBLE 8 282 | +#define ARCH_FLOAT_MANTISSA_BITS 24 283 | +#define ARCH_DOUBLE_MANTISSA_BITS 53 284 | + 285 | + /* ---------------- Unsigned max values ---------------- */ 286 | + 287 | +#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0) 288 | +#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0) 289 | +#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0) 290 | +#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0) 291 | + 292 | + /* ---------------- Miscellaneous ---------------- */ 293 | + 294 | +#define ARCH_IS_BIG_ENDIAN 1 295 | +#define ARCH_PTRS_ARE_SIGNED 0 296 | +#define ARCH_FLOATS_ARE_IEEE 1 297 | +#define ARCH_ARITH_RSHIFT 2 298 | +#define ARCH_DIV_NEG_POS_TRUNCATES 1 299 | + 300 | diff -Naur ghostscript-9.05.orig/mips64el-arch.h ghostscript-9.05/mips64el-arch.h 301 | --- ghostscript-9.05.orig/mips64el-arch.h 1969-12-31 19:00:00.000000000 -0500 302 | +++ ghostscript-9.05/mips64el-arch.h 2012-02-13 13:08:44.000000000 -0500 303 | @@ -0,0 +1,41 @@ 304 | +/* Parameters derived from machine and compiler architecture. */ 305 | +/* This file is generated mechanically by genarch.c. */ 306 | + 307 | + /* ---------------- Scalar alignments ---------------- */ 308 | + 309 | +#define ARCH_ALIGN_SHORT_MOD 2 310 | +#define ARCH_ALIGN_INT_MOD 4 311 | +#define ARCH_ALIGN_LONG_MOD 8 312 | +#define ARCH_ALIGN_PTR_MOD 8 313 | +#define ARCH_ALIGN_FLOAT_MOD 4 314 | +#define ARCH_ALIGN_DOUBLE_MOD 8 315 | + 316 | + /* ---------------- Scalar sizes ---------------- */ 317 | + 318 | +#define ARCH_LOG2_SIZEOF_CHAR 0 319 | +#define ARCH_LOG2_SIZEOF_SHORT 1 320 | +#define ARCH_LOG2_SIZEOF_INT 2 321 | +#define ARCH_LOG2_SIZEOF_LONG 3 322 | +#define ARCH_LOG2_SIZEOF_LONG_LONG 3 323 | +#define ARCH_SIZEOF_GX_COLOR_INDEX 8 324 | +#define ARCH_SIZEOF_PTR 8 325 | +#define ARCH_SIZEOF_FLOAT 4 326 | +#define ARCH_SIZEOF_DOUBLE 8 327 | +#define ARCH_FLOAT_MANTISSA_BITS 24 328 | +#define ARCH_DOUBLE_MANTISSA_BITS 53 329 | + 330 | + /* ---------------- Unsigned max values ---------------- */ 331 | + 332 | +#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0) 333 | +#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0) 334 | +#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0) 335 | +#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0) 336 | + 337 | + /* ---------------- Miscellaneous ---------------- */ 338 | + 339 | +#define ARCH_IS_BIG_ENDIAN 0 340 | +#define ARCH_PTRS_ARE_SIGNED 0 341 | +#define ARCH_FLOATS_ARE_IEEE 1 342 | +#define ARCH_ARITH_RSHIFT 2 343 | +#define ARCH_DIV_NEG_POS_TRUNCATES 1 344 | + 345 | diff -Naur ghostscript-9.05.orig/mips-arch.h ghostscript-9.05/mips-arch.h 346 | --- ghostscript-9.05.orig/mips-arch.h 1969-12-31 19:00:00.000000000 -0500 347 | +++ ghostscript-9.05/mips-arch.h 2012-02-13 13:08:44.000000000 -0500 348 | @@ -0,0 +1,41 @@ 349 | +/* Parameters derived from machine and compiler architecture. */ 350 | +/* This file is generated mechanically by genarch.c. */ 351 | + 352 | + /* ---------------- Scalar alignments ---------------- */ 353 | + 354 | +#define ARCH_ALIGN_SHORT_MOD 2 355 | +#define ARCH_ALIGN_INT_MOD 4 356 | +#define ARCH_ALIGN_LONG_MOD 4 357 | +#define ARCH_ALIGN_PTR_MOD 4 358 | +#define ARCH_ALIGN_FLOAT_MOD 4 359 | +#define ARCH_ALIGN_DOUBLE_MOD 8 360 | + 361 | + /* ---------------- Scalar sizes ---------------- */ 362 | + 363 | +#define ARCH_LOG2_SIZEOF_CHAR 0 364 | +#define ARCH_LOG2_SIZEOF_SHORT 1 365 | +#define ARCH_LOG2_SIZEOF_INT 2 366 | +#define ARCH_LOG2_SIZEOF_LONG 2 367 | +#define ARCH_LOG2_SIZEOF_LONG_LONG 3 368 | +#define ARCH_SIZEOF_GX_COLOR_INDEX 8 369 | +#define ARCH_SIZEOF_PTR 4 370 | +#define ARCH_SIZEOF_FLOAT 4 371 | +#define ARCH_SIZEOF_DOUBLE 8 372 | +#define ARCH_FLOAT_MANTISSA_BITS 24 373 | +#define ARCH_DOUBLE_MANTISSA_BITS 53 374 | + 375 | + /* ---------------- Unsigned max values ---------------- */ 376 | + 377 | +#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0) 378 | +#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0) 379 | +#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0) 380 | +#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0) 381 | + 382 | + /* ---------------- Miscellaneous ---------------- */ 383 | + 384 | +#define ARCH_IS_BIG_ENDIAN 1 385 | +#define ARCH_PTRS_ARE_SIGNED 0 386 | +#define ARCH_FLOATS_ARE_IEEE 1 387 | +#define ARCH_ARITH_RSHIFT 2 388 | +#define ARCH_DIV_NEG_POS_TRUNCATES 1 389 | + 390 | diff -Naur ghostscript-9.05.orig/mipsel-arch.h ghostscript-9.05/mipsel-arch.h 391 | --- ghostscript-9.05.orig/mipsel-arch.h 1969-12-31 19:00:00.000000000 -0500 392 | +++ ghostscript-9.05/mipsel-arch.h 2012-02-13 13:08:44.000000000 -0500 393 | @@ -0,0 +1,41 @@ 394 | +/* Parameters derived from machine and compiler architecture. */ 395 | +/* This file is generated mechanically by genarch.c. */ 396 | + 397 | + /* ---------------- Scalar alignments ---------------- */ 398 | + 399 | +#define ARCH_ALIGN_SHORT_MOD 2 400 | +#define ARCH_ALIGN_INT_MOD 4 401 | +#define ARCH_ALIGN_LONG_MOD 4 402 | +#define ARCH_ALIGN_PTR_MOD 4 403 | +#define ARCH_ALIGN_FLOAT_MOD 4 404 | +#define ARCH_ALIGN_DOUBLE_MOD 8 405 | + 406 | + /* ---------------- Scalar sizes ---------------- */ 407 | + 408 | +#define ARCH_LOG2_SIZEOF_CHAR 0 409 | +#define ARCH_LOG2_SIZEOF_SHORT 1 410 | +#define ARCH_LOG2_SIZEOF_INT 2 411 | +#define ARCH_LOG2_SIZEOF_LONG 2 412 | +#define ARCH_LOG2_SIZEOF_LONG_LONG 3 413 | +#define ARCH_SIZEOF_GX_COLOR_INDEX 8 414 | +#define ARCH_SIZEOF_PTR 4 415 | +#define ARCH_SIZEOF_FLOAT 4 416 | +#define ARCH_SIZEOF_DOUBLE 8 417 | +#define ARCH_FLOAT_MANTISSA_BITS 24 418 | +#define ARCH_DOUBLE_MANTISSA_BITS 53 419 | + 420 | + /* ---------------- Unsigned max values ---------------- */ 421 | + 422 | +#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0) 423 | +#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0) 424 | +#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0) 425 | +#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0) 426 | + 427 | + /* ---------------- Miscellaneous ---------------- */ 428 | + 429 | +#define ARCH_IS_BIG_ENDIAN 0 430 | +#define ARCH_PTRS_ARE_SIGNED 0 431 | +#define ARCH_FLOATS_ARE_IEEE 1 432 | +#define ARCH_ARITH_RSHIFT 2 433 | +#define ARCH_DIV_NEG_POS_TRUNCATES 1 434 | + 435 | diff -Naur ghostscript-9.05.orig/nios2-arch.h ghostscript-9.05/nios2-arch.h 436 | --- ghostscript-9.05.orig/nios2-arch.h 1969-12-31 19:00:00.000000000 -0500 437 | +++ ghostscript-9.05/nios2-arch.h 2012-02-13 13:08:44.000000000 -0500 438 | @@ -0,0 +1,41 @@ 439 | +/* Parameters derived from machine and compiler architecture. */ 440 | +/* This file is generated mechanically by genarch.c. */ 441 | + 442 | + /* ---------------- Scalar alignments ---------------- */ 443 | + 444 | +#define ARCH_ALIGN_SHORT_MOD 2 445 | +#define ARCH_ALIGN_INT_MOD 4 446 | +#define ARCH_ALIGN_LONG_MOD 4 447 | +#define ARCH_ALIGN_PTR_MOD 4 448 | +#define ARCH_ALIGN_FLOAT_MOD 4 449 | +#define ARCH_ALIGN_DOUBLE_MOD 8 450 | + 451 | + /* ---------------- Scalar sizes ---------------- */ 452 | + 453 | +#define ARCH_LOG2_SIZEOF_CHAR 0 454 | +#define ARCH_LOG2_SIZEOF_SHORT 1 455 | +#define ARCH_LOG2_SIZEOF_INT 2 456 | +#define ARCH_LOG2_SIZEOF_LONG 2 457 | +#define ARCH_LOG2_SIZEOF_LONG_LONG 3 458 | +#define ARCH_SIZEOF_GX_COLOR_INDEX 8 459 | +#define ARCH_SIZEOF_PTR 4 460 | +#define ARCH_SIZEOF_FLOAT 4 461 | +#define ARCH_SIZEOF_DOUBLE 8 462 | +#define ARCH_FLOAT_MANTISSA_BITS 24 463 | +#define ARCH_DOUBLE_MANTISSA_BITS 53 464 | + 465 | + /* ---------------- Unsigned max values ---------------- */ 466 | + 467 | +#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0) 468 | +#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0) 469 | +#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0) 470 | +#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0) 471 | + 472 | + /* ---------------- Miscellaneous ---------------- */ 473 | + 474 | +#define ARCH_IS_BIG_ENDIAN 0 475 | +#define ARCH_PTRS_ARE_SIGNED 0 476 | +#define ARCH_FLOATS_ARE_IEEE 1 477 | +#define ARCH_ARITH_RSHIFT 2 478 | +#define ARCH_DIV_NEG_POS_TRUNCATES 1 479 | + 480 | diff -Naur ghostscript-9.05.orig/powerpc-arch.h ghostscript-9.05/powerpc-arch.h 481 | --- ghostscript-9.05.orig/powerpc-arch.h 1969-12-31 19:00:00.000000000 -0500 482 | +++ ghostscript-9.05/powerpc-arch.h 2012-02-13 13:08:44.000000000 -0500 483 | @@ -0,0 +1,41 @@ 484 | +/* Parameters derived from machine and compiler architecture. */ 485 | +/* This file is generated mechanically by genarch.c. */ 486 | + 487 | + /* ---------------- Scalar alignments ---------------- */ 488 | + 489 | +#define ARCH_ALIGN_SHORT_MOD 2 490 | +#define ARCH_ALIGN_INT_MOD 4 491 | +#define ARCH_ALIGN_LONG_MOD 4 492 | +#define ARCH_ALIGN_PTR_MOD 4 493 | +#define ARCH_ALIGN_FLOAT_MOD 4 494 | +#define ARCH_ALIGN_DOUBLE_MOD 8 495 | + 496 | + /* ---------------- Scalar sizes ---------------- */ 497 | + 498 | +#define ARCH_LOG2_SIZEOF_CHAR 0 499 | +#define ARCH_LOG2_SIZEOF_SHORT 1 500 | +#define ARCH_LOG2_SIZEOF_INT 2 501 | +#define ARCH_LOG2_SIZEOF_LONG 2 502 | +#define ARCH_LOG2_SIZEOF_LONG_LONG 3 503 | +#define ARCH_SIZEOF_GX_COLOR_INDEX 8 504 | +#define ARCH_SIZEOF_PTR 4 505 | +#define ARCH_SIZEOF_FLOAT 4 506 | +#define ARCH_SIZEOF_DOUBLE 8 507 | +#define ARCH_FLOAT_MANTISSA_BITS 24 508 | +#define ARCH_DOUBLE_MANTISSA_BITS 53 509 | + 510 | + /* ---------------- Unsigned max values ---------------- */ 511 | + 512 | +#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0) 513 | +#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0) 514 | +#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0) 515 | +#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0) 516 | + 517 | + /* ---------------- Miscellaneous ---------------- */ 518 | + 519 | +#define ARCH_IS_BIG_ENDIAN 1 520 | +#define ARCH_PTRS_ARE_SIGNED 0 521 | +#define ARCH_FLOATS_ARE_IEEE 1 522 | +#define ARCH_ARITH_RSHIFT 2 523 | +#define ARCH_DIV_NEG_POS_TRUNCATES 1 524 | + 525 | diff -Naur ghostscript-9.05.orig/sh-arch.h ghostscript-9.05/sh-arch.h 526 | --- ghostscript-9.05.orig/sh-arch.h 1969-12-31 19:00:00.000000000 -0500 527 | +++ ghostscript-9.05/sh-arch.h 2012-02-13 13:08:44.000000000 -0500 528 | @@ -0,0 +1,41 @@ 529 | +/* Parameters derived from machine and compiler architecture. */ 530 | +/* This file is generated mechanically by genarch.c. */ 531 | + 532 | + /* ---------------- Scalar alignments ---------------- */ 533 | + 534 | +#define ARCH_ALIGN_SHORT_MOD 2 535 | +#define ARCH_ALIGN_INT_MOD 4 536 | +#define ARCH_ALIGN_LONG_MOD 4 537 | +#define ARCH_ALIGN_PTR_MOD 4 538 | +#define ARCH_ALIGN_FLOAT_MOD 4 539 | +#define ARCH_ALIGN_DOUBLE_MOD 8 540 | + 541 | + /* ---------------- Scalar sizes ---------------- */ 542 | + 543 | +#define ARCH_LOG2_SIZEOF_CHAR 0 544 | +#define ARCH_LOG2_SIZEOF_SHORT 1 545 | +#define ARCH_LOG2_SIZEOF_INT 2 546 | +#define ARCH_LOG2_SIZEOF_LONG 2 547 | +#define ARCH_LOG2_SIZEOF_LONG_LONG 3 548 | +#define ARCH_SIZEOF_GX_COLOR_INDEX 8 549 | +#define ARCH_SIZEOF_PTR 4 550 | +#define ARCH_SIZEOF_FLOAT 4 551 | +#define ARCH_SIZEOF_DOUBLE 8 552 | +#define ARCH_FLOAT_MANTISSA_BITS 24 553 | +#define ARCH_DOUBLE_MANTISSA_BITS 53 554 | + 555 | + /* ---------------- Unsigned max values ---------------- */ 556 | + 557 | +#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0) 558 | +#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0) 559 | +#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0) 560 | +#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0) 561 | + 562 | + /* ---------------- Miscellaneous ---------------- */ 563 | + 564 | +#define ARCH_IS_BIG_ENDIAN 0 565 | +#define ARCH_PTRS_ARE_SIGNED 0 566 | +#define ARCH_FLOATS_ARE_IEEE 1 567 | +#define ARCH_ARITH_RSHIFT 2 568 | +#define ARCH_DIV_NEG_POS_TRUNCATES 1 569 | + 570 | diff -Naur ghostscript-9.05.orig/sparc-arch.h ghostscript-9.05/sparc-arch.h 571 | --- ghostscript-9.05.orig/sparc-arch.h 1969-12-31 19:00:00.000000000 -0500 572 | +++ ghostscript-9.05/sparc-arch.h 2012-02-13 13:08:44.000000000 -0500 573 | @@ -0,0 +1,41 @@ 574 | +/* Parameters derived from machine and compiler architecture. */ 575 | +/* This file is generated mechanically by genarch.c. */ 576 | + 577 | + /* ---------------- Scalar alignments ---------------- */ 578 | + 579 | +#define ARCH_ALIGN_SHORT_MOD 2 580 | +#define ARCH_ALIGN_INT_MOD 4 581 | +#define ARCH_ALIGN_LONG_MOD 4 582 | +#define ARCH_ALIGN_PTR_MOD 4 583 | +#define ARCH_ALIGN_FLOAT_MOD 4 584 | +#define ARCH_ALIGN_DOUBLE_MOD 8 585 | + 586 | + /* ---------------- Scalar sizes ---------------- */ 587 | + 588 | +#define ARCH_LOG2_SIZEOF_CHAR 0 589 | +#define ARCH_LOG2_SIZEOF_SHORT 1 590 | +#define ARCH_LOG2_SIZEOF_INT 2 591 | +#define ARCH_LOG2_SIZEOF_LONG 2 592 | +#define ARCH_LOG2_SIZEOF_LONG_LONG 3 593 | +#define ARCH_SIZEOF_GX_COLOR_INDEX 8 594 | +#define ARCH_SIZEOF_PTR 4 595 | +#define ARCH_SIZEOF_FLOAT 4 596 | +#define ARCH_SIZEOF_DOUBLE 8 597 | +#define ARCH_FLOAT_MANTISSA_BITS 24 598 | +#define ARCH_DOUBLE_MANTISSA_BITS 53 599 | + 600 | + /* ---------------- Unsigned max values ---------------- */ 601 | + 602 | +#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0) 603 | +#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0) 604 | +#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0) 605 | +#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0) 606 | + 607 | + /* ---------------- Miscellaneous ---------------- */ 608 | + 609 | +#define ARCH_IS_BIG_ENDIAN 1 610 | +#define ARCH_PTRS_ARE_SIGNED 0 611 | +#define ARCH_FLOATS_ARE_IEEE 1 612 | +#define ARCH_ARITH_RSHIFT 2 613 | +#define ARCH_DIV_NEG_POS_TRUNCATES 1 614 | + 615 | diff -Naur ghostscript-9.05.orig/x86_64-arch.h ghostscript-9.05/x86_64-arch.h 616 | --- ghostscript-9.05.orig/x86_64-arch.h 1969-12-31 19:00:00.000000000 -0500 617 | +++ ghostscript-9.05/x86_64-arch.h 2012-02-13 13:08:44.000000000 -0500 618 | @@ -0,0 +1,41 @@ 619 | +/* Parameters derived from machine and compiler architecture. */ 620 | +/* This file is generated mechanically by genarch.c. */ 621 | + 622 | + /* ---------------- Scalar alignments ---------------- */ 623 | + 624 | +#define ARCH_ALIGN_SHORT_MOD 2 625 | +#define ARCH_ALIGN_INT_MOD 4 626 | +#define ARCH_ALIGN_LONG_MOD 8 627 | +#define ARCH_ALIGN_PTR_MOD 8 628 | +#define ARCH_ALIGN_FLOAT_MOD 4 629 | +#define ARCH_ALIGN_DOUBLE_MOD 8 630 | + 631 | + /* ---------------- Scalar sizes ---------------- */ 632 | + 633 | +#define ARCH_LOG2_SIZEOF_CHAR 0 634 | +#define ARCH_LOG2_SIZEOF_SHORT 1 635 | +#define ARCH_LOG2_SIZEOF_INT 2 636 | +#define ARCH_LOG2_SIZEOF_LONG 3 637 | +#define ARCH_LOG2_SIZEOF_LONG_LONG 3 638 | +#define ARCH_SIZEOF_GX_COLOR_INDEX 8 639 | +#define ARCH_SIZEOF_PTR 8 640 | +#define ARCH_SIZEOF_FLOAT 4 641 | +#define ARCH_SIZEOF_DOUBLE 8 642 | +#define ARCH_FLOAT_MANTISSA_BITS 24 643 | +#define ARCH_DOUBLE_MANTISSA_BITS 53 644 | + 645 | + /* ---------------- Unsigned max values ---------------- */ 646 | + 647 | +#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0) 648 | +#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0) 649 | +#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0) 650 | +#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0) 651 | + 652 | + /* ---------------- Miscellaneous ---------------- */ 653 | + 654 | +#define ARCH_IS_BIG_ENDIAN 0 655 | +#define ARCH_PTRS_ARE_SIGNED 0 656 | +#define ARCH_FLOATS_ARE_IEEE 1 657 | +#define ARCH_ARITH_RSHIFT 2 658 | +#define ARCH_DIV_NEG_POS_TRUNCATES 1 659 | + 660 | diff -Naur ghostscript-9.05.orig/xtensa-arch.h ghostscript-9.05/xtensa-arch.h 661 | --- ghostscript-9.05.orig/xtensa-arch.h 1969-12-31 19:00:00.000000000 -0500 662 | +++ ghostscript-9.05/xtensa-arch.h 2012-02-13 13:08:44.000000000 -0500 663 | @@ -0,0 +1,41 @@ 664 | +/* Parameters derived from machine and compiler architecture. */ 665 | +/* This file is generated mechanically by genarch.c. */ 666 | + 667 | + /* ---------------- Scalar alignments ---------------- */ 668 | + 669 | +#define ARCH_ALIGN_SHORT_MOD 2 670 | +#define ARCH_ALIGN_INT_MOD 4 671 | +#define ARCH_ALIGN_LONG_MOD 4 672 | +#define ARCH_ALIGN_PTR_MOD 4 673 | +#define ARCH_ALIGN_FLOAT_MOD 4 674 | +#define ARCH_ALIGN_DOUBLE_MOD 8 675 | + 676 | + /* ---------------- Scalar sizes ---------------- */ 677 | + 678 | +#define ARCH_LOG2_SIZEOF_CHAR 0 679 | +#define ARCH_LOG2_SIZEOF_SHORT 1 680 | +#define ARCH_LOG2_SIZEOF_INT 2 681 | +#define ARCH_LOG2_SIZEOF_LONG 2 682 | +#define ARCH_LOG2_SIZEOF_LONG_LONG 3 683 | +#define ARCH_SIZEOF_GX_COLOR_INDEX 8 684 | +#define ARCH_SIZEOF_PTR 4 685 | +#define ARCH_SIZEOF_FLOAT 4 686 | +#define ARCH_SIZEOF_DOUBLE 8 687 | +#define ARCH_FLOAT_MANTISSA_BITS 24 688 | +#define ARCH_DOUBLE_MANTISSA_BITS 53 689 | + 690 | + /* ---------------- Unsigned max values ---------------- */ 691 | + 692 | +#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0) 693 | +#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0) 694 | +#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0) 695 | +#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0) 696 | + 697 | + /* ---------------- Miscellaneous ---------------- */ 698 | + 699 | +#define ARCH_IS_BIG_ENDIAN 0 700 | +#define ARCH_PTRS_ARE_SIGNED 0 701 | +#define ARCH_FLOATS_ARE_IEEE 1 702 | +#define ARCH_ARITH_RSHIFT 2 703 | +#define ARCH_DIV_NEG_POS_TRUNCATES 1 704 | + 705 | --------------------------------------------------------------------------------