Import psdim 1.4
psdim is a small utility to be used in conjunction with pstops. It looks at the contents of a postscript document to determine the size of the printed pages. From this, it calculates the optimal placement of the pages for n-up printing. It outputs a format string suitable for processing by pstops. Flavors: a4 - Use A4 paper size by default From Steven Mestdagh <steven.mestdagh@esat.kuleuven.be>
This commit is contained in:
parent
5959c94650
commit
15df219375
37
print/psdim/Makefile
Normal file
37
print/psdim/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2005/11/01 00:19:17 alek Exp $
|
||||
|
||||
COMMENT= "intelligent n-up printing"
|
||||
|
||||
DISTNAME= psdim-1.4
|
||||
CATEGORIES= print
|
||||
|
||||
HOMEPAGE= http://www.mathstat.dal.ca/~selinger/psdim
|
||||
|
||||
MAINTAINER= Steven Mestdagh <steven.mestdagh@esat.kuleuven.be>
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}/download/
|
||||
|
||||
BUILD_DEPENDS= :ghostscript-*:print/ghostscript/gnu
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
WANTLIB= c
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ARGS= --enable-metric
|
||||
|
||||
SEPARATE_BUILD= concurrent
|
||||
|
||||
FLAVORS= a4
|
||||
FLAVOR?=
|
||||
|
||||
.if defined(FLAVOR) && ${FLAVOR:L} == "a4"
|
||||
CONFIGURE_ARGS+= --enable-a4
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
4
print/psdim/distinfo
Normal file
4
print/psdim/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
MD5 (psdim-1.4.tar.gz) = 1e953d81876b5423a535583188196584
|
||||
RMD160 (psdim-1.4.tar.gz) = a72a1aab8f5b93880e84762349a7c6fe07379bf4
|
||||
SHA1 (psdim-1.4.tar.gz) = 94a9fd74c4787bd827fc5890fbd58714925b2cab
|
||||
SIZE (psdim-1.4.tar.gz) = 99679
|
18
print/psdim/patches/patch-src_psdim_c
Normal file
18
print/psdim/patches/patch-src_psdim_c
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-src_psdim_c,v 1.1.1.1 2005/11/01 00:19:17 alek Exp $
|
||||
--- src/psdim.c.orig Thu Mar 31 05:20:13 2005
|
||||
+++ src/psdim.c Sat Oct 22 14:33:58 2005
|
||||
@@ -52,10 +52,11 @@ int x2list[] = { 0, 8, 7, 8, 6, 8, 7, 8,
|
||||
4, 8, 7, 8, 6, 8, 7, 8, 5, 8, 7, 8, 6, 8, 7, 8, };
|
||||
|
||||
char *strcat_safe(char *dest, const char *src) {
|
||||
-
|
||||
- dest = realloc(dest, strlen(dest)+strlen(src)+1);
|
||||
+ int siz;
|
||||
+ siz = strlen(dest)+strlen(src)+1;
|
||||
+ dest = realloc(dest, siz);
|
||||
if (dest) {
|
||||
- strcat(dest, src);
|
||||
+ strlcat(dest, src, siz);
|
||||
}
|
||||
return dest;
|
||||
}
|
8
print/psdim/pkg/DESCR
Normal file
8
print/psdim/pkg/DESCR
Normal file
@ -0,0 +1,8 @@
|
||||
psdim is a small utility to be used in conjunction with pstops.
|
||||
It looks at the contents of a postscript document to determine the
|
||||
size of the printed pages. From this, it calculates the optimal
|
||||
placement of the pages for n-up printing. It outputs a format
|
||||
string suitable for processing by pstops.
|
||||
|
||||
Flavors:
|
||||
a4 - Use A4 paper size by default
|
3
print/psdim/pkg/PLIST
Normal file
3
print/psdim/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/11/01 00:19:17 alek Exp $
|
||||
bin/psdim
|
||||
@man man/man1/psdim.1
|
Loading…
Reference in New Issue
Block a user