svn commit: trunk/buildroot/package: xpdf
Author: ninevoltz
Date: 2008-03-06 10:38:04 -0800 (Thu, 06 Mar 2008) New Revision: 21244
Log:
added xpdf
Added:
trunk/buildroot/package/xpdf/ trunk/buildroot/package/xpdf/Config.in trunk/buildroot/package/xpdf/xpdf-3.02pl1.patch trunk/buildroot/package/xpdf/xpdf-3.02pl2.patch trunk/buildroot/package/xpdf/xpdf.mk
Changeset:
Added: trunk/buildroot/package/xpdf/Config.in
===================================================================
buildroot/package/xpdf/Config.in +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_XPDF + bool "xpdf" + select BR2_PACKAGE_OPENMOTIF + default n + help + Xpdf is an open source viewer for Portable Document Format (PDF) files. + + ftp://ftp.foolabs.com/pub/xpdf
Added: trunk/buildroot/package/xpdf/xpdf-3.02pl1.patch
===================================================================
buildroot/package/xpdf/xpdf-3.02pl1.patch +33 -0
@@ -0,0 +1,33 @@ +*** xpdf-3.02.orig/xpdf/Stream.cc Tue Feb 27 14:05:52 2007 +--- xpdf-3.02/xpdf/Stream.cc Thu Jul 26 14:44:43 2007 +*************** +*** 410,424 **** + ok = gFalse; + + nVals = width * nComps; +- if (width <= 0 || nComps <= 0 || nBits <= 0 || +- nComps >= INT_MAX / nBits || +- width >= INT_MAX / nComps / nBits || +- nVals * nBits + 7 < 0) { +- return; +- } + pixBytes = (nComps * nBits + 7) >> 3; + rowBytes = ((nVals * nBits + 7) >> 3) + pixBytes; +! if (rowBytes <= 0) { + return; + } + predLine = (Guchar *)gmalloc(rowBytes); +--- 410,422 ---- + ok = gFalse; + + nVals = width * nComps; + pixBytes = (nComps * nBits + 7) >> 3; + rowBytes = ((nVals * nBits + 7) >> 3) + pixBytes; +! if (width <= 0 || nComps <= 0 || nBits <= 0 || +! nComps > gfxColorMaxComps || +! nBits > 16 || +! width >= INT_MAX / nComps || // check for overflow in nVals +! nVals >= (INT_MAX - 7) / nBits) { // check for overflow in rowBytes + return; + } + predLine = (Guchar *)gmalloc(rowBytes);
Added: trunk/buildroot/package/xpdf/xpdf-3.02pl2.patch
===================================================================
buildroot/package/xpdf/xpdf-3.02pl2.patch +823 -0
823 lines not on this page · raw message
Added: trunk/buildroot/package/xpdf/xpdf.mk
===================================================================
buildroot/package/xpdf/xpdf.mk +31 -0
@@ -0,0 +1,31 @@ +############################################################# +# +# xpdf +# +############################################################# +XPDF_VERSION = 3.02 +XPDF_SOURCE = xpdf-$(XPDF_VERSION).tar.gz +XPDF_SITE = ftp://ftp.foolabs.com/pub/xpdf +XPDF_AUTORECONF = NO +XPDF_INSTALL_STAGING = NO +XPDF_INSTALL_TARGET = YES +XPDF_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install + +XPDF_CONF_OPT = --enable-multithreaded + +ifeq ($(BR2_SOFT_FLOAT),y) + XPDF_CONF_OPT += --enable-fixedpoint +endif + +ifneq ($(BR2_PACKAGE_XSERVER_none),y) + XPDF_DEPENDENCIES += $(XSERVER) openmotif + XPDF_CONF_OPT += --with-Xm-library=$(STAGING_DIR)/usr/lib --with-Xm-includes=$(STAGING_DIR)/usr/include/Xm \ + --with-x --with-freetype2-includes=$(STAGING_DIR)/usr/include \ + --with-freetype2-library=$(STAGING_DIR)/usr/lib CFLAGS="-I$(STAGING_DIR)/usr/include/freetype2" \ + CXXFLAGS="-I$(STAGING_DIR)/usr/include/freetype2" +endif + +XPDF_DEPENDENCIES = uclibc freetype + +$(eval $(call AUTOTARGETS,package,xpdf)) +