View | Details | Raw Unified | Return to bug 146305
Collapse All | Expand All

(-)graphics/sam2p/Makefile (-15 / +22 lines)
Lines 7-39 Link Here
7
#
7
#
8
8
9
PORTNAME=	sam2p
9
PORTNAME=	sam2p
10
PORTVERSION=	0.45
10
PORTVERSION=	0.47
11
PORTREVISION=	3
12
PORTEPOCH=	1
11
PORTEPOCH=	1
13
CATEGORIES=	graphics
12
CATEGORIES=	graphics
14
MASTER_SITES=	http://www.inf.bme.hu/~pts/
13
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
15
DISTNAME=	${PORTNAME}-latest
16
14
17
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	ports@FreeBSD.org
18
COMMENT=	Converts raster (bitmap) image formats into PS or PDF files
16
COMMENT=	Converts raster (bitmap) image formats into PS or PDF files
19
17
20
BUILD_DEPENDS=	tif22pnm:${PORTSDIR}/graphics/tif22pnm \
18
RUN_DEPENDS=	zip:${PORTSDIR}/archivers/zip \
21
		tifftopnm:${PORTSDIR}/graphics/netpbm \
19
		cjpeg:${PORTSDIR}/graphics/jpeg \
22
		zip:${PORTSDIR}/archivers/zip \
20
		tif22pnm:${PORTSDIR}/graphics/tif22pnm
23
		bash:${PORTSDIR}/shells/bash
24
LIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg
25
21
26
USE_GHOSTSCRIPT_RUN=	yes
27
28
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
29
PLIST_FILES=	bin/sam2p
30
USE_PERL5_BUILD=	yes
22
USE_PERL5_BUILD=	yes
23
USE_GHOSTSCRIPT_RUN=	yes
31
USE_GMAKE=	yes
24
USE_GMAKE=	yes
32
GNU_CONFIGURE=	yes
25
GNU_CONFIGURE=	yes
26
CONFIGURE_ENV=	ac_cv_path_pts_bash="${SH}"
27
MAKE_ARGS=	CXXX="${CXX}" LDALL="${CC}" CXXFLAGSB="${CXXFLAGS}"
33
ALL_TARGET=	${PORTNAME}
28
ALL_TARGET=	${PORTNAME}
34
MAKE_JOBS_UNSAFE=	yes
29
MAKE_JOBS_SAFE=	yes
30
31
PORTDOCS=	*
32
PORTEXAMPLES=	*
33
PLIST_FILES=	bin/${PORTNAME}
35
34
36
do-install:
35
do-install:
37
	${INSTALL_PROGRAM} ${WRKSRC}/sam2p ${PREFIX}/bin
36
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
37
.if !defined(NOPORTDOCS)
38
	${MKDIR} ${DOCSDIR}
39
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
40
.endif
41
.if !defined(NOPORTEXAMPLES)
42
	${MKDIR} ${EXAMPLESDIR}
43
	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
44
.endif
38
45
39
.include <bsd.port.mk>
46
.include <bsd.port.mk>
(-)graphics/sam2p/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (sam2p-latest.tar.gz) = a4a02ab538485914327261ca4a7fb631
1
MD5 (sam2p-0.47.tar.gz) = 2f1acc6bc1f24d51c2906ce080f20687
2
SHA256 (sam2p-latest.tar.gz) = 2a26a9fedb40a20bb8ccfefd7fcd8552a259e8b333583a53ff70020d4364f292
2
SHA256 (sam2p-0.47.tar.gz) = 6e0cdab2b78124084a01cfb41fc5e42c0666c9103d7bf4f7c860f4406e051d23
3
SIZE (sam2p-latest.tar.gz) = 548637
3
SIZE (sam2p-0.47.tar.gz) = 558936
(-)graphics/sam2p/files/patch-gensh.hpp (+11 lines)
Line 0 Link Here
1
--- gensi.hpp.orig	2008-05-27 03:58:43.000000000 +0900
2
+++ gensi.hpp	2010-03-19 05:53:15.000000000 +0900
3
@@ -252,7 +252,7 @@
4
       if (len!=0) block(beg,len,data);
