[med-svn] r2792 - in trunk/packages: . pvrg pvrg/trunk pvrg/trunk/debian pvrg/trunk/debian/patches

malat-guest at alioth.debian.org malat-guest at alioth.debian.org
Mon Dec 15 18:16:54 UTC 2008


Author: malat-guest
Date: 2008-12-15 18:16:54 +0000 (Mon, 15 Dec 2008)
New Revision: 2792

Added:
   trunk/packages/pvrg/
   trunk/packages/pvrg/tags/
   trunk/packages/pvrg/trunk/
   trunk/packages/pvrg/trunk/debian/
   trunk/packages/pvrg/trunk/debian/README.Debian
   trunk/packages/pvrg/trunk/debian/changelog
   trunk/packages/pvrg/trunk/debian/compat
   trunk/packages/pvrg/trunk/debian/control
   trunk/packages/pvrg/trunk/debian/copyright
   trunk/packages/pvrg/trunk/debian/patches/
   trunk/packages/pvrg/trunk/debian/patches/cmakelists.txt.patch
   trunk/packages/pvrg/trunk/debian/patches/lexer.l.patch
   trunk/packages/pvrg/trunk/debian/patches/series
   trunk/packages/pvrg/trunk/debian/rules
   trunk/packages/pvrg/trunk/debian/watch
Log:
Adding Stanford University Portable Video Research Group JPEG implementation (PVRG), from Andy C. Hung

Added: trunk/packages/pvrg/trunk/debian/README.Debian
===================================================================
--- trunk/packages/pvrg/trunk/debian/README.Debian	                        (rev 0)
+++ trunk/packages/pvrg/trunk/debian/README.Debian	2008-12-15 18:16:54 UTC (rev 2792)
@@ -0,0 +1,8 @@
+Debian packages of pvrg
+---------------------------
+
+md5sum sf.net and:
+http://www.panix.com/~eli/jpeg/download.html
+match: d67276117e3b8c91340440c25d4ae1fe
+
+- Mathieu Malaterre.


Property changes on: trunk/packages/pvrg/trunk/debian/README.Debian
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: trunk/packages/pvrg/trunk/debian/changelog
===================================================================
--- trunk/packages/pvrg/trunk/debian/changelog	                        (rev 0)
+++ trunk/packages/pvrg/trunk/debian/changelog	2008-12-15 18:16:54 UTC (rev 2792)
@@ -0,0 +1,5 @@
+pvrg (1.2.1) experimental; urgency=low
+
+  * Initial release.
+
+ -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Fri, 15 Dec 2008 18:28:01 +0100


Property changes on: trunk/packages/pvrg/trunk/debian/changelog
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: trunk/packages/pvrg/trunk/debian/compat
===================================================================
--- trunk/packages/pvrg/trunk/debian/compat	                        (rev 0)
+++ trunk/packages/pvrg/trunk/debian/compat	2008-12-15 18:16:54 UTC (rev 2792)
@@ -0,0 +1 @@
+4


Property changes on: trunk/packages/pvrg/trunk/debian/compat
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: trunk/packages/pvrg/trunk/debian/control
===================================================================
--- trunk/packages/pvrg/trunk/debian/control	                        (rev 0)
+++ trunk/packages/pvrg/trunk/debian/control	2008-12-15 18:16:54 UTC (rev 2792)
@@ -0,0 +1,20 @@
+Source: pvrg
+Section: graphics
+Priority: optional
+Maintainer: Debian-Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+DM-Upload-Allowed: yes
+Uploaders: Mathieu Malaterre <mathieu.malaterre at gmail.com>
+Build-Depends: debhelper (>= 4), cmake, flex
+Standards-Version: 3.8.0
+Vcs-Browser: http://svn.debian.org/wsvn/debian-med/trunk/packages/pvrg/trunk/?rev=0&sc=0
+Vcs-Svn: svn://svn.debian.org/svn/debian-med/trunk/packages/pvrg/trunk/
+Homepage: http://jpeg.sourceforge.net/
+
+Package: pvrg
+Architecture: any
+Section: libs
+Description: PVRG lib
+ JPEG implementation from PVRG
+ .
+ This package contains the shared library.
+Depends: ${shlibs:Depends}


