mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
Import posterazor.
The PosteRazor cuts a raster image into pieces which can afterwards be printed out and assembled to a poster. As input, the PosteRazor takes a raster image. The resulting poster is saved as a multipage PDF document. An easy to use, wizard like user interface guides through 5 steps. tweaks and OK sthen@
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2019/08/02 15:24:45 kirby Exp $
|
||||
|
||||
COMMENT = split large images into smaller ones to assemble posters
|
||||
|
||||
DISTNAME = PosteRazor-1.5.1-Source
|
||||
PKGNAME = posterazor-1.5.1
|
||||
|
||||
CATEGORIES = graphics
|
||||
|
||||
HOMEPAGE = http://posterazor.sourceforge.net/
|
||||
|
||||
MAINTAINER = Kirill Bychkov <kirby@openbsd.org>
|
||||
|
||||
# GPLv3+
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
WANTLIB += ${COMPILER_LIBCXX} X11 Xpm c fltk fltk_images freeimage m
|
||||
|
||||
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=posterazor/}
|
||||
|
||||
EXTRACT_SUFX = .zip
|
||||
EXTRACT_CASES = \
|
||||
*.zip) unzip -qa ${FULLDISTDIR}/$$archive -d ${WRKDIR}/${DISTNAME};;
|
||||
|
||||
# c++11
|
||||
COMPILER = base-clang ports-gcc
|
||||
MODULES = devel/cmake
|
||||
LIB_DEPENDS = graphics/freeimage \
|
||||
x11/fltk
|
||||
|
||||
CONFIGURE_ARGS = -DCMAKE_CXX_FLAGS="${CXXFLAGS} -I${LOCALBASE}/include \
|
||||
-I${X11BASE}/include -Wno-write-strings \
|
||||
-Wno-deprecated-declarations \
|
||||
-Wno-reserved-user-defined-literal" \
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
|
||||
-Wno-dev
|
||||
|
||||
NO_TEST = Yes
|
||||
|
||||
WRKSRC = ${WRKDIST}/src
|
||||
|
||||
post-extract:
|
||||
perl -i -pe 's/\r$$//' ${WRKSRC}/FlPosteRazorDialog.cpp
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKBUILD}/PosteRazor ${PREFIX}/bin/posterazor
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -0,0 +1,2 @@
|
||||
SHA256 (PosteRazor-1.5.1-Source.zip) = BbujA2ASyqQelb3iFAwgeJC0OhzXqufIa1UD+tFsF7c=
|
||||
SIZE (PosteRazor-1.5.1-Source.zip) = 268294
|
||||
@@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-src_FlPosteRazorDialog_cpp,v 1.1.1.1 2019/08/02 15:24:45 kirby Exp $
|
||||
|
||||
Index: src/FlPosteRazorDialog.cpp
|
||||
--- src/FlPosteRazorDialog.cpp.orig
|
||||
+++ src/FlPosteRazorDialog.cpp
|
||||
@@ -39,6 +39,7 @@
|
||||
#define CASESENSITIVESTRNCMP strnicmp
|
||||
#else
|
||||
#include <iostream>
|
||||
+ #include <unistd.h>
|
||||
#define CASESENSITIVESTRCMP strcasecmp
|
||||
#define CASESENSITIVESTRNCMP strncasecmp
|
||||
#endif
|
||||
@@ -0,0 +1,5 @@
|
||||
The PosteRazor cuts a raster image into pieces which can afterwards
|
||||
be printed out and assembled to a poster. As input, the PosteRazor
|
||||
takes a raster image. The resulting poster is saved as a multipage
|
||||
PDF document. An easy to use, wizard like user interface guides
|
||||
through 5 steps.
|
||||
@@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2019/08/02 15:24:45 kirby Exp $
|
||||
@bin bin/posterazor
|
||||
Reference in New Issue
Block a user