5
       block(0,0,data);
6
     }
7
-    inline virtual void first_sub(Sub &sub) const { sub.beg=beg; sub.len=len; };
8
+    inline virtual void first_sub(Sub &sub) const { sub.beg=beg; sub.len=len; }
9
     inline virtual void next_sub(Sub &sub) const { sub.len=0; }
10
     inline char const*getCString() const { return beg; }
11
     inline char const*operator()() const { return beg; }
(-)graphics/sam2p/files/patch-ps_tiny.c (+13 lines)
Line 0 Link Here
1
--- ps_tiny.c.orig	2005-02-22 08:22:22.000000000 +0900
2
+++ ps_tiny.c	2010-03-19 05:54:19.000000000 +0900
3
@@ -1,10 +1,3 @@
4
-#define DUMMY \
5
-set -ex; \
6
-gcc -O3 -s -DNDEBUG=1 -DNO_CONFIG=1 -ansi -pedantic -Wunused \
7
-  -Wall -W -Wstrict-prototypes -Wtraditional -Wnested-externs -Winline \
8
-  -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wmissing-prototypes \
9
-  -Wmissing-declarations ps_tiny.c -o ps_tiny; \
10
-exit
11
 /* ps_tiny.c -- read .pin files, write short PostScript code
12
  * by pts@fazekas.hu at Sat Aug 24 12:46:14 CEST 2002
13
  * -- Sat Aug 24 18:23:08 CEST 2002
(-)graphics/sam2p/files/patch-pts_defl.c (+13 lines)
Line 0 Link Here
1
--- pts_defl.c.orig	2008-08-29 05:16:47.000000000 +0900
2
+++ pts_defl.c	2010-03-19 05:54:55.000000000 +0900
3
@@ -1,10 +1,3 @@
4
-#define DUMMY \
5
-set -ex; \
6
-"${CC:-gcc}" -DNDEBUG=1 -DPTS_DEFL_MAIN -O3 -ansi \
7
-  -Wall -W -Wstrict-prototypes -Wtraditional -Wnested-externs -Winline \
8
-  -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wmissing-prototypes \
9
-  -Wmissing-declarations pts_defl.c -o flateenc; \
10
-exit
11
 /*
12
  * pts_defl.c -- C source file ZIP compression ripped from linux-2.6.8.1
13
  * by pts@fazekas.hu at Tue Jan 18 15:19:06 CET 2005
(-)graphics/sam2p/files/patch-pts_lzw.c (+13 lines)
Line 0 Link Here
1
--- pts_lzw.c.orig	2002-12-12 01:43:08.000000000 +0900
2
+++ pts_lzw.c	2010-03-19 05:56:24.000000000 +0900
3
@@ -1,10 +1,3 @@
4
-#define DUMMY \
5
-set -ex; \
6
-g++ -DNDEBUG=1 -O3 -ansi -pedantic \
7
-  -Wall -W -Wstrict-prototypes -Wtraditional -Wnested-externs -Winline \
8
-  -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wmissing-prototypes \
9
-  -Wmissing-declarations pts_lzw.c -c; \
10
-exit
11
 /* pts_lzw.c -- a real, effective implementation of PostScript
12
  *   LanguageLevel2 and PDF /LZWEncode and /LZWDecode filters (same as the LZW
13
  *   compression used in TIFF raster image files)
(-)graphics/sam2p/pkg-descr (-1 / +1 lines)
Lines 6-9 Link Here
6
of many other common image converters. sam2p provides ZIP, RLE and LZW
6
of many other common image converters. sam2p provides ZIP, RLE and LZW
7
(de)compression filters even on Level1 devices.
7
(de)compression filters even on Level1 devices.
8
8
9
WWW: http://www.inf.bme.hu/~pts/sam2p/
9
WWW: http://code.google.com/p/sam2p/

Return to bug 146305