Property changes on: trunk/packages/pvrg/trunk/debian/control
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: trunk/packages/pvrg/trunk/debian/copyright
===================================================================
--- trunk/packages/pvrg/trunk/debian/copyright	                        (rev 0)
+++ trunk/packages/pvrg/trunk/debian/copyright	2008-12-15 18:16:54 UTC (rev 2792)
@@ -0,0 +1,37 @@
+This package was debianized by Mathieu Malaterre <mathieu.malaterre at gmail.com> on
+Sun, 14 Dec 2008 17:28:00 +0100.
+
+It was downloaded from http://sf.net/projects/jpeg
+
+Upstream Author(s):
+
+  Andy C. Hung
+
+Copyright:
+
+    Copyright (C) 1990, 1991, 1993 Andy C. Hung, all rights reserved.
+
+License:
+
+
+PUBLIC DOMAIN LICENSE: Stanford University Portable Video Research
+Group. If you use this software, you agree to the following: This
+program package is purely experimental, and is licensed "as is".
+Permission is granted to use, modify, and distribute this program
+without charge for any purpose, provided this license/ disclaimer
+notice appears in the copies.  No warranty or maintenance is given,
+either expressed or implied.  In no event shall the author(s) be
+liable to you or a third party for any special, incidental,
+consequential, or other damages, arising out of the use or inability
+to use the program for any purpose (or the loss of data), even if we
+have been advised of such possibilities.  Any public reference or
+advertisement of this source code should refer to it as the Portable
+Video Research Group (PVRG) code, and not by any author(s) (or
+Stanford University) name.
+
+The Debian packaging is (C) 2008, Mathieu Malaterre <mathieu.malaterre at gmail.com> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.


Property changes on: trunk/packages/pvrg/trunk/debian/copyright
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: trunk/packages/pvrg/trunk/debian/patches/cmakelists.txt.patch
===================================================================
--- trunk/packages/pvrg/trunk/debian/patches/cmakelists.txt.patch	                        (rev 0)
+++ trunk/packages/pvrg/trunk/debian/patches/cmakelists.txt.patch	2008-12-15 18:16:54 UTC (rev 2792)
@@ -0,0 +1,132 @@
+--- pvrg.orig/CMakeLists.txt	1970-01-01 01:00:00.000000000 +0100
++++ pvrg-1.2.1/CMakeLists.txt	2008-12-15 09:49:10.000000000 +0100
+@@ -0,0 +1,128 @@
++# Main CMakeLists.txt to build the PVRG project using CMake (www.cmake.org)
++# Written by Mathieu Malaterre
++IF(NOT PVRG_NAMESPACE)
++  SET(PVRG_NAMESPACE "PVRG")
++  SET(PVRG_STANDALONE 1)
++  SET(PVRG_INSTALL_BIN_DIR bin)
++  SET(PVRG_INSTALL_LIB_DIR lib)
++  SET(PVRG_INSTALL_INCLUDE_DIR include/pvrg)
++  OPTION(PVRG_BUILD_SHARED_LIBS "Build PVRG with shared libraries." OFF)
++  SET(BUILD_SHARED_LIBS ${PVRG_BUILD_SHARED_LIBS})
++ELSE(NOT PVRG_NAMESPACE)
++  IF(COMMAND APPEND_COPYRIGHT)
++    APPEND_COPYRIGHT(${CMAKE_CURRENT_SOURCE_DIR}/COPYING)
++  ENDIF(COMMAND APPEND_COPYRIGHT)
++ENDIF(NOT PVRG_NAMESPACE)
++# In all cases:
++STRING(TOLOWER ${PVRG_NAMESPACE} PVRG_LIBRARY_NAME)
++
++PROJECT(${PVRG_NAMESPACE} C)
++CMAKE_MINIMUM_REQUIRED(VERSION 2.2)
++
++if(COMMAND cmake_policy)
++  cmake_policy(SET CMP0003 NEW)
++endif(COMMAND cmake_policy)
++
++#-----------------------------------------------------------------------------
++# PVRG version number, usefull for packaging and doxygen doc:
++SET(PVRG_MAJOR_VERSION 1)
++SET(PVRG_MINOR_VERSION 2)
++SET(PVRG_BUILD_VERSION 1)
++SET(PVRG_VERSION
++  "${PVRG_MAJOR_VERSION}.${PVRG_MINOR_VERSION}.${PVRG_BUILD_VERSION}")
++
++SET(PVRG_LIBRARY_PROPERTIES ${PVRG_LIBRARY_PROPERTIES}
++  VERSION "${PVRG_VERSION}"
++  SOVERSION "${PVRG_MAJOR_VERSION}.${PVRG_MINOR_VERSION}"
++)
++
++# Do full dependency headers.
++INCLUDE_REGULAR_EXPRESSION("^.*$")
++
++SET(
++  PVRG_SRCS
++  jpeg.c
++  codec.c
++  huffman.c
++  io.c
++  chendct.c
++  leedct.c
++  marker.c
++  stream.c
++  transform.c
++)
++
++FIND_PROGRAM(LEX_COMPILER
++  NAMES lex
++)
++
++IF(LEX_COMPILER)
++  ADD_CUSTOM_COMMAND(
++    OUTPUT    ${CMAKE_CURRENT_BINARY_DIR}/lexer.c
++    COMMAND   ${LEX_COMPILER}
++    ARGS      -o ${CMAKE_CURRENT_BINARY_DIR}/lexer.c
++              ${CMAKE_CURRENT_SOURCE_DIR}/lexer.l
++    DEPENDS   ${CMAKE_CURRENT_SOURCE_DIR}/lexer.l
++    COMMENT   "Generating (newer) lexer.c based on lexer.l"
++    )
++  INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
++  SET( PVRG_SRCS
++    ${PVRG_SRCS}
++    ${CMAKE_CURRENT_BINARY_DIR}/lexer.c
++  )
++ELSE(LEX_COMPILER)
++  SET( PVRG_SRCS
++    ${PVRG_SRCS}
++    lexer.c
++  )
++ENDIF(LEX_COMPILER)
++
++
++
++# might not be portable, so simply rename the function in the code itself...
++#SET_SOURCE_FILES_PROPERTIES(jpeg.c 
++#  PROPERTIES
++#  COMPILE_FLAGS -Dmain=pvrgmain
++#)
++IF(MSVC)
++ADD_DEFINITIONS(-DNOTRUNCATE)
++ELSE(MSVC)
++ADD_DEFINITIONS(-DSYSV -DNOTRUNCATE)
++ENDIF(MSVC)
++#ADD_DEFINITIONS(-DIO_DEBUG)
++#ADD_LIBRARY(pvrg ${PVRG_SRCS})
++
++ADD_EXECUTABLE(${PVRG_LIBRARY_NAME}jpeg ${PVRG_SRCS})
++#TARGET_LINK_LIBRARIES(pvrgjpeg pvrg)
++
++#IF(NOT PVRG_INSTALL_NO_DEVELOPMENT)
++#  FILE(GLOB header_files "*.h")
++#  INSTALL(FILES ${header_files}
++#    DESTINATION ${PVRG_INSTALL_INCLUDE_DIR} COMPONENT Development
++#  )
++#ENDIF(NOT PVRG_INSTALL_NO_DEVELOPMENT)
++
++IF(NOT PVRG_INSTALL_NO_LIBRARIES)
++  INSTALL(TARGETS ${PVRG_LIBRARY_NAME}jpeg
++    RUNTIME DESTINATION ${PVRG_INSTALL_BIN_DIR} COMPONENT Runtime
++    LIBRARY DESTINATION ${PVRG_INSTALL_LIB_DIR} COMPONENT Runtime
++    ARCHIVE DESTINATION ${PVRG_INSTALL_LIB_DIR} COMPONENT Development
++	)
++ENDIF(NOT PVRG_INSTALL_NO_LIBRARIES)
++
++
++#
++# Should you wish to modify the interpreter
++# modify this portion here.
++#
++# Make sure that you move the first comment from the start to 
++# within the braces %{ /* */ %} in lexer.l,
++# otherwise it will give you a error (definitions too long). 
++#
++#  Caution: Sometimes -ll is required.
++#
++#
++#lexer.c: lexer.l
++#	lex lexer.l
++#	mv lex.yy.c lexer.c
++#
+


Property changes on: trunk/packages/pvrg/trunk/debian/patches/cmakelists.txt.patch
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: trunk/packages/pvrg/trunk/debian/patches/lexer.l.patch
===================================================================
--- trunk/packages/pvrg/trunk/debian/patches/lexer.l.patch	                        (rev 0)
+++ trunk/packages/pvrg/trunk/debian/patches/lexer.l.patch	2008-12-15 18:16:54 UTC (rev 2792)
@@ -0,0 +1,57 @@
+Need to patch lexel.l to get it to produce proper code
+
+--- pvrg-1.2.1.orig/lexer.l	1995-03-02 02:57:15.000000000 +0100
++++ pvrg-1.2.1/lexer.l	2008-12-15 09:49:10.000000000 +0100
+@@ -15,10 +15,27 @@
+ Video Research Group (PVRG) code, and not by any author(s) (or
+ Stanford University) name.
+ *************************************************************/
++%option yylineno
+ %{
+ 
+ /*LABEL lexer.c */
+ 
++/*
++ * flex command was run this way:
++ * 
++ *  $ lex -olexer.c lexer.l
++ */
++
++/* We do not care of interactive mode */
++#define YY_NEVER_INTERACTIVE 1
++#define YY_NO_UNPUT 1
++
++/* Do not include unistd.h in generated source. */
++#define YY_NO_UNISTD_H
++
++/* Skip declaring this function.  It is a macro.  */
++#define YY_SKIP_YYWRAP
++
+ /* Redefine the yywrap so that we don't have
+    to worry about lex library */
+ 
+@@ -364,12 +381,13 @@
+ {
+   BEGIN("hashpjw");
+   char *p;
+-  unsigned int h=0,g;
++  unsigned int g, h;
++  h=0;
+ 
+   for(p=s;*p!=EOS;p++)       /* Taken from Aho Sethi Ullman Compilers book. */
+     {
+       h = (h << 4) + *p;
+-      if (g = h&0xf0000000)
++      if ((g = h&0xf0000000))
+ 	{
+ 	  h = h ^(g >> 24);
+ 	  h = h ^ g;
+@@ -621,7 +639,7 @@
+   int Start,End;
+   int *ptr,*ptr2;
+ 
+-  while(token=yylex())        /* The code handling is simple enough. */
++  while((token=yylex()))        /* The code handling is simple enough. */
+     {                         /* just read the code and documentation */
+       ErrorValue=0;           /* book... */
+       arrayflag=0;


Property changes on: trunk/packages/pvrg/trunk/debian/patches/lexer.l.patch
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: trunk/packages/pvrg/trunk/debian/patches/series
===================================================================
--- trunk/packages/pvrg/trunk/debian/patches/series	                        (rev 0)
+++ trunk/packages/pvrg/trunk/debian/patches/series	2008-12-15 18:16:54 UTC (rev 2792)
@@ -0,0 +1,2 @@
+lexer.l.patch
+cmakelists.txt.patch


Property changes on: trunk/packages/pvrg/trunk/debian/patches/series
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: trunk/packages/pvrg/trunk/debian/rules
===================================================================
--- trunk/packages/pvrg/trunk/debian/rules	                        (rev 0)
+++ trunk/packages/pvrg/trunk/debian/rules	2008-12-15 18:16:54 UTC (rev 2792)
@@ -0,0 +1,92 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+include /usr/share/quilt/quilt.make
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp: $(QUILT_STAMPFN)
+	dh_testdir
+	# Add here commands to configure the package.
+	[ -d debian/build ] || mkdir debian/build
+	[ ! -e CMakeCache.txt ] || rm CMakeCache.txt
+	cd debian/build; cmake ../..
+
+	touch configure-stamp
+
+build: build-stamp
+build-stamp: configure-stamp 
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE) -C debian/build
+
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	rm -rf debian/build
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/tmp
+	$(MAKE) -C debian/build DESTDIR=$(CURDIR)/debian/tmp install
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_installexamples
+	dh_install --list-missing
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure


Property changes on: trunk/packages/pvrg/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: trunk/packages/pvrg/trunk/debian/watch
===================================================================
--- trunk/packages/pvrg/trunk/debian/watch	                        (rev 0)
+++ trunk/packages/pvrg/trunk/debian/watch	2008-12-15 18:16:54 UTC (rev 2792)
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/jpeg/JPEGv(.*)\.tar\.gz




More information about the debian-med-commit mailing list