Import opencc-1.0.5.
Open Chinese Convert (OpenCC) is an open-source project for conversion between Traditional Chinese and Simplified Chinese, supporting character-level conversion, phrase-level conversion, variant conversion and regional idioms among Mainland China, Taiwan and Hong Kong. ok naddy@ (Reimporting into the correct directory.)
This commit is contained in:
parent
8ee472ea7d
commit
48e4397130
96
converters/opencc/Makefile
Normal file
96
converters/opencc/Makefile
Normal file
@ -0,0 +1,96 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
SUBDIR =
|
||||
SUBDIR += base64
|
||||
SUBDIR += btoa
|
||||
SUBDIR += convmv
|
||||
SUBDIR += d1489
|
||||
SUBDIR += dos2unix
|
||||
SUBDIR += enca
|
||||
SUBDIR += html2text
|
||||
SUBDIR += html2wml
|
||||
SUBDIR += ish
|
||||
SUBDIR += k2pdfopt
|
||||
SUBDIR += lastools
|
||||
SUBDIR += libdvdcss
|
||||
SUBDIR += libiconv
|
||||
SUBDIR += libpst
|
||||
SUBDIR += libunistring
|
||||
SUBDIR += libytnef
|
||||
SUBDIR += lua-iconv
|
||||
SUBDIR += lua-iconv,lua52
|
||||
SUBDIR += lua-iconv,lua53
|
||||
SUBDIR += lua-utf8
|
||||
SUBDIR += lua-utf8,lua52
|
||||
SUBDIR += lua-utf8,lua53
|
||||
SUBDIR += luastruct
|
||||
SUBDIR += luastruct,lua52
|
||||
SUBDIR += luastruct,lua53
|
||||
SUBDIR += mimepp
|
||||
SUBDIR += mpack
|
||||
SUBDIR += otf2bdf
|
||||
SUBDIR += p5-Calendar-Simple
|
||||
SUBDIR += p5-Catalyst-Plugin-Charsets-Japanese
|
||||
SUBDIR += p5-Catalyst-View-JSON
|
||||
SUBDIR += p5-Convert-ASCII-Armour
|
||||
SUBDIR += p5-Convert-ASN1
|
||||
SUBDIR += p5-Convert-BER
|
||||
SUBDIR += p5-Convert-Base32
|
||||
SUBDIR += p5-Convert-BinHex
|
||||
SUBDIR += p5-Convert-Binary-C
|
||||
SUBDIR += p5-Convert-Color
|
||||
SUBDIR += p5-Convert-PEM
|
||||
SUBDIR += p5-Convert-TNEF
|
||||
SUBDIR += p5-Convert-UU
|
||||
SUBDIR += p5-Convert-UUlib
|
||||
SUBDIR += p5-Cpanel-JSON-XS
|
||||
SUBDIR += p5-Date-Tolkien-Shire
|
||||
SUBDIR += p5-Date-Tolkien-Shire-Data
|
||||
SUBDIR += p5-DateManip
|
||||
SUBDIR += p5-Encode-IMAPUTF7
|
||||
SUBDIR += p5-Finance-Currency-Convert-XE
|
||||
SUBDIR += p5-JSON
|
||||
SUBDIR += p5-JSON-Any
|
||||
SUBDIR += p5-JSON-DWIW
|
||||
SUBDIR += p5-JSON-MaybeXS
|
||||
SUBDIR += p5-JSON-XS
|
||||
SUBDIR += p5-JSON-XS-VersionOneAndTwo
|
||||
SUBDIR += p5-Jcode
|
||||
SUBDIR += p5-MARC-Record
|
||||
SUBDIR += p5-Net-IDN-Encode
|
||||
SUBDIR += p5-Net-IDN-Nameprep
|
||||
SUBDIR += p5-Sereal-Decoder
|
||||
SUBDIR += p5-Sereal-Encoder
|
||||
SUBDIR += p5-Text-Iconv
|
||||
SUBDIR += p5-Types-Serialiser
|
||||
SUBDIR += p5-Unicode-LineBreak
|
||||
SUBDIR += p5-Unicode-Map
|
||||
SUBDIR += p5-Unicode-Map8
|
||||
SUBDIR += p5-Unicode-MapUTF8
|
||||
SUBDIR += p5-Unicode-String
|
||||
SUBDIR += p5-Unicode-Stringprep
|
||||
SUBDIR += pflogx
|
||||
SUBDIR += ppmtoTbmp
|
||||
SUBDIR += py-amf
|
||||
SUBDIR += py-cjkcodecs
|
||||
SUBDIR += py-html2text
|
||||
SUBDIR += py-html2text,python3
|
||||
SUBDIR += py-iconvcodec
|
||||
SUBDIR += py-mini-amf
|
||||
SUBDIR += py-mini-amf,python3
|
||||
SUBDIR += qprint
|
||||
SUBDIR += recode
|
||||
SUBDIR += ripmime
|
||||
SUBDIR += rpm2cpio
|
||||
SUBDIR += ruby-multi_json
|
||||
SUBDIR += sqlite2mdoc
|
||||
SUBDIR += trans
|
||||
SUBDIR += unoconv
|
||||
SUBDIR += unsf
|
||||
SUBDIR += uudeview
|
||||
SUBDIR += wv
|
||||
SUBDIR += wv2
|
||||
SUBDIR += xlhtml
|
||||
SUBDIR += xmltoman
|
||||
|
||||
.include <bsd.port.subdir.mk>
|
21
converters/opencc/base64/Makefile
Normal file
21
converters/opencc/base64/Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
COMMENT= converter to/from base64 encoding
|
||||
|
||||
DISTNAME= base64-1.5
|
||||
CATEGORIES= converters
|
||||
REVISION = 1
|
||||
|
||||
HOMEPAGE= https://www.fourmilab.ch/webtools/base64/
|
||||
|
||||
# public domain
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
WANTLIB= c
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
|
||||
CONFIGURE_STYLE=gnu
|
||||
ALL_TARGET= prog
|
||||
TEST_TARGET= wringer
|
||||
|
||||
.include <bsd.port.mk>
|
2
converters/opencc/base64/distinfo
Normal file
2
converters/opencc/base64/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (base64-1.5.tar.gz) = JBZXi6enGXvd0e5Xim2IcnB8gx0kGb3CwbQxen48iio=
|
||||
SIZE (base64-1.5.tar.gz) = 223946
|
16
converters/opencc/base64/patches/patch-base64_c
Normal file
16
converters/opencc/base64/patches/patch-base64_c
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-base64_c,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
Index: base64.c
|
||||
--- base64.c.orig
|
||||
+++ base64.c
|
||||
@@ -352,6 +352,10 @@ fo= stdout;
|
||||
|
||||
/*18:*/
|
||||
#line 457 "base64.w"
|
||||
+if (pledge("stdio", NULL) == -1) {
|
||||
+ fprintf(stderr, "pledge\n");
|
||||
+ return 1;
|
||||
+}
|
||||
|
||||
while((opt= getopt(argc,argv,"denu-:"))!=-1){
|
||||
switch(opt){
|
2
converters/opencc/base64/pkg/DESCR
Normal file
2
converters/opencc/base64/pkg/DESCR
Normal file
@ -0,0 +1,2 @@
|
||||
BASE64 is a simple command-line filter which encodes and decodes
|
||||
binary files in Base64 encoding as defined in RFC 1341.
|
3
converters/opencc/base64/pkg/PLIST
Normal file
3
converters/opencc/base64/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
@bin bin/base64
|
||||
@man man/man1/base64.1
|
26
converters/opencc/btoa/Makefile
Normal file
26
converters/opencc/btoa/Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
COMMENT= encode/decode binary to printable ASCII
|
||||
|
||||
DISTNAME= btoa-5.2
|
||||
PKGNAME= btoa-5.2.1
|
||||
CATEGORIES= converters
|
||||
REVISION = 0
|
||||
|
||||
PERMIT_PACKAGE_CDROM= no fee
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
WANTLIB= c
|
||||
|
||||
MASTER_SITES= http://www.netsw.org/system/tools/fileutils/encode/
|
||||
PATCHFILES= btoa-5.2-patch1.gz
|
||||
|
||||
MAKE_FLAGS= DESTDIR=${PREFIX}
|
||||
MAKE_FILE= Makefile.sun
|
||||
FAKE_FLAGS= DESTDIR=${WRKINST}${PREFIX}
|
||||
|
||||
# Turn off the default from bsd.port.mk (-p0), which screws things up
|
||||
PATCH_DIST_STRIP=
|
||||
|
||||
NO_TEST= Yes
|
||||
|
||||
.include <bsd.port.mk>
|
4
converters/opencc/btoa/distinfo
Normal file
4
converters/opencc/btoa/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
SHA256 (btoa-5.2-patch1.gz) = 3szz1bGOdrTlwRLlyiX2AMRBRY7f97pPB9zwlbBMSrI=
|
||||
SHA256 (btoa-5.2.tar.gz) = QLoU3GgrZuTnmZAfnaPgKRggoP2SIN/jHNUTNowOPMg=
|
||||
SIZE (btoa-5.2-patch1.gz) = 807
|
||||
SIZE (btoa-5.2.tar.gz) = 10188
|
39
converters/opencc/btoa/patches/patch-Makefile_sun
Normal file
39
converters/opencc/btoa/patches/patch-Makefile_sun
Normal file
@ -0,0 +1,39 @@
|
||||
$OpenBSD: patch-Makefile_sun,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
--- Makefile.sun.orig Sat Mar 17 15:50:50 2001
|
||||
+++ Makefile.sun Sat Mar 17 15:52:11 2001
|
||||
@@ -1,28 +1,23 @@
|
||||
OBJS = btoa.o atob.o repair.o
|
||||
|
||||
-DESTDIR ?= /usr/local
|
||||
-
|
||||
all: btoa
|
||||
|
||||
btoa: $(OBJS)
|
||||
- cc -O $(OBJS) -o btoa
|
||||
+ ${CC} -O $(OBJS) -o btoa
|
||||
|
||||
btoa.o: btoa.c btoa.h chksum.h
|
||||
- cc -c -O btoa.c
|
||||
+ ${CC} -c ${CFLAGS} btoa.c
|
||||
|
||||
atob.o: atob.c btoa.h chksum.h
|
||||
- cc -c -O atob.c
|
||||
+ ${CC} -c ${CFLAGS} atob.c
|
||||
|
||||
repair.o: repair.c btoa.h
|
||||
- cc -c -O repair.c
|
||||
+ ${CC} -c ${CFLAGS} repair.c
|
||||
|
||||
install: btoa btoa.1
|
||||
- -@mkdir -p $(DESTDIR)/bin
|
||||
- install -c -s -m 755 btoa $(DESTDIR)/bin/btoa
|
||||
- rm -f $(DESTDIR)/bin/atob
|
||||
- ln $(DESTDIR)/bin/btoa $(DESTDIR)/bin/atob
|
||||
- -@mkdir -p $(DESTDIR)/man/man1
|
||||
- install -c -m 644 btoa.1 $(DESTDIR)/man/man1/btoa.1
|
||||
+ ${BSD_INSTALL_PROGRAM} btoa $(PREFIX)/bin/
|
||||
+ ln $(PREFIX)/bin/btoa $(PREFIX)/bin/atob
|
||||
+ ${BSD_INSTALL_MAN} btoa.1 $(PREFIX)/man/man1/
|
||||
|
||||
clean:
|
||||
rm -f btoa $(OBJS)
|
9
converters/opencc/btoa/pkg/DESCR
Normal file
9
converters/opencc/btoa/pkg/DESCR
Normal file
@ -0,0 +1,9 @@
|
||||
This is a port of btoa version 5.2, written by Paul Rutter, Joe
|
||||
Orost & Stefan Parmark. btoa converts 4 binary characters to 5
|
||||
ascii ones, causing a 25% expansion. (btoa is thus more efficient
|
||||
than uuencode, which causes a 33% expansion.) Spaces will not be
|
||||
used, which should make it safe to send files over e-mail or Usenet
|
||||
without risking that blanks become tabs. Each resulting row of
|
||||
text has a single-byte checksum for error detection. A diagnosis
|
||||
file provides a list of errors found this way, which could then be
|
||||
used to retransmit only the failing lines.
|
4
converters/opencc/btoa/pkg/PLIST
Normal file
4
converters/opencc/btoa/pkg/PLIST
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
@bin bin/atob
|
||||
@bin bin/btoa
|
||||
@man man/man1/btoa.1
|
15
converters/opencc/convmv/Makefile
Normal file
15
converters/opencc/convmv/Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
COMMENT = convert filenames from one encoding to another
|
||||
DISTNAME = convmv-2.03
|
||||
CATEGORIES = converters
|
||||
HOMEPAGE = http://www.j3e.de/linux/convmv/
|
||||
|
||||
# GPLv2+
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
MASTER_SITES = ${HOMEPAGE}
|
||||
TEST_TARGET = test
|
||||
MAKE_FLAGS = PREFIX='${PREFIX}'
|
||||
|
||||
.include <bsd.port.mk>
|
2
converters/opencc/convmv/distinfo
Normal file
2
converters/opencc/convmv/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (convmv-2.03.tar.gz) = +Jj9hQyO9avkj3U25LI85OEbYTOXSy/EHZGX3+zBwCc=
|
||||
SIZE (convmv-2.03.tar.gz) = 29688
|
25
converters/opencc/convmv/patches/patch-Makefile
Normal file
25
converters/opencc/convmv/patches/patch-Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
--- Makefile.orig Sat Nov 29 14:49:38 2008
|
||||
+++ Makefile Sun Jan 27 13:45:26 2013
|
||||
@@ -1,6 +1,6 @@
|
||||
DESTDIR=
|
||||
PREFIX=/usr/local
|
||||
-MANDIR=$(PREFIX)/share/man
|
||||
+MANDIR=$(PREFIX)/man
|
||||
TAR=tar
|
||||
FIND=find
|
||||
SED=sed
|
||||
@@ -10,11 +10,11 @@ all: manpage
|
||||
install: all
|
||||
mkdir -p $(DESTDIR)$(MANDIR)/man1/
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/bin/
|
||||
- cp convmv.1.gz $(DESTDIR)$(MANDIR)/man1/
|
||||
+ cp convmv.1 $(DESTDIR)$(MANDIR)/man1/
|
||||
install -m 755 convmv $(DESTDIR)$(PREFIX)/bin/
|
||||
|
||||
manpage:
|
||||
- pod2man --section 1 --center=" " convmv | gzip > convmv.1.gz
|
||||
+ pod2man --section 1 --center=" " convmv > convmv.1
|
||||
|
||||
clean:
|
||||
rm -f convmv.1.gz convmv-*.tar.gz MD5sums SHA256sums .files .name
|
4
converters/opencc/convmv/pkg/DESCR
Normal file
4
converters/opencc/convmv/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
convmv is meant to help convert a single filename, a directory tree and
|
||||
the contained files or a whole filesystem into a different encoding. It
|
||||
just converts the filenames, not the content of the files. A special
|
||||
feature of convmv is that it also takes care of symlinks.
|
3
converters/opencc/convmv/pkg/PLIST
Normal file
3
converters/opencc/convmv/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
bin/convmv
|
||||
@man man/man1/convmv.1
|
29
converters/opencc/d1489/Makefile
Normal file
29
converters/opencc/d1489/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
COMMENT= cp866<>koi8-r & cp1251<>koi8-r decoders and font converter
|
||||
|
||||
DISTNAME= d1489-1.5.1
|
||||
REVISION= 0
|
||||
CATEGORIES= converters
|
||||
|
||||
MASTER_SITES= http://koi8.pp.ru/dist/
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
WANTLIB= c
|
||||
|
||||
NO_TEST= Yes
|
||||
|
||||
MAKE_FLAGS= LOCAL_CFLAGS=-DHAVE_MKSTEMP LOCAL_LDFLAGS=""
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/todos ${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/a2kfcnv ${PREFIX}/bin
|
||||
cd ${PREFIX}/bin; ln -s todos fromdos; ln -s todos fromwin; \
|
||||
ln -s todos towin
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/d1489
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/d1489
|
||||
|
||||
.include <bsd.port.mk>
|
2
converters/opencc/d1489/distinfo
Normal file
2
converters/opencc/d1489/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (d1489-1.5.1.tgz) = eyoCp8Wh95VoETQcAST8Xpzbhd95VsAYs43EEXgpnn4=
|
||||
SIZE (d1489-1.5.1.tgz) = 9862
|
64
converters/opencc/d1489/patches/patch-todos_c
Normal file
64
converters/opencc/d1489/patches/patch-todos_c
Normal file
@ -0,0 +1,64 @@
|
||||
$OpenBSD: patch-todos_c,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
--- todos.c.orig Fri Jan 3 01:17:18 2003
|
||||
+++ todos.c Sun Mar 20 22:24:09 2011
|
||||
@@ -33,6 +33,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
+#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#if defined(__MSDOS__) || defined(__OS2__)
|
||||
@@ -55,7 +56,6 @@ char inbuf[NEEDSIZ];
|
||||
char outbuf[NEEDSIZ];
|
||||
#endif
|
||||
|
||||
-extern char *mktemp();
|
||||
int RENAME(), decode();
|
||||
|
||||
#include "alt2koi8.h"
|
||||
@@ -63,6 +63,9 @@ int RENAME(), decode();
|
||||
#include "win2koi8.h"
|
||||
#include "koi82win.h"
|
||||
|
||||
+#ifdef HAVE_MKSTEMP
|
||||
+int tmpfd;
|
||||
+#endif
|
||||
char tmp_pat[] = "$1489_XXXXXX";
|
||||
char tmp_name[256], out_name[256];
|
||||
char **table;
|
||||
@@ -258,10 +261,21 @@ usage:
|
||||
}
|
||||
|
||||
sprintf(tmp_name, "%s%s%s", outdir, *outdir ? "/" : "", tmp_pat);
|
||||
+#ifdef HAVE_MKSTEMP
|
||||
+ if ((tmpfd = mkstemp(tmp_name)) < 0) {
|
||||
+ perror(tmp_name);
|
||||
+ return 1;
|
||||
+ }
|
||||
+ if ((fout = fdopen(tmpfd, WB)) == NULL) {
|
||||
+ perror(tmp_name);
|
||||
+ return 1;
|
||||
+ }
|
||||
+#else
|
||||
if ((tmpn = mktemp(tmp_name)) == NULL) {
|
||||
perror(tmp_name);
|
||||
return 1;
|
||||
}
|
||||
+#endif
|
||||
|
||||
while (ac-- > 1) {
|
||||
srcn = av[1];
|
||||
@@ -274,10 +288,12 @@ usage:
|
||||
perror(srcn);
|
||||
goto usage;
|
||||
}
|
||||
+#ifndef HAVE_MKSTEMP
|
||||
if ((fout = fopen(tmpn, WB)) == NULL) {
|
||||
perror(tmpn);
|
||||
return 1;
|
||||
}
|
||||
+#endif
|
||||
if (*outdir) {
|
||||
sprintf(out_name, "%s/%s", outdir, basename(srcn));
|
||||
if (verbose)
|
8
converters/opencc/d1489/pkg/DESCR
Normal file
8
converters/opencc/d1489/pkg/DESCR
Normal file
@ -0,0 +1,8 @@
|
||||
todos/fromdos: point-to-point cp866<->koi8-r decoder with CR/LF
|
||||
translation
|
||||
|
||||
towin/fromwin: best match cp1251<->koi8-r decoder with CR/LF translation
|
||||
|
||||
a2kfcnv: EGA/VGA raw screen fonts converter: cp866 font -> koi8-r font
|
||||
|
||||
All programs written according to RFC 1489
|
9
converters/opencc/d1489/pkg/PLIST
Normal file
9
converters/opencc/d1489/pkg/PLIST
Normal file
@ -0,0 +1,9 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
@pkgpath russian/d1489
|
||||
@bin bin/a2kfcnv
|
||||
bin/fromdos
|
||||
bin/fromwin
|
||||
@bin bin/todos
|
||||
bin/towin
|
||||
share/doc/d1489/
|
||||
share/doc/d1489/README
|
37
converters/opencc/dos2unix/Makefile
Normal file
37
converters/opencc/dos2unix/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
COMMENT= convert DOS/MAC files to UNIX (line-endings/charset)
|
||||
|
||||
DISTNAME = dos2unix-7.4.0
|
||||
|
||||
CATEGORIES= converters
|
||||
|
||||
HOMEPAGE= http://waterlan.home.xs4all.nl/dos2unix.html
|
||||
MAINTAINER= Brian Callahan <bcallah@openbsd.org>
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
WANTLIB += c intl
|
||||
|
||||
MASTER_SITES= http://waterlan.home.xs4all.nl/dos2unix/
|
||||
|
||||
BUILD_DEPENDS= devel/gettext-tools
|
||||
|
||||
LIB_DEPENDS= devel/gettext
|
||||
|
||||
MAKE_FLAGS= CC="${CC}"
|
||||
FAKE_FLAGS= prefix="${PREFIX}" \
|
||||
docsubdir=dos2unix \
|
||||
man1dir="${PREFIX}/man/man1"
|
||||
|
||||
USE_GMAKE= Yes
|
||||
|
||||
pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/Makefile
|
||||
|
||||
post-install:
|
||||
mv ${PREFIX}/share/man/* ${PREFIX}/man/
|
||||
rmdir ${PREFIX}/share/man
|
||||
|
||||
.include <bsd.port.mk>
|
2
converters/opencc/dos2unix/distinfo
Normal file
2
converters/opencc/dos2unix/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (dos2unix-7.4.0.tar.gz) = usdlq9vZXN2HpxmJ1DgsMs88v+7iFT8Ahsuc8YJhBIo=
|
||||
SIZE (dos2unix-7.4.0.tar.gz) = 710339
|
18
converters/opencc/dos2unix/patches/patch-Makefile
Normal file
18
converters/opencc/dos2unix/patches/patch-Makefile
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
Index: Makefile
|
||||
--- Makefile.orig
|
||||
+++ Makefile
|
||||
@@ -298,6 +298,13 @@ ifdef ENABLE_NLS
|
||||
endif
|
||||
endif
|
||||
|
||||
+ifeq (openbsd,$(D2U_OS))
|
||||
+ifdef ENABLE_NLS
|
||||
+ CFLAGS_OS = -I${LOCALBASE}/include
|
||||
+ LDFLAGS_EXTRA = -lintl -L${LOCALBASE}/lib
|
||||
+endif
|
||||
+endif
|
||||
+
|
||||
ifeq (darwin,$(D2U_OS))
|
||||
ifdef ENABLE_NLS
|
||||
CFLAGS_OS = -I/usr/local/include
|
8
converters/opencc/dos2unix/pkg/DESCR
Normal file
8
converters/opencc/dos2unix/pkg/DESCR
Normal file
@ -0,0 +1,8 @@
|
||||
Convert text files with DOS or Mac line breaks to Unix line breaks and
|
||||
vice versa. Features:
|
||||
|
||||
* Automatically skips binary and non-regular files.
|
||||
* In-place, paired, or stdio mode conversion.
|
||||
* Keep original file dates option.
|
||||
* 7-bit and iso conversion modes like SunOS dos2unix.
|
||||
* Conversion of Windows UTF-16 files to Unix UTF-8.
|
118
converters/opencc/dos2unix/pkg/PLIST
Normal file
118
converters/opencc/dos2unix/pkg/PLIST
Normal file
@ -0,0 +1,118 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
@bin bin/dos2unix
|
||||
bin/mac2unix
|
||||
@bin bin/unix2dos
|
||||
bin/unix2mac
|
||||
man/de/
|
||||
man/de/man1/
|
||||
@man man/de/man1/dos2unix.1
|
||||
@man man/de/man1/mac2unix.1
|
||||
@man man/de/man1/unix2dos.1
|
||||
@man man/de/man1/unix2mac.1
|
||||
man/es/
|
||||
man/es/man1/
|
||||
@man man/es/man1/dos2unix.1
|
||||
@man man/es/man1/mac2unix.1
|
||||
@man man/es/man1/unix2dos.1
|
||||
@man man/es/man1/unix2mac.1
|
||||
man/fr/
|
||||
man/fr/man1/
|
||||
@man man/fr/man1/dos2unix.1
|
||||
@man man/fr/man1/mac2unix.1
|
||||
@man man/fr/man1/unix2dos.1
|
||||
@man man/fr/man1/unix2mac.1
|
||||
@man man/man1/dos2unix.1
|
||||
@man man/man1/mac2unix.1
|
||||
@man man/man1/unix2dos.1
|
||||
@man man/man1/unix2mac.1
|
||||
man/nl/
|
||||
man/nl/man1/
|
||||
@man man/nl/man1/dos2unix.1
|
||||
@man man/nl/man1/mac2unix.1
|
||||
@man man/nl/man1/unix2dos.1
|
||||
@man man/nl/man1/unix2mac.1
|
||||
man/pl/
|
||||
man/pl/man1/
|
||||
@man man/pl/man1/dos2unix.1
|
||||
@man man/pl/man1/mac2unix.1
|
||||
@man man/pl/man1/unix2dos.1
|
||||
@man man/pl/man1/unix2mac.1
|
||||
man/pt_BR/
|
||||
man/pt_BR/man1/
|
||||
@man man/pt_BR/man1/dos2unix.1
|
||||
@man man/pt_BR/man1/mac2unix.1
|
||||
@man man/pt_BR/man1/unix2dos.1
|
||||
@man man/pt_BR/man1/unix2mac.1
|
||||
man/sv/
|
||||
man/sv/man1/
|
||||
@man man/sv/man1/dos2unix.1
|
||||
@man man/sv/man1/mac2unix.1
|
||||
@man man/sv/man1/unix2dos.1
|
||||
@man man/sv/man1/unix2mac.1
|
||||
man/uk/
|
||||
man/uk/man1/
|
||||
@man man/uk/man1/dos2unix.1
|
||||
@man man/uk/man1/mac2unix.1
|
||||
@man man/uk/man1/unix2dos.1
|
||||
@man man/uk/man1/unix2mac.1
|
||||
man/zh_CN/
|
||||
man/zh_CN/man1/
|
||||
@man man/zh_CN/man1/dos2unix.1
|
||||
@man man/zh_CN/man1/mac2unix.1
|
||||
@man man/zh_CN/man1/unix2dos.1
|
||||
@man man/zh_CN/man1/unix2mac.1
|
||||
share/doc/dos2unix/
|
||||
share/doc/dos2unix/BUGS.txt
|
||||
share/doc/dos2unix/COPYING.txt
|
||||
share/doc/dos2unix/ChangeLog.txt
|
||||
share/doc/dos2unix/INSTALL.txt
|
||||
share/doc/dos2unix/NEWS.txt
|
||||
share/doc/dos2unix/README.txt
|
||||
share/doc/dos2unix/TODO.txt
|
||||
share/doc/dos2unix/de/
|
||||
share/doc/dos2unix/de/dos2unix.htm
|
||||
share/doc/dos2unix/de/dos2unix.txt
|
||||
share/doc/dos2unix/dos2unix.htm
|
||||
share/doc/dos2unix/dos2unix.txt
|
||||
share/doc/dos2unix/es/
|
||||
share/doc/dos2unix/es/dos2unix.htm
|
||||
share/doc/dos2unix/es/dos2unix.txt
|
||||
share/doc/dos2unix/fr/
|
||||
share/doc/dos2unix/fr/dos2unix.htm
|
||||
share/doc/dos2unix/fr/dos2unix.txt
|
||||
share/doc/dos2unix/nl/
|
||||
share/doc/dos2unix/nl/dos2unix.htm
|
||||
share/doc/dos2unix/nl/dos2unix.txt
|
||||
share/doc/dos2unix/pl/
|
||||
share/doc/dos2unix/pl/dos2unix.htm
|
||||
share/doc/dos2unix/pl/dos2unix.txt
|
||||
share/doc/dos2unix/pt_BR/
|
||||
share/doc/dos2unix/pt_BR/dos2unix.htm
|
||||
share/doc/dos2unix/pt_BR/dos2unix.txt
|
||||
share/doc/dos2unix/sv/
|
||||
share/doc/dos2unix/sv/dos2unix.htm
|
||||
share/doc/dos2unix/sv/dos2unix.txt
|
||||
share/doc/dos2unix/uk/
|
||||
share/doc/dos2unix/uk/dos2unix.htm
|
||||
share/doc/dos2unix/uk/dos2unix.txt
|
||||
share/doc/dos2unix/zh_CN/
|
||||
share/doc/dos2unix/zh_CN/dos2unix.htm
|
||||
share/doc/dos2unix/zh_CN/dos2unix.txt
|
||||
share/locale/da/LC_MESSAGES/dos2unix.mo
|
||||
share/locale/de/LC_MESSAGES/dos2unix.mo
|
||||
share/locale/eo/LC_MESSAGES/dos2unix.mo
|
||||
share/locale/es/LC_MESSAGES/dos2unix.mo
|
||||
share/locale/fr/LC_MESSAGES/dos2unix.mo
|
||||
share/locale/hu/LC_MESSAGES/dos2unix.mo
|
||||
share/locale/ja/LC_MESSAGES/dos2unix.mo
|
||||
share/locale/nb/LC_MESSAGES/dos2unix.mo
|
||||
share/locale/nl/LC_MESSAGES/dos2unix.mo
|
||||
share/locale/pl/LC_MESSAGES/dos2unix.mo
|
||||
share/locale/pt_BR/LC_MESSAGES/dos2unix.mo
|
||||
share/locale/ru/LC_MESSAGES/dos2unix.mo
|
||||
share/locale/sr/LC_MESSAGES/dos2unix.mo
|
||||
share/locale/sv/LC_MESSAGES/dos2unix.mo
|
||||
share/locale/uk/LC_MESSAGES/dos2unix.mo
|
||||
share/locale/vi/LC_MESSAGES/dos2unix.mo
|
||||
share/locale/zh_CN/LC_MESSAGES/dos2unix.mo
|
||||
share/locale/zh_TW/LC_MESSAGES/dos2unix.mo
|
32
converters/opencc/enca/Makefile
Normal file
32
converters/opencc/enca/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
COMMENT= detect character set and encoding of text files
|
||||
|
||||
DISTNAME= enca-1.19
|
||||
SHARED_LIBS += enca 0.0 # 5.1
|
||||
CATEGORIES= converters textproc
|
||||
REVISION= 0
|
||||
|
||||
HOMEPAGE= http://cihar.com/software/enca/
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
WANTLIB = c iconv intl m recode
|
||||
|
||||
MASTER_SITES= http://dl.cihar.com/enca/
|
||||
|
||||
|
||||
BUILD_DEPENDS= converters/p5-Unicode-Map8
|
||||
LIB_DEPENDS= converters/recode
|
||||
|
||||
SEPARATE_BUILD= Yes
|
||||
USE_GMAKE= Yes
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ARGS+= --disable-rpath \
|
||||
--with-libiconv-prefix=${LOCALBASE} \
|
||||
--with-librecode=${LOCALBASE}
|
||||
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
|
||||
.include <bsd.port.mk>
|
2
converters/opencc/enca/distinfo
Normal file
2
converters/opencc/enca/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (enca-1.19.tar.gz) = TDBcxZ8+V/LPwVCmrFEWkPQ2M1lXYOHLJmvyM2LXL4o=
|
||||
SIZE (enca-1.19.tar.gz) = 727558
|
12
converters/opencc/enca/patches/patch-test_test-iconv_sh
Normal file
12
converters/opencc/enca/patches/patch-test_test-iconv_sh
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-test_test-iconv_sh,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
--- test/test-iconv.sh.orig Mon Jan 4 19:12:05 2016
|
||||
+++ test/test-iconv.sh Fri Jan 8 22:17:39 2016
|
||||
@@ -23,7 +23,7 @@ if $ENCA --list converters | grep '^iconv$' >/dev/null
|
||||
diff $TEST_TEXT $TESTNAME.actual || DIE=1
|
||||
# One copy doesn't contain enough characters to overweight the noise
|
||||
cat $TESTNAME.tmp $TESTNAME.tmp $TESTNAME.tmp >$TESTNAME.actual
|
||||
- echo 'č' >>$TESTNAME.actual
|
||||
+ perl -i -pe 's/$/\xe8\n/' $TESTNAME.actual
|
||||
cat $TESTNAME.actual >$TESTNAME.tmp
|
||||
$ENCA $OPTS -x ISO-8859-2 $TESTNAME.tmp 2>/dev/null && DIE=1
|
||||
diff $TESTNAME.tmp $TESTNAME.actual || DIE=1
|
4
converters/opencc/enca/pkg/DESCR
Normal file
4
converters/opencc/enca/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
Enca is an Extremely Naive Charset Analyser. It detects character set
|
||||
and encoding of text files and can also convert them to other encodings
|
||||
using either a built-in converter or external libraries and tools like
|
||||
libiconv, librecode, etc.
|
28
converters/opencc/enca/pkg/PLIST
Normal file
28
converters/opencc/enca/pkg/PLIST
Normal file
@ -0,0 +1,28 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
@bin bin/enca
|
||||
bin/enconv
|
||||
include/enca.h
|
||||
lib/libenca.a
|
||||
lib/libenca.la
|
||||
@lib lib/libenca.so.${LIBenca_VERSION}
|
||||
lib/pkgconfig/enca.pc
|
||||
libexec/enca/
|
||||
libexec/enca/extconv/
|
||||
libexec/enca/extconv/cstocs
|
||||
libexec/enca/extconv/map
|
||||
libexec/enca/extconv/piconv
|
||||
libexec/enca/extconv/recode
|
||||
libexec/enca/extconv/umap
|
||||
@man man/man1/enca.1
|
||||
@man man/man1/enconv.1
|
||||
share/gtk-doc/
|
||||
share/gtk-doc/html/
|
||||
share/gtk-doc/html/libenca/
|
||||
share/gtk-doc/html/libenca/ch01.html
|
||||
share/gtk-doc/html/libenca/index.html
|
||||
share/gtk-doc/html/libenca/index.sgml
|
||||
share/gtk-doc/html/libenca/libenca-Analyser.html
|
||||
share/gtk-doc/html/libenca/libenca-Auxiliary-Functions.html
|
||||
share/gtk-doc/html/libenca/libenca-Charsets-and-Surfaces.html
|
||||
share/gtk-doc/html/libenca/libenca-Typedefs-and-Constants.html
|
||||
share/gtk-doc/html/libenca/libenca.devhelp2
|
42
converters/opencc/html2text/Makefile
Normal file
42
converters/opencc/html2text/Makefile
Normal file
@ -0,0 +1,42 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
PORTROACH= skipv:1.3.2
|
||||
|
||||
COMMENT= advanced HTML-to-text converter
|
||||
|
||||
DISTNAME= html2text-1.3.2a
|
||||
REVISION = 5
|
||||
CATEGORIES= converters textproc
|
||||
|
||||
|
||||
HOMEPAGE= http://www.mbayer.de/html2text/
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
WANTLIB += c m ${COMPILER_LIBCXX}
|
||||
|
||||
MASTER_SITES= http://www.mbayer.de/html2text/downloads/ \
|
||||
ftp://ftp.ibiblio.org/pub/linux/apps/www/converters/
|
||||
|
||||
COMPILER = base-clang ports-gcc base-gcc
|
||||
|
||||
CONFIGURE_STYLE= simple
|
||||
CONFIGURE_ENV= CXX="${CXX}"
|
||||
|
||||
MAKE_FLAGS= PREFIX="${PREFIX}" \
|
||||
CXXFLAGS="-DVERSION=1.3.2a -DAUTO_PTR_BROKEN ${CXXFLAGS}"
|
||||
|
||||
NO_TEST= Yes
|
||||
|
||||
post-extract:
|
||||
gunzip ${WRKSRC}/{html2text.1,html2textrc.5}.gz
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/html2text ${PREFIX}/bin/
|
||||
${INSTALL_MAN} ${WRKSRC}/html2text.1 ${PREFIX}/man/man1
|
||||
${INSTALL_MAN} ${WRKSRC}/html2textrc.5 ${PREFIX}/man/man5
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html2text
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/html2text
|
||||
|
||||
.include <bsd.port.mk>
|
2
converters/opencc/html2text/distinfo
Normal file
2
converters/opencc/html2text/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (html2text-1.3.2a.tar.gz) = AAs51dkQuGf/fghxd7RwoeJuKBmSDc/9WZHDP21IA5I=
|
||||
SIZE (html2text-1.3.2a.tar.gz) = 130088
|
25
converters/opencc/html2text/patches/patch-Makefile_in
Normal file
25
converters/opencc/html2text/patches/patch-Makefile_in
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
--- Makefile.in.orig Wed Jan 14 14:47:02 2004
|
||||
+++ Makefile.in Thu Sep 13 21:36:17 2007
|
||||
@@ -29,9 +29,9 @@ BISONXX = bison++
|
||||
YFLAGS =
|
||||
|
||||
INSTALLER = install
|
||||
-BINDIR = /usr/local/bin
|
||||
-MANDIR = /usr/local/man
|
||||
-DOCDIR = /usr/share/doc/html2text
|
||||
+BINDIR = $(PREFIX)/bin
|
||||
+MANDIR = $(PREFIX)/man
|
||||
+DOCDIR = $(PREFIX)/share/doc/html2text
|
||||
|
||||
CXX = @CXX@
|
||||
BOOL_DEFINITION = @BOOL_DEFINITION@
|
||||
@@ -48,7 +48,7 @@ DEBUG=-O2 -g
|
||||
INCLUDES = $(LIBSTDCXX_INCLUDES)
|
||||
DEFINES = -DVERSION=$(VERSION) $(SYS_POLL_MISSING) $(BOOL_DEFINITION) $(EXPLICIT) $(AUTO_PTR_BROKEN)
|
||||
CPPFLAGS = $(INCLUDES) $(DEFINES)
|
||||
-CXXFLAGS = $(CPPFLAGS) $(DEBUG)
|
||||
+CXXFLAGS = $(CPPFLAGS)
|
||||
LDFLAGS = $(DEBUG)
|
||||
LOADLIBES = $(LIBSTDCXX_LIBS) $(SOCKET_LIBRARIES)
|
||||
|
19
converters/opencc/html2text/patches/patch-configure
Normal file
19
converters/opencc/html2text/patches/patch-configure
Normal file
@ -0,0 +1,19 @@
|
||||
$OpenBSD: patch-configure,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
--- configure.orig Mon Jan 12 15:47:18 2004
|
||||
+++ configure Sun Feb 26 20:25:48 2017
|
||||
@@ -38,6 +38,7 @@ int main(int, char **) {
|
||||
return 0;
|
||||
}
|
||||
EOF
|
||||
+if [[ -z $CXX ]]; then
|
||||
CXX=unknown;
|
||||
for i in "CC" "g++" "cc" "$CC"; do
|
||||
if $i -c $tmp_file.C 2>/dev/null; then
|
||||
@@ -45,6 +46,7 @@ for i in "CC" "g++" "cc" "$CC"; do
|
||||
break;
|
||||
fi;
|
||||
done;
|
||||
+fi;
|
||||
if test "$CXX" = unknown; then
|
||||
$echo "Error: Could not find a working C++ compiler.";
|
||||
exit 1;
|
8
converters/opencc/html2text/pkg/DESCR
Normal file
8
converters/opencc/html2text/pkg/DESCR
Normal file
@ -0,0 +1,8 @@
|
||||
html2text is a command line utility, written in C++, that converts HTML
|
||||
documents into plain text.
|
||||
|
||||
Each HTML document is loaded from a location indicated by a URI or read
|
||||
from standard input, and formatted into a stream of plain text
|
||||
characters that is written to standard output or into an output-file.
|
||||
The input-URI may specify a remote site, from that the documents are
|
||||
loaded via the Hypertext Transfer Protocol (HTTP).
|
6
converters/opencc/html2text/pkg/PLIST
Normal file
6
converters/opencc/html2text/pkg/PLIST
Normal file
@ -0,0 +1,6 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
@bin bin/html2text
|
||||
@man man/man1/html2text.1
|
||||
@man man/man5/html2textrc.5
|
||||
share/doc/html2text/
|
||||
share/doc/html2text/README
|
30
converters/opencc/html2wml/Makefile
Normal file
30
converters/opencc/html2wml/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
COMMENT = on-the-fly HTML to WML conversion
|
||||
|
||||
DISTNAME = html2wml-0.4.11
|
||||
CATEGORIES = converters www perl5
|
||||
REVISION = 0
|
||||
|
||||
HOMEPAGE = http://maddingue.free.fr/softwares/html2wml.html.en
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
MASTER_SITES = http://maddingue.free.fr/softwares/download/Html2Wml/ \
|
||||
${MASTER_SITE_SOURCEFORGE:=htmlwml/}
|
||||
|
||||
BUILD_DEPENDS = ${RUN_DEPENDS}
|
||||
RUN_DEPENDS = www/p5-libwww \
|
||||
www/p5-CGI \
|
||||
textproc/p5-XML-Parser \
|
||||
textproc/p5-XML-LibXML \
|
||||
textproc/p5-XML-Checker \
|
||||
textproc/p5-Text-Template
|
||||
|
||||
NO_BUILD = Yes
|
||||
USE_GMAKE = Yes
|
||||
MAKE_ENV += MAKE_PROGRAM='${MAKE_PROGRAM}'
|
||||
NO_TEST = Yes
|
||||
|
||||
.include <bsd.port.mk>
|
2
converters/opencc/html2wml/distinfo
Normal file
2
converters/opencc/html2wml/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (html2wml-0.4.11.tar.gz) = 81tMNZn33WGqvBGeyqWiJPR2+ICgurZ4+YyZelNtWSg=
|
||||
SIZE (html2wml-0.4.11.tar.gz) = 114379
|
31
converters/opencc/html2wml/patches/patch-Makefile
Normal file
31
converters/opencc/html2wml/patches/patch-Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
--- Makefile.orig Mon Apr 25 14:31:07 2011
|
||||
+++ Makefile Mon Apr 25 14:33:17 2011
|
||||
@@ -1,6 +1,6 @@
|
||||
# =========================================================================== #
|
||||
# Configuration
|
||||
-PREFIX=/usr/local
|
||||
+#PREFIX=/usr/local
|
||||
CGIDIR=/home/httpd/cgi-bin
|
||||
|
||||
# =========================================================================== #
|
||||
@@ -12,7 +12,7 @@ VERSION=0.4.11
|
||||
# Standard subdirectories locations
|
||||
BINDIR=$(PREFIX)/bin
|
||||
MANDIR=$(PREFIX)/man
|
||||
-DOCDIR=$(PREFIX)/doc/html2wml
|
||||
+DOCDIR=$(PREFIX)/share/doc/html2wml
|
||||
|
||||
MAN1DIR=$(MANDIR)/man1
|
||||
|
||||
@@ -34,8 +34,8 @@ install: check-config directories
|
||||
install -m 555 html2wml.cgi $(BINDIR)/html2wml
|
||||
install -m 444 doc/html2wml.man $(MAN1DIR)/html2wml.1
|
||||
install -m 444 COPYING INSTALL NEWS NOTES README TODO ChangeLog $(DOCDIR)
|
||||
- make -C t/ install DOCDIR=$(DOCDIR)
|
||||
- make -C doc/ install DOCDIR=$(DOCDIR)
|
||||
+ $(MAKE_PROGRAM) -C t/ install DOCDIR=$(DOCDIR)
|
||||
+ $(MAKE_PROGRAM) -C doc/ install DOCDIR=$(DOCDIR)
|
||||
|
||||
installcgi: check-config
|
||||
install -m 555 html2wml.cgi $(CGIDIR)
|
4
converters/opencc/html2wml/pkg/DESCR
Normal file
4
converters/opencc/html2wml/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
Html2Wml converts HTML pages to WML pages, suitable for being viewed
|
||||
on a Wap device. The conversion can be done either on the command
|
||||
line to create static WML pages or on-the-fly by calling this program
|
||||
as a CGI.
|
2
converters/opencc/html2wml/pkg/MESSAGE
Normal file
2
converters/opencc/html2wml/pkg/MESSAGE
Normal file
@ -0,0 +1,2 @@
|
||||
If you want to activate html2wml as a CGI, then copy
|
||||
${PREFIX}/bin/html2wml into your cgi-bin directory.
|
36
converters/opencc/html2wml/pkg/PLIST
Normal file
36
converters/opencc/html2wml/pkg/PLIST
Normal file
@ -0,0 +1,36 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
bin/html2wml
|
||||
@man man/man1/html2wml.1
|
||||
share/doc/html2wml/
|
||||
share/doc/html2wml/COPYING
|
||||
share/doc/html2wml/ChangeLog
|
||||
share/doc/html2wml/INSTALL
|
||||
share/doc/html2wml/NEWS
|
||||
share/doc/html2wml/NOTES
|
||||
share/doc/html2wml/README
|
||||
share/doc/html2wml/TODO
|
||||
share/doc/html2wml/readme.html
|
||||
share/doc/html2wml/readme.pdf
|
||||
share/doc/html2wml/readme.pod
|
||||
share/doc/html2wml/t/
|
||||
share/doc/html2wml/t/form.html
|
||||
share/doc/html2wml/t/samples/
|
||||
share/doc/html2wml/t/samples/inc_para.wml
|
||||
share/doc/html2wml/t/samples/inc_prev.wml
|
||||
share/doc/html2wml/t/samples/mix1.html
|
||||
share/doc/html2wml/t/samples/mix2.html
|
||||
share/doc/html2wml/t/samples/struct.html
|
||||
share/doc/html2wml/t/samples/t-a.html
|
||||
share/doc/html2wml/t/samples/t-anchor.html
|
||||
share/doc/html2wml/t/samples/t-bad-entities.html
|
||||
share/doc/html2wml/t/samples/t-br.html
|
||||
share/doc/html2wml/t/samples/t-double-tags.html
|
||||
share/doc/html2wml/t/samples/t-extcharset.html
|
||||
share/doc/html2wml/t/samples/t-fake-tags.html
|
||||
share/doc/html2wml/t/samples/t-frames.html
|
||||
share/doc/html2wml/t/samples/t-img.html
|
||||
share/doc/html2wml/t/samples/t-include.html
|
||||
share/doc/html2wml/t/samples/t-nest.html
|
||||
share/doc/html2wml/t/samples/t-no-tag.html
|
||||
share/doc/html2wml/t/samples/t-special-chars.html
|
||||
share/doc/html2wml/t/samples/t-urls.html
|
27
converters/opencc/ish/Makefile
Normal file
27
converters/opencc/ish/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
COMMENT= binary-to-text file converter
|
||||
|
||||
DISTNAME= ish201a5
|
||||
PKGNAME= ish-2.01a5
|
||||
CATEGORIES= converters
|
||||
|
||||
PERMIT_PACKAGE_CDROM= no license
|
||||
PERMIT_PACKAGE_FTP= no license
|
||||
PERMIT_DISTFILES_FTP= no license
|
||||
|
||||
WANTLIB += c
|
||||
|
||||
MASTER_SITES= \
|
||||
${MASTER_SITE_FREEBSD} \
|
||||
http://www.unix.gr.jp/jnetcex/soft/
|
||||
|
||||
MAKE_FILE= makefile
|
||||
MAKE_FLAGS= CFLAGS="${CFLAGS}" CC="${CC}"
|
||||
ALL_TARGET= ish dispish
|
||||
NO_TEST= Yes
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC}; ${INSTALL_PROGRAM} ish dispish ${PREFIX}/bin
|
||||
|
||||
.include <bsd.port.mk>
|
2
converters/opencc/ish/distinfo
Normal file
2
converters/opencc/ish/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (ish201a5.tar.gz) = tigowYxFZL9qk6DCEQYDV8PStfC2d3pSw5nBD02TkG0=
|
||||
SIZE (ish201a5.tar.gz) = 25803
|
14
converters/opencc/ish/patches/patch-crc32_c
Normal file
14
converters/opencc/ish/patches/patch-crc32_c
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-crc32_c,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
Fix: Multi-volume format cannot handle on 64bit environment.
|
||||
|
||||
--- crc32.c.orig Wed Apr 20 06:23:00 1994
|
||||
+++ crc32.c Fri Dec 30 23:09:44 2011
|
||||
@@ -78,6 +78,7 @@ unsigned char *arg;
|
||||
int len;
|
||||
unsigned long crc;
|
||||
{
|
||||
+ crc &= 0xffffffffU;
|
||||
while(--len >= 0) {
|
||||
crc = crc >> 8 ^ crctbl[(crc & 0xff) ^ *arg++];
|
||||
}
|
17
converters/opencc/ish/patches/patch-decode_c
Normal file
17
converters/opencc/ish/patches/patch-decode_c
Normal file
@ -0,0 +1,17 @@
|
||||
$OpenBSD: patch-decode_c,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
Fix: When decoding, the status display has Y2K problem.
|
||||
|
||||
--- decode.c.orig Sun Jan 7 10:46:37 1996
|
||||
+++ decode.c Fri Dec 30 23:09:44 2011
|
||||
@@ -273,8 +273,8 @@ ish_head *head;
|
||||
tm.tm_min = (p[1]&0x07)<<3;
|
||||
tm.tm_min += p[0]>>5;
|
||||
tm.tm_sec = (p[0]&0x1f)<<1;
|
||||
- fprintf(stderr,"%02d/%02d/%02d %02d:%02d:%02d ",
|
||||
- tm.tm_year,tm.tm_mon+1,tm.tm_mday,tm.tm_hour,tm.tm_min,tm.tm_sec);
|
||||
+ fprintf(stderr,"%04d/%02d/%02d %02d:%02d:%02d ",
|
||||
+ tm.tm_year+1900,tm.tm_mon+1,tm.tm_mday,tm.tm_hour,tm.tm_min,tm.tm_sec);
|
||||
#ifdef __TURBOC__
|
||||
memcpy( &timep[0], head->time, 4);
|
||||
timep[1] = timep[0];
|
51
converters/opencc/ish/patches/patch-mvol_c
Normal file
51
converters/opencc/ish/patches/patch-mvol_c
Normal file
@ -0,0 +1,51 @@
|
||||
$OpenBSD: patch-mvol_c,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
- Fix multi-volume format cannot handle on 64bit environment
|
||||
- Add missing includes
|
||||
- Add non-implicit return type to fix build with clang
|
||||
|
||||
--- mvol.c.orig Sun Jan 7 21:47:17 1996
|
||||
+++ mvol.c Sat Apr 22 11:59:17 2017
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
+#include <sys/stat.h>
|
||||
#ifndef NOINDEX
|
||||
#include <strings.h>
|
||||
#endif
|
||||
@@ -17,8 +18,12 @@
|
||||
#else
|
||||
#include <dirent.h>
|
||||
#endif
|
||||
+#include <stdlib.h>
|
||||
+#include <unistd.h>
|
||||
#include "ish.h"
|
||||
|
||||
+void restore_done(char *, char *, long);
|
||||
+
|
||||
extern unsigned long fsize;
|
||||
extern unsigned long v_offset;
|
||||
extern unsigned short max_vol;
|
||||
@@ -208,10 +213,8 @@ int m,k;
|
||||
|
||||
#define COPY_BUF 1024
|
||||
|
||||
-restore_done(src, dst,sz)
|
||||
-char *src;
|
||||
-char *dst;
|
||||
-long sz;
|
||||
+void
|
||||
+restore_done(char *src, char *dst, long sz)
|
||||
{
|
||||
int id;
|
||||
int od;
|
||||
@@ -248,7 +251,7 @@ unsigned char *p;
|
||||
}
|
||||
close(id);
|
||||
close(od);
|
||||
- crc32 = ~crc32;
|
||||
+ crc32 = ~crc32 & 0xffffffffU;
|
||||
crc16 = ~crc16;
|
||||
if (crc32 == ncrc32 && crc16 == ncrc16) {
|
||||
/* checksum OK */
|
13
converters/opencc/ish/pkg/DESCR
Normal file
13
converters/opencc/ish/pkg/DESCR
Normal file
@ -0,0 +1,13 @@
|
||||
ish is a format to encode binary files to text file, or decode text
|
||||
files into binary file. ish has strong error correction/detection
|
||||
functionality using CRC and checksum.
|
||||
This format is popular in Japanese BBS'es.
|
||||
|
||||
To non-Japanese people:
|
||||
To produce non-Japanese text a user should use "-s7" option.
|
||||
Other options such as "-ss" may produce Japanese text.
|
||||
To Japanese people:
|
||||
To use ish over NetNews newsgroups (such as fj.*), use "-s7" option.
|
||||
Use of "-ss" will not give you the optimal performance.
|
||||
"-ss" option is just for BBSes that use Shift-JIS as their native
|
||||
Japanese encoding.
|
3
converters/opencc/ish/pkg/PLIST
Normal file
3
converters/opencc/ish/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
@bin bin/dispish
|
||||
@bin bin/ish
|
55
converters/opencc/k2pdfopt/Makefile
Normal file
55
converters/opencc/k2pdfopt/Makefile
Normal file
@ -0,0 +1,55 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
BROKEN = has locally modified copied of MuPDF files; some of these have changed API in 1.12.0 causing breakage
|
||||
|
||||
COMMENT = optimizes PDF/DJVU files for mobile e-readers
|
||||
|
||||
V = 2.42
|
||||
DISTNAME = k2pdfopt_v${V}_src
|
||||
PKGNAME = k2pdfopt-${V}
|
||||
MASTER_SITES = http://willus.com/k2pdfopt/src/
|
||||
EXTRACT_SUFX = .zip
|
||||
REVISION = 2
|
||||
|
||||
CATEGORIES = converters
|
||||
|
||||
HOMEPAGE = http://willus.com/k2pdfopt/
|
||||
MAINTAINER = Paul Irofti <pirofti@openbsd.org>
|
||||
|
||||
# GPLv3
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
MODULES = devel/cmake
|
||||
|
||||
WANTLIB += ${COMPILER_LIBCXX} c freetype jbig2dec jpeg m png z \
|
||||
djvulibre jasper lept mupdf openjpeg tesseract
|
||||
|
||||
COMPILER = base-clang ports-gcc base-gcc
|
||||
|
||||
BUILD_DEPENDS += textproc/mupdf:patch \
|
||||
graphics/leptonica:configure \
|
||||
graphics/tesseract/tesseract:patch
|
||||
|
||||
LIB_DEPENDS += graphics/png \
|
||||
graphics/jpeg \
|
||||
graphics/jbig2dec \
|
||||
graphics/openjpeg \
|
||||
textproc/mupdf \
|
||||
graphics/djvulibre \
|
||||
graphics/leptonica \
|
||||
graphics/tesseract/tesseract
|
||||
|
||||
RUN_DEPENDS += print/ghostscript/gnu
|
||||
|
||||
WRKDIST = ${WRKDIR}/k2pdfopt_v${V}
|
||||
|
||||
post-extract:
|
||||
ln -s ${WRKDIR}/graphics/leptonica/leptonica-* ${WRKSRC}/leptonica
|
||||
ln -s ${WRKDIR}/graphics/tesseract/tesseract/tesseract-* \
|
||||
${WRKSRC}/tesseract
|
||||
ln -s ${WRKDIR}/textproc/mupdf/mupdf-* ${WRKSRC}/mupdf
|
||||
|
||||
pre-patch:
|
||||
@cd ${WRKSRC}; perl -i -pe 's/\r$$//' `find . -type f`
|
||||
|
||||
.include <bsd.port.mk>
|
2
converters/opencc/k2pdfopt/distinfo
Normal file
2
converters/opencc/k2pdfopt/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (k2pdfopt_v2.42_src.zip) = mqvWsZzhFbl/wM0xlclaMPO60FBl2LtHkfVynU2gOuk=
|
||||
SIZE (k2pdfopt_v2.42_src.zip) = 2829697
|
84
converters/opencc/k2pdfopt/patches/patch-CMakeLists_txt
Normal file
84
converters/opencc/k2pdfopt/patches/patch-CMakeLists_txt
Normal file
@ -0,0 +1,84 @@
|
||||
$OpenBSD: patch-CMakeLists_txt,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
Index: CMakeLists.txt
|
||||
--- CMakeLists.txt.orig
|
||||
+++ CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-project(k2pdfopt C)
|
||||
+project(k2pdfopt)
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
# ---- Test for packages
|
||||
@@ -52,6 +52,8 @@ endif(JPEG_FOUND)
|
||||
include(FindJasper)
|
||||
if(JASPER_FOUND)
|
||||
set(HAVE_JASPER_LIB 1)
|
||||
+ include_directories(SYSTEM ${CMAKE_INSTALL_PREFIX}/include/jasper)
|
||||
+ set(K2PDFOPT_LIB ${K2PDFOPT_LIB} ${JASPER_LIBRARY})
|
||||
endif(JASPER_FOUND)
|
||||
|
||||
# paths from willuslib/wgs.c
|
||||
@@ -84,6 +86,22 @@ if(MUPDF_FOUND)
|
||||
)
|
||||
endif(MUPDF_FOUND)
|
||||
|
||||
+find_library(FREETYPE_LIB freetype PATHS /usr/X11R6/lib)
|
||||
+if(FREETYPE_LIB)
|
||||
+ include_directories(SYSTEM /usr/X11R6/include /usr/X11R6/include/freetype2)
|
||||
+ message(STATUS "freetype libraries: ${FREETYPE_LIB}")
|
||||
+ set(K2PDFOPT_LIB ${K2PDFOPT_LIB} ${FREETYPE_LIB})
|
||||
+endif()
|
||||
+
|
||||
+find_library(MUPDF_LIB mupdf PATHS ${CMAKE_INSTALL_PREFIX}/lib)
|
||||
+if(MUPDF_LIB)
|
||||
+ set(HAVE_MUPDF_LIB 1)
|
||||
+ include_directories(SYSTEM ${CMAKE_INSTALL_PREFIX}/include)
|
||||
+ message(STATUS "mupdf libraries: ${MUPDF_LIB}")
|
||||
+ set(K2PDFOPT_LIB ${K2PDFOPT_LIB} ${MUPDF_LIB}
|
||||
+ -lopenjpeg -ljbig2dec -ljpeg)
|
||||
+endif()
|
||||
+
|
||||
pkg_check_modules(DJVU ddjvuapi)
|
||||
if(DJVU_FOUND)
|
||||
set(HAVE_DJVU_LIB 1)
|
||||
@@ -92,14 +110,30 @@ if(DJVU_FOUND)
|
||||
endif(DJVU_FOUND)
|
||||
|
||||
# HAVE_GOCR_LIB
|
||||
-# HAVE_LEPTONICA_LIB
|
||||
+# LEPTONICA
|
||||
+find_library(LEPT_LIB lept PATHS ${CMAKE_INSTALL_PREFIX}/lib)
|
||||
+if(LEPT_LIB)
|
||||
+ set(HAVE_LEPTONICA_LIB 1)
|
||||
+ include_directories(SYSTEM ${CMAKE_INSTALL_PREFIX}/include leptonica_mod)
|
||||
+ message(STATUS "leptonica libraries: ${LEPT_LIB}")
|
||||
+ set(K2PDFOPT_LIB ${K2PDFOPT_LIB} ${LEPT_LIB})
|
||||
+endif()
|
||||
+
|
||||
# HAVE_TESSERACT_LIB
|
||||
+find_library(TESSERACT_LIB tesseract PATHS ${CMAKE_INSTALL_PREFIX}/lib)
|
||||
+if(TESSERACT_LIB)
|
||||
+ set(HAVE_TESSERACT_LIB 1)
|
||||
+ include_directories(SYSTEM ${CMAKE_INSTALL_PREFIX}/include)
|
||||
+ message(STATUS "tesseract libraries: ${TESSERACT_LIB}")
|
||||
+ set(K2PDFOPT_LIB ${K2PDFOPT_LIB} ${TESSERACT_LIB})
|
||||
+endif()
|
||||
|
||||
+
|
||||
# ---- Describe project
|
||||
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_CMAKE -Wall")
|
||||
|
||||
-include_directories(. willuslib k2pdfoptlib)
|
||||
+include_directories(. ${PROJECT_BINARY_DIR} include_mod willuslib k2pdfoptlib)
|
||||
|
||||
configure_file (
|
||||
"${PROJECT_SOURCE_DIR}/config.h.in"
|
||||
@@ -113,6 +147,7 @@ add_subdirectory(k2pdfoptlib)
|
||||
add_executable(k2pdfopt k2pdfopt.c)
|
||||
target_link_libraries (k2pdfopt k2pdfoptlib willuslib ${K2PDFOPT_LIB})
|
||||
|
||||
+install (TARGETS k2pdfopt RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|
||||
|
||||
message("")
|
||||
message("-- Summary --")
|
@ -0,0 +1,28 @@
|
||||
$OpenBSD: patch-k2pdfoptlib_k2master_c,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
Index: k2pdfoptlib/k2master.c
|
||||
--- k2pdfoptlib/k2master.c.orig
|
||||
+++ k2pdfoptlib/k2master.c
|
||||
@@ -248,8 +248,10 @@ printf("masterinfo->landscape=%d\n",masterinfo->landsc
|
||||
wfile_written_info("dewarp_image.png",stdout);
|
||||
aprintf(TTEXT_NORMAL);
|
||||
}
|
||||
+#ifdef HAVE_LEPTONICA_LIB
|
||||
wlept_bmp_dewarp(dwbmp,src,srcgrey,white,k2settings->dewarp,
|
||||
k2settings->debug?"k2opt_dewarp_model.pdf":NULL);
|
||||
+#endif
|
||||
if (k2settings->debug)
|
||||
{
|
||||
aprintf(TTEXT_BOLD);
|
||||
@@ -2681,7 +2683,11 @@ printf("@k2master_rows_color: %d x %d\n",srcbmp->widt
|
||||
/* Parse region into columns */
|
||||
pageregions=&_pageregions;
|
||||
pageregions_init(pageregions);
|
||||
+#ifdef HAVE_OCR_LIB
|
||||
if (k2settings->ocr_max_columns==2 || k2settings->max_columns>1)
|
||||
+#else
|
||||
+ if (k2settings->max_columns>1)
|
||||
+#endif
|
||||
maxlevels = 2;
|
||||
else
|
||||
maxlevels = 3;
|
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-k2pdfoptlib_k2pdfopt_h,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
Index: k2pdfoptlib/k2pdfopt.h
|
||||
--- k2pdfoptlib/k2pdfopt.h.orig
|
||||
+++ k2pdfoptlib/k2pdfopt.h
|
||||
@@ -95,7 +95,7 @@
|
||||
#endif
|
||||
*/
|
||||
|
||||
-#if (defined(HAVE_MUPDF) || defined(HAVE_GOCR_LIB) || defined(HAVE_TESSERACT_LIB))
|
||||
+#if (defined(HAVE_MUPDF_LIB) || defined(HAVE_GOCR_LIB) || defined(HAVE_TESSERACT_LIB))
|
||||
#if (!defined(HAVE_OCR_LIB))
|
||||
#define HAVE_OCR_LIB
|
||||
#endif
|
@ -0,0 +1,17 @@
|
||||
$OpenBSD: patch-k2pdfoptlib_textrows_c,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
Index: k2pdfoptlib/textrows.c
|
||||
--- k2pdfoptlib/textrows.c.orig
|
||||
+++ k2pdfoptlib/textrows.c
|
||||
@@ -956,6 +956,11 @@ static int maxval(int *x,int n,int n0,int dx,int *inde
|
||||
if (imax<0 || x[i]>x[imax])
|
||||
imax=i;
|
||||
}
|
||||
+ if (imax < 0) /* handle negative index by returning the first entry */
|
||||
+ if (index)
|
||||
+ (*index)=0;
|
||||
+ return(x[0]);
|
||||
+
|
||||
if (index!=NULL)
|
||||
(*index)=imax+n0;
|
||||
return(x[imax]);
|
@ -0,0 +1,98 @@
|
||||
$OpenBSD: patch-leptonica_mod_allheaders_h,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
Fix build with newer leptonica.
|
||||
|
||||
Index: leptonica_mod/allheaders.h
|
||||
--- leptonica_mod/allheaders.h.orig
|
||||
+++ leptonica_mod/allheaders.h
|
||||
@@ -2146,17 +2146,17 @@ LEPT_DLL extern PIX * pixReadMem ( const l_uint8 *data
|
||||
LEPT_DLL extern l_int32 pixReadHeaderMem ( const l_uint8 *data, size_t size, l_int32 *pformat, l_int32 *pw, l_int32 *ph, l_int32 *pbps, l_int32 *pspp, l_int32 *piscmap );
|
||||
LEPT_DLL extern l_int32 writeImageFileInfo ( const char *filename, FILE *fpout, l_int32 headeronly );
|
||||
LEPT_DLL extern l_int32 ioFormatTest ( const char *filename );
|
||||
-LEPT_DLL extern L_RECOGA * recogaCreateFromRecog ( L_RECOG *recog );
|
||||
-LEPT_DLL extern L_RECOGA * recogaCreateFromPixaa ( PIXAA *paa, l_int32 scalew, l_int32 scaleh, l_int32 templ_type, l_int32 threshold, l_int32 maxyshift );
|
||||
-LEPT_DLL extern L_RECOGA * recogaCreate ( l_int32 n );
|
||||
-LEPT_DLL extern void recogaDestroy ( L_RECOGA **precoga );
|
||||
-LEPT_DLL extern l_int32 recogaAddRecog ( L_RECOGA *recoga, L_RECOG *recog );
|
||||
+LEPT_DLL extern L_RECOG * recogaCreateFromRecog ( L_RECOG *recog );
|
||||
+LEPT_DLL extern L_RECOG * recogaCreateFromPixaa ( PIXAA *paa, l_int32 scalew, l_int32 scaleh, l_int32 templ_type, l_int32 threshold, l_int32 maxyshift );
|
||||
+LEPT_DLL extern L_RECOG * recogaCreate ( l_int32 n );
|
||||
+LEPT_DLL extern void recogaDestroy ( L_RECOG **precoga );
|
||||
+LEPT_DLL extern l_int32 recogaAddRecog ( L_RECOG *recoga, L_RECOG *recog );
|
||||
LEPT_DLL extern l_int32 recogReplaceInRecoga ( L_RECOG **precog1, L_RECOG *recog2 );
|
||||
-LEPT_DLL extern L_RECOG * recogaGetRecog ( L_RECOGA *recoga, l_int32 index );
|
||||
-LEPT_DLL extern l_int32 recogaGetCount ( L_RECOGA *recoga );
|
||||
+LEPT_DLL extern L_RECOG * recogaGetRecog ( L_RECOG *recoga, l_int32 index );
|
||||
+LEPT_DLL extern l_int32 recogaGetCount ( L_RECOG *recoga );
|
||||
LEPT_DLL extern l_int32 recogGetCount ( L_RECOG *recog );
|
||||
LEPT_DLL extern l_int32 recogGetIndex ( L_RECOG *recog, l_int32 *pindex );
|
||||
-LEPT_DLL extern L_RECOGA * recogGetParent ( L_RECOG *recog );
|
||||
+LEPT_DLL extern L_RECOG * recogGetParent ( L_RECOG *recog );
|
||||
LEPT_DLL extern l_int32 recogSetBootflag ( L_RECOG *recog );
|
||||
LEPT_DLL extern L_RECOG * recogCreateFromRecog ( L_RECOG *recs, l_int32 scalew, l_int32 scaleh, l_int32 templ_type, l_int32 threshold, l_int32 maxyshift );
|
||||
LEPT_DLL extern L_RECOG * recogCreateFromPixa ( PIXA *pixa, l_int32 scalew, l_int32 scaleh, l_int32 templ_type, l_int32 threshold, l_int32 maxyshift );
|
||||
@@ -2167,13 +2167,13 @@ LEPT_DLL extern l_int32 recogGetClassIndex ( L_RECOG *
|
||||
LEPT_DLL extern l_int32 recogStringToIndex ( L_RECOG *recog, char *text, l_int32 *pindex );
|
||||
LEPT_DLL extern l_int32 recogGetClassString ( L_RECOG *recog, l_int32 index, char **pcharstr );
|
||||
LEPT_DLL extern l_int32 l_convertCharstrToInt ( const char *str, l_int32 *pval );
|
||||
-LEPT_DLL extern L_RECOGA * recogaRead ( const char *filename );
|
||||
-LEPT_DLL extern L_RECOGA * recogaReadStream ( FILE *fp );
|
||||
-LEPT_DLL extern L_RECOGA * recogaReadMem ( const l_uint8 *data, size_t size );
|
||||
-LEPT_DLL extern l_int32 recogaWrite ( const char *filename, L_RECOGA *recoga );
|
||||
-LEPT_DLL extern l_int32 recogaWriteStream ( FILE *fp, L_RECOGA *recoga );
|
||||
-LEPT_DLL extern l_int32 recogaWriteMem ( l_uint8 **pdata, size_t *psize, L_RECOGA *recoga );
|
||||
-LEPT_DLL extern l_int32 recogaWritePixaa ( const char *filename, L_RECOGA *recoga );
|
||||
+LEPT_DLL extern L_RECOG * recogaRead ( const char *filename );
|
||||
+LEPT_DLL extern L_RECOG * recogaReadStream ( FILE *fp );
|
||||
+LEPT_DLL extern L_RECOG * recogaReadMem ( const l_uint8 *data, size_t size );
|
||||
+LEPT_DLL extern l_int32 recogaWrite ( const char *filename, L_RECOG *recoga );
|
||||
+LEPT_DLL extern l_int32 recogaWriteStream ( FILE *fp, L_RECOG *recoga );
|
||||
+LEPT_DLL extern l_int32 recogaWriteMem ( l_uint8 **pdata, size_t *psize, L_RECOG *recoga );
|
||||
+LEPT_DLL extern l_int32 recogaWritePixaa ( const char *filename, L_RECOG *recoga );
|
||||
LEPT_DLL extern L_RECOG * recogRead ( const char *filename );
|
||||
LEPT_DLL extern L_RECOG * recogReadStream ( FILE *fp );
|
||||
LEPT_DLL extern L_RECOG * recogReadMem ( const l_uint8 *data, size_t size );
|
||||
@@ -2189,11 +2189,11 @@ LEPT_DLL extern l_int32 recogDestroyDid ( L_RECOG *rec
|
||||
LEPT_DLL extern l_int32 recogDidExists ( L_RECOG *recog );
|
||||
LEPT_DLL extern L_RDID * recogGetDid ( L_RECOG *recog );
|
||||
LEPT_DLL extern l_int32 recogSetChannelParams ( L_RECOG *recog, l_int32 nlevels );
|
||||
-LEPT_DLL extern l_int32 recogaIdentifyMultiple ( L_RECOGA *recoga, PIX *pixs, l_int32 nitems, l_int32 minw, l_int32 minh, l_int32 skipsplit, BOXA **pboxa, PIXA **ppixa, PIX **ppixdb, l_int32 debugsplit );
|
||||
+LEPT_DLL extern l_int32 recogaIdentifyMultiple ( L_RECOG *recoga, PIX *pixs, l_int32 nitems, l_int32 minw, l_int32 minh, l_int32 skipsplit, BOXA **pboxa, PIXA **ppixa, PIX **ppixdb, l_int32 debugsplit );
|
||||
LEPT_DLL extern l_int32 recogSplitIntoCharacters ( L_RECOG *recog, PIX *pixs, l_int32 minw, l_int32 minh, l_int32 skipsplit, BOXA **pboxa, PIXA **ppixa, NUMA **pnaid, l_int32 debug );
|
||||
LEPT_DLL extern l_int32 recogCorrelationBestRow ( L_RECOG *recog, PIX *pixs, BOXA **pboxa, NUMA **pnascore, NUMA **pnaindex, SARRAY **psachar, l_int32 debug );
|
||||
LEPT_DLL extern l_int32 recogCorrelationBestChar ( L_RECOG *recog, PIX *pixs, BOX **pbox, l_float32 *pscore, l_int32 *pindex, char **pcharstr, PIX **ppixdb );
|
||||
-LEPT_DLL extern l_int32 recogaIdentifyPixa ( L_RECOGA *recoga, PIXA *pixa, NUMA *naid, PIX **ppixdb );
|
||||
+LEPT_DLL extern l_int32 recogaIdentifyPixa ( L_RECOG *recoga, PIXA *pixa, NUMA *naid, PIX **ppixdb );
|
||||
LEPT_DLL extern l_int32 recogIdentifyPixa ( L_RECOG *recog, PIXA *pixa, NUMA *naid, PIX **ppixdb );
|
||||
LEPT_DLL extern l_int32 recogIdentifyPix ( L_RECOG *recog, PIX *pixs, PIX **ppixdb );
|
||||
LEPT_DLL extern l_int32 recogSkipIdentify ( L_RECOG *recog );
|
||||
@@ -2204,7 +2204,7 @@ LEPT_DLL extern l_int32 rchExtract ( L_RCH *rch, l_int
|
||||
LEPT_DLL extern PIX * recogProcessToIdentify ( L_RECOG *recog, PIX *pixs, l_int32 pad );
|
||||
LEPT_DLL extern PIX * recogPreSplittingFilter ( L_RECOG *recog, PIX *pixs, l_float32 maxasp, l_float32 minaf, l_int32 debug );
|
||||
LEPT_DLL extern l_int32 recogSplittingFilter ( L_RECOG *recog, PIX *pixs, l_float32 maxasp, l_float32 minaf, l_int32 *premove, l_int32 debug );
|
||||
-LEPT_DLL extern SARRAY * recogaExtractNumbers ( L_RECOGA *recoga, BOXA *boxas, l_float32 scorethresh, l_int32 spacethresh, BOXAA **pbaa, NUMAA **pnaa );
|
||||
+LEPT_DLL extern SARRAY * recogaExtractNumbers ( L_RECOG *recoga, BOXA *boxas, l_float32 scorethresh, l_int32 spacethresh, BOXAA **pbaa, NUMAA **pnaa );
|
||||
LEPT_DLL extern l_int32 recogSetTemplateType ( L_RECOG *recog, l_int32 templ_type );
|
||||
LEPT_DLL extern l_int32 recogSetScaling ( L_RECOG *recog, l_int32 scalew, l_int32 scaleh, l_int32 templ_type );
|
||||
LEPT_DLL extern l_int32 recogTrainLabelled ( L_RECOG *recog, PIX *pixs, BOX *box, char *text, l_int32 multflag, l_int32 debug );
|
||||
@@ -2216,16 +2216,16 @@ LEPT_DLL extern l_int32 recogAverageSamples ( L_RECOG
|
||||
LEPT_DLL extern l_int32 pixaAccumulateSamples ( PIXA *pixa, PTA *pta, PIX **ppixd, l_float32 *px, l_float32 *py );
|
||||
LEPT_DLL extern l_int32 recogTrainingFinished ( L_RECOG *recog, l_int32 debug );
|
||||
LEPT_DLL extern l_int32 recogRemoveOutliers ( L_RECOG *recog, l_float32 targetscore, l_float32 minfract, l_int32 debug );
|
||||
-LEPT_DLL extern l_int32 recogaTrainingDone ( L_RECOGA *recoga, l_int32 *pdone );
|
||||
-LEPT_DLL extern l_int32 recogaFinishAveraging ( L_RECOGA *recoga );
|
||||
+LEPT_DLL extern l_int32 recogaTrainingDone ( L_RECOG *recoga, l_int32 *pdone );
|
||||
+LEPT_DLL extern l_int32 recogaFinishAveraging ( L_RECOG *recoga );
|
||||
LEPT_DLL extern L_RECOG * recogTrainFromBoot ( PIXA *pixa, L_RECOG *recogboot, l_float32 minscore, l_int32 threshold, l_int32 scalew, l_int32 scaleh, l_int32 templ_type, l_int32 debug );
|
||||
LEPT_DLL extern l_int32 recogTrainUnlabelled ( L_RECOG *recog, L_RECOG *recogboot, PIX *pixs, BOX *box, l_float32 minscore, l_int32 debug );
|
||||
LEPT_DLL extern l_int32 recogPadTrainingSet ( L_RECOG **precog, l_int32 debug );
|
||||
-LEPT_DLL extern l_int32 recogBestCorrelForPadding ( L_RECOG *recog, L_RECOGA *recoga, NUMA **pnaset, NUMA **pnaindex, NUMA **pnascore, NUMA **pnasum, PIXA *pixadb );
|
||||
+LEPT_DLL extern l_int32 recogBestCorrelForPadding ( L_RECOG *recog, L_RECOG *recoga, NUMA **pnaset, NUMA **pnaindex, NUMA **pnascore, NUMA **pnasum, PIXA *pixadb );
|
||||
LEPT_DLL extern l_int32 recogCorrelAverages ( L_RECOG *recog1, L_RECOG *recog2, NUMA **pnaindex, NUMA **pnascore, PIXA *pixadb );
|
||||
LEPT_DLL extern l_int32 recogSetPadParams ( L_RECOG *recog, const char *bootdir, const char *bootpattern, const char *bootpath, l_int32 boot_iters, l_int32 type, l_int32 min_nopad, l_int32 max_afterpad, l_int32 min_samples );
|
||||
LEPT_DLL extern L_RECOG * recogMakeBootDigitRecog ( l_int32 templ_type, l_int32 maxyshift, l_int32 display );
|
||||
-LEPT_DLL extern l_int32 recogaShowContent ( FILE *fp, L_RECOGA *recoga, l_int32 display );
|
||||
+LEPT_DLL extern l_int32 recogaShowContent ( FILE *fp, L_RECOG *recoga, l_int32 display );
|
||||
LEPT_DLL extern l_int32 recogShowContent ( FILE *fp, L_RECOG *recog, l_int32 display );
|
||||
LEPT_DLL extern l_int32 recogDebugAverages ( L_RECOG *recog, l_int32 debug );
|
||||
LEPT_DLL extern l_int32 recogShowAverageTemplates ( L_RECOG *recog );
|
59
converters/opencc/k2pdfopt/patches/patch-mupdf_mod_font_c
Normal file
59
converters/opencc/k2pdfopt/patches/patch-mupdf_mod_font_c
Normal file
@ -0,0 +1,59 @@
|
||||
$OpenBSD: patch-mupdf_mod_font_c,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
Index: mupdf_mod/font.c
|
||||
--- mupdf_mod/font.c.orig
|
||||
+++ mupdf_mod/font.c
|
||||
@@ -200,8 +200,8 @@ struct fz_font_context_s
|
||||
int ctx_refs;
|
||||
FT_Library ftlib;
|
||||
int ftlib_refs;
|
||||
- fz_load_system_font_func load_font;
|
||||
- fz_load_system_cjk_font_func load_cjk_font;
|
||||
+ fz_load_system_font_fn load_font;
|
||||
+ fz_load_system_cjk_font_fn load_cjk_font;
|
||||
|
||||
/* Cached fallback fonts */
|
||||
struct { fz_font *serif, *sans; } fallback[256];
|
||||
@@ -258,7 +258,7 @@ void fz_drop_font_context(fz_context *ctx)
|
||||
}
|
||||
}
|
||||
|
||||
-void fz_install_load_system_font_funcs(fz_context *ctx, fz_load_system_font_func f, fz_load_system_cjk_font_func f_cjk)
|
||||
+void fz_install_load_system_font_funcs(fz_context *ctx, fz_load_system_font_fn f, fz_load_system_cjk_font_fn f_cjk, fz_load_system_fallback_font_fn f_fallback)
|
||||
{
|
||||
ctx->font->load_font = f;
|
||||
ctx->font->load_cjk_font = f_cjk;
|
||||
@@ -1354,27 +1354,27 @@ fz_render_t3_glyph_direct(fz_context *ctx, fz_device *
|
||||
void
|
||||
fz_print_font(fz_context *ctx, fz_output *out, fz_font *font)
|
||||
{
|
||||
- fz_printf(ctx, out, "font '%s' {\n", font->name);
|
||||
+ fz_write_printf(ctx, out, "font '%s' {\n", font->name);
|
||||
|
||||
if (font->ft_face)
|
||||
{
|
||||
- fz_printf(ctx, out, "\tfreetype face %p\n", font->ft_face);
|
||||
+ fz_write_printf(ctx, out, "\tfreetype face %p\n", font->ft_face);
|
||||
if (font->flags.ft_substitute)
|
||||
- fz_printf(ctx, out, "\tsubstitute font\n");
|
||||
+ fz_write_printf(ctx, out, "\tsubstitute font\n");
|
||||
}
|
||||
|
||||
if (font->t3procs)
|
||||
{
|
||||
- fz_printf(ctx, out, "\ttype3 matrix [%g %g %g %g]\n",
|
||||
+ fz_write_printf(ctx, out, "\ttype3 matrix [%g %g %g %g]\n",
|
||||
font->t3matrix.a, font->t3matrix.b,
|
||||
font->t3matrix.c, font->t3matrix.d);
|
||||
|
||||
- fz_printf(ctx, out, "\ttype3 bbox [%g %g %g %g]\n",
|
||||
+ fz_write_printf(ctx, out, "\ttype3 bbox [%g %g %g %g]\n",
|
||||
font->bbox.x0, font->bbox.y0,
|
||||
font->bbox.x1, font->bbox.y1);
|
||||
}
|
||||
|
||||
- fz_printf(ctx, out, "}\n");
|
||||
+ fz_write_printf(ctx, out, "}\n");
|
||||
}
|
||||
|
||||
fz_rect *
|
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-mupdf_mod_pdf-colorspace_c,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
Index: mupdf_mod/pdf-colorspace.c
|
||||
--- mupdf_mod/pdf-colorspace.c.orig
|
||||
+++ mupdf_mod/pdf-colorspace.c
|
||||
@@ -109,7 +109,7 @@ load_separation(fz_context *ctx, pdf_document *doc, pd
|
||||
sep->base = base;
|
||||
sep->tint = tint;
|
||||
|
||||
- cs = fz_new_colorspace(ctx, n == 1 ? "Separation" : "DeviceN", n, separation_to_rgb, NULL, free_separation, sep,
|
||||
+ cs = fz_new_colorspace(ctx, n == 1 ? "Separation" : "DeviceN", 0, n, separation_to_rgb, NULL, free_separation, sep,
|
||||
sizeof(struct separation) + (base ? base->size : 0) + fz_function_size(ctx, tint));
|
||||
}
|
||||
fz_catch(ctx)
|
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-mupdf_mod_stext-device_c,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
Index: mupdf_mod/stext-device.c
|
||||
--- mupdf_mod/stext-device.c.orig
|
||||
+++ mupdf_mod/stext-device.c
|
||||
@@ -1097,7 +1097,7 @@ fz_parse_stext_options(fz_context *ctx, fz_stext_optio
|
||||
fz_device *
|
||||
fz_new_stext_device(fz_context *ctx, fz_stext_sheet *sheet, fz_stext_page *page, const fz_stext_options *opts)
|
||||
{
|
||||
- fz_stext_device *dev = fz_new_device(ctx, sizeof *dev);
|
||||
+ fz_stext_device *dev = fz_new_derived_device(ctx, fz_stext_device);
|
||||
|
||||
dev->super.hints = FZ_IGNORE_IMAGE | FZ_IGNORE_SHADE;
|
||||
|
@ -0,0 +1,80 @@
|
||||
$OpenBSD: patch-willuslib_CMakeLists_txt,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
Index: willuslib/CMakeLists.txt
|
||||
--- willuslib/CMakeLists.txt.orig
|
||||
+++ willuslib/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-project(k2pdfopt C)
|
||||
+project(k2pdfopt)
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
include_directories(..)
|
||||
@@ -6,13 +6,37 @@ include_directories(..)
|
||||
set(WILLUSLIB_SRC
|
||||
ansi.c array.c bmp.c bmpdjvu.c bmpmupdf.c dtcompress.c filelist.c
|
||||
fontdata.c fontrender.c gslpolyfit.c linux.c math.c mem.c ocr.c
|
||||
- ocrjocr.c ocrtess.c pdfwrite.c point2d.c render.c strbuf.c string.c
|
||||
+ ocrtess.c pdfwrite.c point2d.c render.c strbuf.c string.c
|
||||
token.c wfile.c wgs.c wgui.c willusversion.c win.c winbmp.c
|
||||
wincomdlg.c winmbox.c winshell.c wmupdf.c wmupdfinfo.c wpdf.c wsys.c
|
||||
- wzfile.c wleptonica.c
|
||||
+ wzfile.c
|
||||
+
|
||||
+ # mupdf mods
|
||||
+ ../mupdf_mod/font.c
|
||||
+ ../mupdf_mod/font-win32.c
|
||||
+ ../mupdf_mod/pdf-annot.c
|
||||
+ ../mupdf_mod/pdf-colorspace.c
|
||||
+ ../mupdf_mod/pdf-font.c
|
||||
+ ../mupdf_mod/pdf-parse.c
|
||||
+ ../mupdf_mod/pdf-type3.c
|
||||
+ ../mupdf_mod/stext-device.c
|
||||
+ ../mupdf_mod/string.c
|
||||
+
|
||||
+ # tesseract mods
|
||||
+ ../tesseract_mod/dawg.cpp
|
||||
+ ../tesseract_mod/imagedata.cpp
|
||||
+ ../tesseract_mod/tesscapi.cpp
|
||||
+ ../tesseract_mod/tessedit.cpp
|
||||
+ ../tesseract_mod/thresholder.cpp
|
||||
+
|
||||
+ # leptonica mods
|
||||
+ wleptonica.c
|
||||
+ ../leptonica_mod/dewarp2.c
|
||||
)
|
||||
+
|
||||
# ocr.c
|
||||
# win.c winbmp.c winmbox.c wincomdlg.c wgui.c winshell.c
|
||||
+# wleptonica.c
|
||||
|
||||
if(DJVU_FOUND)
|
||||
set(WILLUSLIB_SRC ${WILLUSLIB_SRC} bmpdjvu.c)
|
||||
@@ -21,10 +45,28 @@ endif(DJVU_FOUND)
|
||||
if(MUPDF_FOUND)
|
||||
set(WILLUSLIB_SRC ${WILLUSLIB_SRC} bmpmupdf.c wmupdf.c)
|
||||
endif(MUPDF_FOUND)
|
||||
+if(MUPDF_LIB)
|
||||
+ set(WILLUSLIB_SRC ${WILLUSLIB_SRC} bmpmupdf.c wmupdf.c)
|
||||
+ include_directories(SYSTEM ../mupdf/source/fitz)
|
||||
+endif(MUPDF_LIB)
|
||||
|
||||
+if(LEPT_LIB)
|
||||
+ include_directories(SYSTEM ../leptonica/src)
|
||||
+endif()
|
||||
+
|
||||
+if(TESSERACT_LIB)
|
||||
+ include_directories(SYSTEM ../tesseract/ccutil ../tesseract/api
|
||||
+ ../tesseract/ccmain ../tesseract/ccstruct ../tesseract/viewer
|
||||
+ ../tesseract/dict ../tesseract/textord ../tesseract/cutil
|
||||
+ ../tesseract/wordrec ../tesseract/classify)
|
||||
+endif()
|
||||
+
|
||||
message("-- Willuslib sources: ${WILLUSLIB_SRC}")
|
||||
|
||||
add_library(willuslib ${WILLUSLIB_SRC})
|
||||
+if(MUPDF_LIB)
|
||||
+ target_link_libraries(willuslib ${MUPDF_LIB})
|
||||
+endif(MUPDF_LIB)
|
||||
|
||||
# HAVE_GOCR_LIB: ocrjocr.c
|
||||
# HAVE_TESSERACT_LIB: ocrtess.c
|
27
converters/opencc/k2pdfopt/patches/patch-willuslib_willus_h
Normal file
27
converters/opencc/k2pdfopt/patches/patch-willuslib_willus_h
Normal file
@ -0,0 +1,27 @@
|
||||
$OpenBSD: patch-willuslib_willus_h,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
- clang defines unix, __unix and __unix__, base gcc only defines __unix__
|
||||
- stop assuming that non-x86 archs are all little-endian
|
||||
|
||||
Index: willuslib/willus.h
|
||||
--- willuslib/willus.h.orig
|
||||
+++ willuslib/willus.h
|
||||
@@ -107,7 +107,7 @@ typedef double real;
|
||||
#define MINGW
|
||||
#endif
|
||||
|
||||
-#if (!defined(UNIX) && (defined(DJEMX) || defined(MINGW) || defined(CYGWIN32) || defined(unix) || defined(__unix) || defined(__MACH__)))
|
||||
+#if (!defined(UNIX) && (defined(DJEMX) || defined(MINGW) || defined(CYGWIN32) || defined(unix) || defined(__unix) || defined(__unix__) || defined(__MACH__)))
|
||||
#define UNIX
|
||||
#endif
|
||||
|
||||
@@ -160,7 +160,8 @@ typedef double real;
|
||||
#define WILLUS_X86
|
||||
#endif
|
||||
|
||||
-#if (!defined(WILLUS_BIGENDIAN) && !defined(WILLUS_X86))
|
||||
+#include <endian.h>
|
||||
+#if (!defined(WILLUS_BIGENDIAN) && BYTE_ORDER == BIG_ENDIAN)
|
||||
#define WILLUS_BIGENDIAN
|
||||
#endif
|
||||
|
23
converters/opencc/k2pdfopt/patches/patch-willuslib_wmupdf_c
Normal file
23
converters/opencc/k2pdfopt/patches/patch-willuslib_wmupdf_c
Normal file
@ -0,0 +1,23 @@
|
||||
$OpenBSD: patch-willuslib_wmupdf_c,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
Index: willuslib/wmupdf.c
|
||||
--- willuslib/wmupdf.c.orig
|
||||
+++ willuslib/wmupdf.c
|
||||
@@ -1051,7 +1051,7 @@ printf(" srcptr = %p\n",srcbuf->data);
|
||||
|
||||
whitespace[0]=' ';
|
||||
whitespace[1]='\0';
|
||||
- fz_write_buffer(ctx,dstbuf,whitespace,1);
|
||||
+ fz_append_data(ctx,dstbuf,whitespace,1);
|
||||
}
|
||||
/* mupdf 1.10a--replace write with append */
|
||||
/*
|
||||
@@ -1153,7 +1153,7 @@ static int new_stream_object(pdf_document *xref,fz_con
|
||||
pdf_update_object(ctx,xref,ref,obj);
|
||||
pdf_drop_obj(ctx,obj);
|
||||
fzbuf=fz_new_buffer(ctx,strlen(buf));
|
||||
- fz_write_buffer(ctx,fzbuf,(unsigned char *)buf,strlen(buf));
|
||||
+ fz_append_data(ctx,fzbuf,(unsigned char *)buf,strlen(buf));
|
||||
wmupdf_update_stream(ctx,xref,ref,fzbuf);
|
||||
fz_drop_buffer(ctx,fzbuf);
|
||||
return(ref);
|
295
converters/opencc/k2pdfopt/patches/patch-willuslib_wmupdfinfo_c
Normal file
295
converters/opencc/k2pdfopt/patches/patch-willuslib_wmupdfinfo_c
Normal file
@ -0,0 +1,295 @@
|
||||
$OpenBSD: patch-willuslib_wmupdfinfo_c,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
Index: willuslib/wmupdfinfo.c
|
||||
--- willuslib/wmupdfinfo.c.orig
|
||||
+++ willuslib/wmupdfinfo.c
|
||||
@@ -227,7 +227,7 @@ static void showglobalinfo(fz_context *ctx, globals *g
|
||||
fz_printf(ctx, out, "\nPages: %d\n\n", glo->pagecount);
|
||||
}
|
||||
*/
|
||||
- fz_printf(ctx,out,"PDF VERSION: %d.%d\n",doc->version/10,doc->version%10);
|
||||
+ fz_write_printf(ctx,out,"PDF VERSION: %d.%d\n",doc->version/10,doc->version%10);
|
||||
|
||||
obj = pdf_dict_gets(ctx,pdf_trailer(ctx,doc), "Info");
|
||||
if (obj)
|
||||
@@ -241,7 +241,7 @@ static void showglobalinfo(fz_context *ctx, globals *g
|
||||
buf=malloc(n+2);
|
||||
if (buf==NULL)
|
||||
{
|
||||
- fz_printf(ctx,out,"Info object (%d %d R):\n",pdf_to_num(ctx,obj),pdf_to_gen(ctx,obj));
|
||||
+ fz_write_printf(ctx,out,"Info object (%d %d R):\n",pdf_to_num(ctx,obj),pdf_to_gen(ctx,obj));
|
||||
pdf_print_obj(ctx,out,robj,1);
|
||||
}
|
||||
else
|
||||
@@ -263,18 +263,18 @@ static void showglobalinfo(fz_context *ctx, globals *g
|
||||
sprintf(buf1,"PAGE SIZE: %.2f x %.2f in\n",
|
||||
(glo->dim[0].u.dim.bbox->x1-glo->dim[0].u.dim.bbox->x0)/72.,
|
||||
(glo->dim[0].u.dim.bbox->y1-glo->dim[0].u.dim.bbox->y0)/72.);
|
||||
- fz_printf(ctx,out,"%s",buf1);
|
||||
+ fz_write_printf(ctx,out,"%s",buf1);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (glo->dims>1)
|
||||
- fz_printf(ctx,out,"PAGE SIZE: (varies)\n");
|
||||
+ fz_write_printf(ctx,out,"PAGE SIZE: (varies)\n");
|
||||
}
|
||||
- fz_printf(ctx,out, "PAGES: %d\n\n", glo->pagecount);
|
||||
+ fz_write_printf(ctx,out, "PAGES: %d\n\n", glo->pagecount);
|
||||
obj = pdf_dict_gets(ctx,pdf_trailer(ctx,doc), "Encrypt");
|
||||
if (obj)
|
||||
{
|
||||
- fz_printf(ctx,out, "\nEncryption object (%d %d R):\n", pdf_to_num(ctx,obj), pdf_to_gen(ctx,obj));
|
||||
+ fz_write_printf(ctx,out, "\nEncryption object (%d %d R):\n", pdf_to_num(ctx,obj), pdf_to_gen(ctx,obj));
|
||||
pdf_print_obj(ctx,out, pdf_resolve_indirect(ctx,obj), 1);
|
||||
}
|
||||
}
|
||||
@@ -302,15 +302,15 @@ static void display_pdf_field(fz_context *ctx,fz_outpu
|
||||
int j;
|
||||
for (j=i+lenfn+1;buf[j]!='\0' && buf[j]!=')';j++);
|
||||
buf[j]='\0';
|
||||
- fz_printf(ctx,out,"%s",label3);
|
||||
+ fz_write_printf(ctx,out,"%s",label3);
|
||||
if (in_string(fieldname,"date")>=0)
|
||||
{
|
||||
char newdate[128];
|
||||
date_convert(newdate,&buf[i+lenfn+1]);
|
||||
- fz_printf(ctx,out,"%s\n",newdate);
|
||||
+ fz_write_printf(ctx,out,"%s\n",newdate);
|
||||
}
|
||||
else
|
||||
- fz_printf(ctx,out,"%s\n",&buf[i+lenfn+1]);
|
||||
+ fz_write_printf(ctx,out,"%s\n",&buf[i+lenfn+1]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -334,7 +334,7 @@ static void display_file_size(fz_context *ctx,fz_outpu
|
||||
fclose(f);
|
||||
str_format_int_grouped(sizecommas,sz);
|
||||
sprintf(buf,"FILE SIZE: %.1f kB (%s bytes)\n",sz/1024.,sizecommas);
|
||||
- fz_printf(ctx,out,"%s",buf);
|
||||
+ fz_write_printf(ctx,out,"%s",buf);
|
||||
}
|
||||
|
||||
|
||||
@@ -819,7 +819,7 @@ static void gatherpageinfo(fz_context *ctx, globals *g
|
||||
|
||||
if (page > glo->pagecount)
|
||||
{
|
||||
- fz_printf(ctx,glo->out,"[Error: Page %d not found.]\n",page);
|
||||
+ fz_write_printf(ctx,glo->out,"[Error: Page %d not found.]\n",page);
|
||||
return;
|
||||
}
|
||||
pageref = pdf_lookup_page_obj(ctx, glo->doc, page-1);
|
||||
@@ -845,7 +845,7 @@ printinfo(fz_context *ctx, globals *glo, char *filenam
|
||||
|
||||
if (show & DIMENSIONS && glo->dims > 0)
|
||||
{
|
||||
- fz_printf(ctx, out, "Mediaboxes (%d):\n", glo->dims);
|
||||
+ fz_write_printf(ctx, out, "Mediaboxes (%d):\n", glo->dims);
|
||||
for (i = 0; i < glo->dims; i++)
|
||||
{
|
||||
char buf1[64];
|
||||
@@ -853,7 +853,7 @@ printinfo(fz_context *ctx, globals *glo, char *filenam
|
||||
sprintf(buf1,"%.2f x %.2f",
|
||||
(glo->dim[i].u.dim.bbox->x1-glo->dim[i].u.dim.bbox->x0)/72.,
|
||||
(glo->dim[i].u.dim.bbox->y1-glo->dim[i].u.dim.bbox->y0)/72.);
|
||||
- fz_printf(ctx, out, PAGE_FMT "[ %g %g %g %g ] (%s in)\n",
|
||||
+ fz_write_printf(ctx, out, PAGE_FMT "[ %g %g %g %g ] (%s in)\n",
|
||||
glo->dim[i].page,
|
||||
pdf_to_num(ctx, glo->dim[i].pageref),
|
||||
pdf_to_gen(ctx, glo->dim[i].pageref),
|
||||
@@ -862,15 +862,15 @@ printinfo(fz_context *ctx, globals *glo, char *filenam
|
||||
glo->dim[i].u.dim.bbox->x1,
|
||||
glo->dim[i].u.dim.bbox->y1,buf1);
|
||||
}
|
||||
- fz_printf(ctx, out, "\n");
|
||||
+ fz_write_printf(ctx, out, "\n");
|
||||
}
|
||||
|
||||
if (show & FONTS && glo->fonts > 0)
|
||||
{
|
||||
- fz_printf(ctx, out, "Fonts (%d):\n", glo->fonts);
|
||||
+ fz_write_printf(ctx, out, "Fonts (%d):\n", glo->fonts);
|
||||
for (i = 0; i < glo->fonts; i++)
|
||||
{
|
||||
- fz_printf(ctx, out, PAGE_FMT "%s '%s' (%d %d R)\n",
|
||||
+ fz_write_printf(ctx, out, PAGE_FMT "%s '%s' (%d %d R)\n",
|
||||
glo->font[i].page,
|
||||
pdf_to_num(ctx, glo->font[i].pageref),
|
||||
pdf_to_gen(ctx, glo->font[i].pageref),
|
||||
@@ -879,18 +879,18 @@ printinfo(fz_context *ctx, globals *glo, char *filenam
|
||||
pdf_to_num(ctx, glo->font[i].u.font.obj),
|
||||
pdf_to_gen(ctx, glo->font[i].u.font.obj));
|
||||
}
|
||||
- fz_printf(ctx, out, "\n");
|
||||
+ fz_write_printf(ctx, out, "\n");
|
||||
}
|
||||
|
||||
if (show & IMAGES && glo->images > 0)
|
||||
{
|
||||
- fz_printf(ctx, out, "Images (%d):\n", glo->images);
|
||||
+ fz_write_printf(ctx, out, "Images (%d):\n", glo->images);
|
||||
for (i = 0; i < glo->images; i++)
|
||||
{
|
||||
char *cs = NULL;
|
||||
char *altcs = NULL;
|
||||
|
||||
- fz_printf(ctx, out, PAGE_FMT "[ ",
|
||||
+ fz_write_printf(ctx, out, PAGE_FMT "[ ",
|
||||
glo->image[i].page,
|
||||
pdf_to_num(ctx, glo->image[i].pageref),
|
||||
pdf_to_gen(ctx, glo->image[i].pageref));
|
||||
@@ -906,7 +906,7 @@ printinfo(fz_context *ctx, globals *glo, char *filenam
|
||||
if (strstr(filter, "Decode"))
|
||||
*(strstr(filter, "Decode")) = '\0';
|
||||
|
||||
- fz_printf(ctx, out, "%s%s",
|
||||
+ fz_write_printf(ctx, out, "%s%s",
|
||||
filter,
|
||||
j == pdf_array_len(ctx, glo->image[i].u.image.filter) - 1 ? "" : " ");
|
||||
fz_free(ctx, filter);
|
||||
@@ -920,11 +920,11 @@ printinfo(fz_context *ctx, globals *glo, char *filenam
|
||||
if (strstr(filter, "Decode"))
|
||||
*(strstr(filter, "Decode")) = '\0';
|
||||
|
||||
- fz_printf(ctx, out, "%s", filter);
|
||||
+ fz_write_printf(ctx, out, "%s", filter);
|
||||
fz_free(ctx, filter);
|
||||
}
|
||||
else
|
||||
- fz_printf(ctx, out, "Raw");
|
||||
+ fz_write_printf(ctx, out, "Raw");
|
||||
|
||||
if (glo->image[i].u.image.cs)
|
||||
{
|
||||
@@ -965,7 +965,7 @@ printinfo(fz_context *ctx, globals *glo, char *filenam
|
||||
fz_strlcpy(altcs, "Sep", 4);
|
||||
}
|
||||
|
||||
- fz_printf(ctx, out, " ] %dx%d %dbpc %s%s%s (%d %d R)\n",
|
||||
+ fz_write_printf(ctx, out, " ] %dx%d %dbpc %s%s%s (%d %d R)\n",
|
||||
pdf_to_int(ctx, glo->image[i].u.image.width),
|
||||
pdf_to_int(ctx, glo->image[i].u.image.height),
|
||||
glo->image[i].u.image.bpc ? pdf_to_int(ctx, glo->image[i].u.image.bpc) : 1,
|
||||
@@ -978,12 +978,12 @@ printinfo(fz_context *ctx, globals *glo, char *filenam
|
||||
fz_free(ctx, cs);
|
||||
fz_free(ctx, altcs);
|
||||
}
|
||||
- fz_printf(ctx, out, "\n");
|
||||
+ fz_write_printf(ctx, out, "\n");
|
||||
}
|
||||
|
||||
if (show & SHADINGS && glo->shadings > 0)
|
||||
{
|
||||
- fz_printf(ctx, out, "Shading patterns (%d):\n", glo->shadings);
|
||||
+ fz_write_printf(ctx, out, "Shading patterns (%d):\n", glo->shadings);
|
||||
for (i = 0; i < glo->shadings; i++)
|
||||
{
|
||||
char *shadingtype[] =
|
||||
@@ -998,7 +998,7 @@ printinfo(fz_context *ctx, globals *glo, char *filenam
|
||||
"Tensor patch",
|
||||
};
|
||||
|
||||
- fz_printf(ctx, out, PAGE_FMT "%s (%d %d R)\n",
|
||||
+ fz_write_printf(ctx, out, PAGE_FMT "%s (%d %d R)\n",
|
||||
glo->shading[i].page,
|
||||
pdf_to_num(ctx, glo->shading[i].pageref),
|
||||
pdf_to_gen(ctx, glo->shading[i].pageref),
|
||||
@@ -1006,12 +1006,12 @@ printinfo(fz_context *ctx, globals *glo, char *filenam
|
||||
pdf_to_num(ctx, glo->shading[i].u.shading.obj),
|
||||
pdf_to_gen(ctx, glo->shading[i].u.shading.obj));
|
||||
}
|
||||
- fz_printf(ctx, out, "\n");
|
||||
+ fz_write_printf(ctx, out, "\n");
|
||||
}
|
||||
|
||||
if (show & PATTERNS && glo->patterns > 0)
|
||||
{
|
||||
- fz_printf(ctx, out, "Patterns (%d):\n", glo->patterns);
|
||||
+ fz_write_printf(ctx, out, "Patterns (%d):\n", glo->patterns);
|
||||
for (i = 0; i < glo->patterns; i++)
|
||||
{
|
||||
if (pdf_to_int(ctx, glo->pattern[i].u.pattern.type) == 1)
|
||||
@@ -1030,7 +1030,7 @@ printinfo(fz_context *ctx, globals *glo, char *filenam
|
||||
"Constant/fast tiling",
|
||||
};
|
||||
|
||||
- fz_printf(ctx, out, PAGE_FMT "Tiling %s %s (%d %d R)\n",
|
||||
+ fz_write_printf(ctx, out, PAGE_FMT "Tiling %s %s (%d %d R)\n",
|
||||
glo->pattern[i].page,
|
||||
pdf_to_num(ctx, glo->pattern[i].pageref),
|
||||
pdf_to_gen(ctx, glo->pattern[i].pageref),
|
||||
@@ -1041,7 +1041,7 @@ printinfo(fz_context *ctx, globals *glo, char *filenam
|
||||
}
|
||||
else
|
||||
{
|
||||
- fz_printf(ctx, out, PAGE_FMT "Shading %d %d R (%d %d R)\n",
|
||||
+ fz_write_printf(ctx, out, PAGE_FMT "Shading %d %d R (%d %d R)\n",
|
||||
glo->pattern[i].page,
|
||||
pdf_to_num(ctx, glo->pattern[i].pageref),
|
||||
pdf_to_gen(ctx, glo->pattern[i].pageref),
|
||||
@@ -1051,15 +1051,15 @@ printinfo(fz_context *ctx, globals *glo, char *filenam
|
||||
pdf_to_gen(ctx, glo->pattern[i].u.pattern.obj));
|
||||
}
|
||||
}
|
||||
- fz_printf(ctx, out, "\n");
|
||||
+ fz_write_printf(ctx, out, "\n");
|
||||
}
|
||||
|
||||
if (show & XOBJS && glo->forms > 0)
|
||||
{
|
||||
- fz_printf(ctx, out, "Form xobjects (%d):\n", glo->forms);
|
||||
+ fz_write_printf(ctx, out, "Form xobjects (%d):\n", glo->forms);
|
||||
for (i = 0; i < glo->forms; i++)
|
||||
{
|
||||
- fz_printf(ctx, out, PAGE_FMT "Form%s%s%s%s (%d %d R)\n",
|
||||
+ fz_write_printf(ctx, out, PAGE_FMT "Form%s%s%s%s (%d %d R)\n",
|
||||
glo->form[i].page,
|
||||
pdf_to_num(ctx, glo->form[i].pageref),
|
||||
pdf_to_gen(ctx, glo->form[i].pageref),
|
||||
@@ -1070,22 +1070,22 @@ printinfo(fz_context *ctx, globals *glo, char *filenam
|
||||
pdf_to_num(ctx, glo->form[i].u.form.obj),
|
||||
pdf_to_gen(ctx, glo->form[i].u.form.obj));
|
||||
}
|
||||
- fz_printf(ctx, out, "\n");
|
||||
+ fz_write_printf(ctx, out, "\n");
|
||||
}
|
||||
|
||||
if (show & XOBJS && glo->psobjs > 0)
|
||||
{
|
||||
- fz_printf(ctx, out, "Postscript xobjects (%d):\n", glo->psobjs);
|
||||
+ fz_write_printf(ctx, out, "Postscript xobjects (%d):\n", glo->psobjs);
|
||||
for (i = 0; i < glo->psobjs; i++)
|
||||
{
|
||||
- fz_printf(ctx, out, PAGE_FMT "(%d %d R)\n",
|
||||
+ fz_write_printf(ctx, out, PAGE_FMT "(%d %d R)\n",
|
||||
glo->psobj[i].page,
|
||||
pdf_to_num(ctx, glo->psobj[i].pageref),
|
||||
pdf_to_gen(ctx, glo->psobj[i].pageref),
|
||||
pdf_to_num(ctx, glo->psobj[i].u.form.obj),
|
||||
pdf_to_gen(ctx, glo->psobj[i].u.form.obj));
|
||||
}
|
||||
- fz_printf(ctx, out, "\n");
|
||||
+ fz_write_printf(ctx, out, "\n");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1121,7 +1121,7 @@ static void pdfinfo_info(fz_context *ctx, fz_output *o
|
||||
|
||||
glo.out = out;
|
||||
glo.ctx = ctx;
|
||||
- fz_printf(ctx,out,"FILE: %s\n",filename);
|
||||
+ fz_write_printf(ctx,out,"FILE: %s\n",filename);
|
||||
glo.doc = pdf_open_document(ctx,filename);
|
||||
if (pdf_needs_password(ctx,glo.doc))
|
||||
if (!pdf_authenticate_password(ctx, glo.doc, password))
|
||||
@@ -1129,7 +1129,7 @@ static void pdfinfo_info(fz_context *ctx, fz_output *o
|
||||
glo.pagecount=pdf_count_pages(ctx,glo.doc);
|
||||
gather_all_info(ctx,&glo,filename,show,pagelist);
|
||||
showglobalinfo(ctx,&glo,filename);
|
||||
- fz_printf(ctx,glo.out," Page Ref Details\n");
|
||||
+ fz_write_printf(ctx,glo.out," Page Ref Details\n");
|
||||
printinfo(ctx,&glo,filename,show);
|
||||
closexref(ctx,&glo);
|
||||
}
|
5
converters/opencc/k2pdfopt/pkg/DESCR
Normal file
5
converters/opencc/k2pdfopt/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
K2pdfopt optimizes PDF/DJVU files for mobile e-readers (e.g. the Kindle)
|
||||
and smartphones. It works well on multi-column PDF/DJVU files and can
|
||||
re-flow text even on scanned PDF files. It can also be used as a general
|
||||
PDF copying/cropping/re-sizing/OCR-ing manipulation tool. It can generate
|
||||
native or bitmapped PDF output, with an optional OCR layer.
|
2
converters/opencc/k2pdfopt/pkg/PLIST
Normal file
2
converters/opencc/k2pdfopt/pkg/PLIST
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
@bin bin/k2pdfopt
|
38
converters/opencc/lastools/Makefile
Normal file
38
converters/opencc/lastools/Makefile
Normal file
@ -0,0 +1,38 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
COMMENT = tools for LiDAR processing
|
||||
DISTNAME = lastools-0.20170108
|
||||
GH_ACCOUNT = LAStools
|
||||
GH_PROJECT = LAStools
|
||||
GH_TAGNAME = f00fa125075ea984993057c5916d746cb605835c
|
||||
REVISION = 2
|
||||
|
||||
CATEGORIES = converters textproc devel
|
||||
|
||||
# LGPLv2.1
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
WANTLIB += c m ${COMPILER_LIBCXX}
|
||||
|
||||
COMPILER = base-clang ports-gcc base-gcc
|
||||
|
||||
MAKE_FLAGS = COMPILER="${CXX}" \
|
||||
LINKER="${CXX}"
|
||||
|
||||
post-patch:
|
||||
find ${WRKSRC} -name Makefile | xargs sed -i 's/-O3/${CXXFLAGS}/'
|
||||
|
||||
PROGS = laszip lasinfo lasprecision las2txt txt2las las2las lasdiff lasmerge lasindex
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/LASlib/src/liblas.a ${PREFIX}/lib/
|
||||
${INSTALL_DATA} ${WRKSRC}/LASlib/inc/*.hpp ${PREFIX}/include/
|
||||
${INSTALL_DATA} ${WRKSRC}/LASzip/src/{mydefs,laspoint,laszip,lasquantizer,lasattributer}.hpp \
|
||||
${PREFIX}/include/
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lastools/
|
||||
.for f in ${PROGS}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/bin/${f} ${PREFIX}/bin/
|
||||
${INSTALL_DATA} ${WRKSRC}/bin/${f}_README.txt ${PREFIX}/share/doc/lastools/
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
2
converters/opencc/lastools/distinfo
Normal file
2
converters/opencc/lastools/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (lastools-0.20170108.tar.gz) = gWxY0nkloCC/Alpqwd3WchECnVJeL6y90LxkKRPJPmU=
|
||||
SIZE (lastools-0.20170108.tar.gz) = 34930962
|
@ -0,0 +1,32 @@
|
||||
$OpenBSD: patch-LASzip_src_lasindex_cpp,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
Index: LASzip/src/lasindex.cpp
|
||||
--- LASzip/src/lasindex.cpp.orig
|
||||
+++ LASzip/src/lasindex.cpp
|
||||
@@ -45,15 +45,19 @@
|
||||
#include "bytestreamout_file.hpp"
|
||||
|
||||
#ifdef UNORDERED
|
||||
- // Check if on OS X and using cland (unordered map isn't part of tr1 namespace)
|
||||
- #if defined(__APPLE__) && defined(__clang__)
|
||||
- #include <unordered_map>
|
||||
+ // Figure out whether <unordered_map> is in tr1
|
||||
+# ifdef __has_include
|
||||
+# if __has_include(<unordered_map>)
|
||||
+# include <unordered_map>
|
||||
+ using namespace std;
|
||||
+# define UNORDERED_FOUND
|
||||
+# endif
|
||||
+# endif
|
||||
+# ifndef UNORDERED_FOUND
|
||||
+# include <tr1/unordered_map>
|
||||
using namespace std;
|
||||
- #else
|
||||
- #include <tr1/unordered_map>
|
||||
- using namespace std;
|
||||
using namespace tr1;
|
||||
- #endif
|
||||
+# endif
|
||||
typedef unordered_map<I32,U32> my_cell_hash;
|
||||
#else
|
||||
#include <hash_map>
|
@ -0,0 +1,31 @@
|
||||
$OpenBSD: patch-LASzip_src_lasinterval_cpp,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
Index: LASzip/src/lasinterval.cpp
|
||||
--- LASzip/src/lasinterval.cpp.orig
|
||||
+++ LASzip/src/lasinterval.cpp
|
||||
@@ -43,13 +43,19 @@
|
||||
using namespace std;
|
||||
|
||||
#ifdef UNORDERED
|
||||
- // Check if on OS X and using cland (unordered map isn't part of tr1 namespace)
|
||||
- #if defined(__APPLE__) && defined(__clang__)
|
||||
- #include <unordered_map>
|
||||
- #else
|
||||
- #include <tr1/unordered_map>
|
||||
+ // Figure out whether <unordered_map> is in tr1
|
||||
+# ifdef __has_include
|
||||
+# if __has_include(<unordered_map>)
|
||||
+# include <unordered_map>
|
||||
+ using namespace std;
|
||||
+# define UNORDERED_FOUND
|
||||
+# endif
|
||||
+# endif
|
||||
+# ifndef UNORDERED_FOUND
|
||||
+# include <tr1/unordered_map>
|
||||
+ using namespace std;
|
||||
using namespace tr1;
|
||||
- #endif
|
||||
+# endif
|
||||
typedef unordered_map<I32, LASintervalStartCell*> my_cell_hash;
|
||||
#else
|
||||
#include <hash_map>
|
10
converters/opencc/lastools/pkg/DESCR
Normal file
10
converters/opencc/lastools/pkg/DESCR
Normal file
@ -0,0 +1,10 @@
|
||||
LAStools: award-winning software for efficient LiDAR processing (with LASzip)
|
||||
|
||||
* laszip compresses the LAS files in a completely lossless manner
|
||||
* lasinfo prints out a quick overview of the contents of a LAS file
|
||||
* lasindex creates a spatial index LAX file for fast spatial queries
|
||||
* las2las extracts last returns, clips, subsamples, translates, etc ...
|
||||
* lasmerge merges several LAS or LAZ files into a single LAS or LAZ file
|
||||
* txt2las converts LIDAR data from ASCII text to binary LAS format
|
||||
* las2txt turns LAS into human-readable and easy-to-parse ASCII
|
||||
* lasprecision analyses the actual precision of the LIDAR points
|
51
converters/opencc/lastools/pkg/PLIST
Normal file
51
converters/opencc/lastools/pkg/PLIST
Normal file
@ -0,0 +1,51 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
@bin bin/las2las
|
||||
@bin bin/las2txt
|
||||
@bin bin/lasdiff
|
||||
@bin bin/lasindex
|
||||
@bin bin/lasinfo
|
||||
@bin bin/lasmerge
|
||||
@bin bin/lasprecision
|
||||
@bin bin/laszip
|
||||
@bin bin/txt2las
|
||||
include/lasattributer.hpp
|
||||
include/lasdefinitions.hpp
|
||||
include/lasfilter.hpp
|
||||
include/laspoint.hpp
|
||||
include/lasquantizer.hpp
|
||||
include/lasreader.hpp
|
||||
include/lasreader_asc.hpp
|
||||
include/lasreader_bil.hpp
|
||||
include/lasreader_bin.hpp
|
||||
include/lasreader_dtm.hpp
|
||||
include/lasreader_las.hpp
|
||||
include/lasreader_qfit.hpp
|
||||
include/lasreader_shp.hpp
|
||||
include/lasreader_txt.hpp
|
||||
include/lasreaderbuffered.hpp
|
||||
include/lasreadermerged.hpp
|
||||
include/lasreaderpipeon.hpp
|
||||
include/lastransform.hpp
|
||||
include/lasutility.hpp
|
||||
include/laswaveform13reader.hpp
|
||||
include/laswaveform13writer.hpp
|
||||
include/laswriter.hpp
|
||||
include/laswriter_bin.hpp
|
||||
include/laswriter_las.hpp
|
||||
include/laswriter_qfit.hpp
|
||||
include/laswriter_txt.hpp
|
||||
include/laswriter_wrl.hpp
|
||||
include/laswritercompatible.hpp
|
||||
include/laszip.hpp
|
||||
include/mydefs.hpp
|
||||
lib/liblas.a
|
||||
share/doc/lastools/
|
||||
share/doc/lastools/las2las_README.txt
|
||||
share/doc/lastools/las2txt_README.txt
|
||||
share/doc/lastools/lasdiff_README.txt
|
||||
share/doc/lastools/lasindex_README.txt
|
||||
share/doc/lastools/lasinfo_README.txt
|
||||
share/doc/lastools/lasmerge_README.txt
|
||||
share/doc/lastools/lasprecision_README.txt
|
||||
share/doc/lastools/laszip_README.txt
|
||||
share/doc/lastools/txt2las_README.txt
|
22
converters/opencc/libdvdcss/Makefile
Normal file
22
converters/opencc/libdvdcss/Makefile
Normal file
@ -0,0 +1,22 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
COMMENT= descramble scrambled DVDs
|
||||
|
||||
VER= 1.4.2
|
||||
DISTNAME= libdvdcss-${VER}
|
||||
CATEGORIES= converters
|
||||
MASTER_SITES= http://download.videolan.org/pub/videolan/libdvdcss/${VER}/
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
SHARED_LIBS= dvdcss 4.1
|
||||
|
||||
HOMEPAGE= http://www.videolan.org/developers/libdvdcss.html
|
||||
|
||||
# GPLv2+
|
||||
PERMIT_PACKAGE_CDROM= Free speech issue
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ARGS= --disable-doc
|
||||
|
||||
.include <bsd.port.mk>
|
2
converters/opencc/libdvdcss/distinfo
Normal file
2
converters/opencc/libdvdcss/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (libdvdcss-1.4.2.tar.bz2) = eMLtd+ycDY++1799OryCBouIZL5JTPrRZYITd/8/JXU=
|
||||
SIZE (libdvdcss-1.4.2.tar.bz2) = 366824
|
50
converters/opencc/libdvdcss/patches/patch-src_css_c
Normal file
50
converters/opencc/libdvdcss/patches/patch-src_css_c
Normal file
@ -0,0 +1,50 @@
|
||||
$OpenBSD: patch-src_css_c,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
--- src/css.c.orig Tue Jan 27 08:56:05 2015
|
||||
+++ src/css.c Tue Feb 10 14:33:01 2015
|
||||
@@ -230,10 +230,13 @@ int dvdcss_title ( dvdcss_t dvdcss, int i_block )
|
||||
{
|
||||
char psz_key[PSZ_KEY_SIZE];
|
||||
unsigned int k0, k1, k2, k3, k4;
|
||||
+ int n;
|
||||
|
||||
- psz_key[PSZ_KEY_SIZE - 1] = '\0';
|
||||
+ memset(psz_key, 0, sizeof psz_key);
|
||||
+ n = read( i_fd, psz_key, PSZ_KEY_SIZE - 1 );
|
||||
+ close( i_fd );
|
||||
|
||||
- if( read( i_fd, psz_key, PSZ_KEY_SIZE - 1 ) == PSZ_KEY_SIZE - 1
|
||||
+ if( n == PSZ_KEY_SIZE - 1
|
||||
&& sscanf( psz_key, "%x:%x:%x:%x:%x",
|
||||
&k0, &k1, &k2, &k3, &k4 ) == 5 )
|
||||
{
|
||||
@@ -247,9 +250,12 @@ int dvdcss_title ( dvdcss_t dvdcss, int i_block )
|
||||
/* Don't try to save it again */
|
||||
b_cache = 0;
|
||||
i_ret = 1;
|
||||
+ }
|
||||
+ else if (n > 0 && strcmp(psz_key, PACKAGE_VERSION "\n") == 0)
|
||||
+ {
|
||||
+ /* didn't crack it, negative caching */
|
||||
+ return -1;
|
||||
}
|
||||
-
|
||||
- close( i_fd );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -263,6 +269,15 @@ int dvdcss_title ( dvdcss_t dvdcss, int i_block )
|
||||
{
|
||||
print_error( dvdcss, "fatal error in Video Title Set (VTS) "
|
||||
"Content Scrambling System (CSS) key" );
|
||||
+ i_fd = open( dvdcss->psz_cachefile, O_RDWR|O_CREAT, 0644 );
|
||||
+ if( i_fd >= 0 )
|
||||
+ {
|
||||
+ char message[sizeof(PACKAGE_VERSION) + 3];
|
||||
+
|
||||
+ sprintf( message, "%s\n", PACKAGE_VERSION);
|
||||
+ write( i_fd, message, strlen(message) );
|
||||
+ close( i_fd );
|
||||
+ }
|
||||
return i_ret;
|
||||
}
|
||||
|
13
converters/opencc/libdvdcss/pkg/DESCR
Normal file
13
converters/opencc/libdvdcss/pkg/DESCR
Normal file
@ -0,0 +1,13 @@
|
||||
libdvdcss is a simple library designed for accessing DVDs like a block
|
||||
device without having to worry about the decryption.
|
||||
|
||||
It can be controlled through environment variables:
|
||||
|
||||
DVDCSS_VERBOSE={0|1|2}:
|
||||
0: no error messages, no debug messages,
|
||||
1: only error messages (this is the default)
|
||||
2: error and debug messages
|
||||
|
||||
DVDCSS_CACHE=directory:
|
||||
specifies an alternate directory in which to store title key
|
||||
values. ~/.dvdcss is the default.
|
14
converters/opencc/libdvdcss/pkg/PLIST
Normal file
14
converters/opencc/libdvdcss/pkg/PLIST
Normal file
@ -0,0 +1,14 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
include/dvdcss/
|
||||
include/dvdcss/dvdcss.h
|
||||
include/dvdcss/version.h
|
||||
lib/libdvdcss.a
|
||||
lib/libdvdcss.la
|
||||
@lib lib/libdvdcss.so.${LIBdvdcss_VERSION}
|
||||
lib/pkgconfig/libdvdcss.pc
|
||||
share/doc/libdvdcss/
|
||||
share/doc/libdvdcss/AUTHORS
|
||||
share/doc/libdvdcss/COPYING
|
||||
share/doc/libdvdcss/ChangeLog
|
||||
share/doc/libdvdcss/NEWS
|
||||
share/doc/libdvdcss/README
|
28
converters/opencc/libiconv/Makefile
Normal file
28
converters/opencc/libiconv/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
COMMENT= character set conversion library
|
||||
|
||||
DISTNAME= libiconv-1.14
|
||||
REVISION= 3
|
||||
CATEGORIES= converters devel
|
||||
MASTER_SITES= ${MASTER_SITE_GNU:=libiconv/}
|
||||
|
||||
SHARED_LIBS= charset 1.1 \
|
||||
iconv 6.0
|
||||
|
||||
HOMEPAGE= https://www.gnu.org/software/libiconv/
|
||||
|
||||
MAINTAINER= Brad Smith <brad@comstyle.com>
|
||||
|
||||
# LGPLv2 and GPLv3
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
WANTLIB= c
|
||||
|
||||
SEPARATE_BUILD= Yes
|
||||
CONFIGURE_STYLE= gnu
|
||||
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/build-aux ${WRKSRC}/libcharset/build-aux
|
||||
CONFIGURE_ARGS= --disable-nls \
|
||||
--enable-extra-encodings \
|
||||
--enable-static
|
||||
|
||||
.include <bsd.port.mk>
|
2
converters/opencc/libiconv/distinfo
Normal file
2
converters/opencc/libiconv/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (libiconv-1.14.tar.gz) = crJN7RfWhxk8M2bQ6+fN4eaxjw34xVQ4rJW+OeijBhM=
|
||||
SIZE (libiconv-1.14.tar.gz) = 4984397
|
46
converters/opencc/libiconv/patches/patch-lib_relocatable_c
Normal file
46
converters/opencc/libiconv/patches/patch-lib_relocatable_c
Normal file
@ -0,0 +1,46 @@
|
||||
$OpenBSD: patch-lib_relocatable_c,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
--- lib/relocatable.c.orig Thu Sep 1 18:08:15 2011
|
||||
+++ lib/relocatable.c Thu Sep 1 18:21:29 2011
|
||||
@@ -446,16 +446,20 @@ relocate (const char *pathname)
|
||||
if (orig_prefix != NULL && curr_prefix != NULL
|
||||
&& strncmp (pathname, orig_prefix, orig_prefix_len) == 0)
|
||||
{
|
||||
+ char *result;
|
||||
+ size_t len;
|
||||
+
|
||||
if (pathname[orig_prefix_len] == '\0')
|
||||
{
|
||||
/* pathname equals orig_prefix. */
|
||||
- char *result = (char *) xmalloc (strlen (curr_prefix) + 1);
|
||||
+ len = strlen (curr_prefix) + 1;
|
||||
+ result = (char *) xmalloc (len);
|
||||
|
||||
#ifdef NO_XMALLOC
|
||||
if (result != NULL)
|
||||
#endif
|
||||
{
|
||||
- strcpy (result, curr_prefix);
|
||||
+ strlcpy (result, curr_prefix, len);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -463,15 +467,16 @@ relocate (const char *pathname)
|
||||
{
|
||||
/* pathname starts with orig_prefix. */
|
||||
const char *pathname_tail = &pathname[orig_prefix_len];
|
||||
- char *result =
|
||||
- (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1);
|
||||
+ len = curr_prefix_len + strlen (pathname_tail) + 1;
|
||||
+ result = (char *) xmalloc (len);
|
||||
|
||||
#ifdef NO_XMALLOC
|
||||
if (result != NULL)
|
||||
#endif
|
||||
{
|
||||
memcpy (result, curr_prefix, curr_prefix_len);
|
||||
- strcpy (result + curr_prefix_len, pathname_tail);
|
||||
+ result[curr_prefix_len] = '\0';
|
||||
+ strlcat (result, pathname_tail, len);
|
||||
return result;
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-libcharset_lib_config_charset,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
--- libcharset/lib/config.charset.orig Mon Apr 5 02:25:38 2010
|
||||
+++ libcharset/lib/config.charset Fri Apr 10 21:46:05 2015
|
||||
@@ -402,7 +402,7 @@ case "$os" in
|
||||
echo "SJIS SHIFT_JIS"
|
||||
;;
|
||||
openbsd*)
|
||||
- echo "646 ASCII"
|
||||
+ echo "US-ASCII ASCII"
|
||||
echo "ISO8859-1 ISO-8859-1"
|
||||
echo "ISO8859-2 ISO-8859-2"
|
||||
echo "ISO8859-4 ISO-8859-4"
|
@ -0,0 +1,24 @@
|
||||
$OpenBSD: patch-libcharset_lib_localcharset_c,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
--- libcharset/lib/localcharset.c.orig Thu Sep 1 18:15:01 2011
|
||||
+++ libcharset/lib/localcharset.c Thu Sep 1 18:17:12 2011
|
||||
@@ -232,8 +232,9 @@ get_charset_aliases (void)
|
||||
free (old_res_ptr);
|
||||
break;
|
||||
}
|
||||
- strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1);
|
||||
- strcpy (res_ptr + res_size - (l2 + 1), buf2);
|
||||
+ strlcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1,
|
||||
+ l1 + 1 + l2 + 1 + 1);
|
||||
+ strlcpy (res_ptr + res_size - (l2 + 1), buf2, l2 + 1 + 1);
|
||||
}
|
||||
fclose (fp);
|
||||
if (res_size == 0)
|
||||
@@ -352,6 +353,8 @@ get_charset_aliases (void)
|
||||
If the canonical name cannot be determined, the result is a non-canonical
|
||||
name. */
|
||||
|
||||
+const char *
|
||||
+locale_charset (void) __attribute__((visibility ("default")));
|
||||
#ifdef STATIC
|
||||
STATIC
|
||||
#endif
|
20
converters/opencc/libiconv/patches/patch-src_Makefile_in
Normal file
20
converters/opencc/libiconv/patches/patch-src_Makefile_in
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
--- src/Makefile.in.orig Thu Sep 1 18:19:18 2011
|
||||
+++ src/Makefile.in Thu Sep 1 18:20:19 2011
|
||||
@@ -71,7 +71,6 @@ OBJECTS_RES_no =
|
||||
# without internationalization and not linked with libintl.
|
||||
|
||||
all : iconv_no_i18n$(EXEEXT) iconv.@OBJEXT@ $(OBJECTS_RES_@WOE32@)
|
||||
- test `ls -ld . | sed -e 's/^d\(.........\).*/\1/'` = rwxrwxrwx || chmod 777 .
|
||||
|
||||
# This is the temporary iconv executable, without internationalization.
|
||||
iconv_no_i18n$(EXEEXT) : iconv_no_i18n.@OBJEXT@ ../lib/libiconv.la $(OBJECTS_RES_@WOE32@)
|
||||
@@ -113,7 +112,7 @@ install : all force
|
||||
if [ ! -d $(DESTDIR)$(bindir) ] ; then $(mkinstalldirs) $(DESTDIR)$(bindir) ; fi
|
||||
case "@host_os@" in \
|
||||
hpux*) $(CC) $(LDFLAGS) $(CFLAGS) $(iconv_LDFLAGS) iconv.@OBJEXT@ ../srclib/libicrt.a -L$(DESTDIR)$(libdir) -liconv @LIBINTL@ $(OBJECTS_RES_@WOE32@) `if test -n '$(DESTDIR)'; then echo " -Wl,+b -Wl,$(libdir)"; fi` -o iconv$(EXEEXT);; \
|
||||
- *) $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) $(iconv_LDFLAGS) iconv.@OBJEXT@ ../srclib/libicrt.a $(DESTDIR)$(libdir)/libiconv.la @LTLIBINTL@ $(OBJECTS_RES_@WOE32@) -o iconv$(EXEEXT);; \
|
||||
+ *) $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) $(iconv_LDFLAGS) iconv.@OBJEXT@ ../srclib/libicrt.a ../lib/libiconv.la @LTLIBINTL@ $(OBJECTS_RES_@WOE32@) -o iconv$(EXEEXT);; \
|
||||
esac
|
||||
$(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) iconv$(EXEEXT) $(DESTDIR)$(bindir)/iconv$(EXEEXT)
|
||||
|
19
converters/opencc/libiconv/patches/patch-tests_Makefile_in
Normal file
19
converters/opencc/libiconv/patches/patch-tests_Makefile_in
Normal file
@ -0,0 +1,19 @@
|
||||
$OpenBSD: patch-tests_Makefile_in,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
If SEPARATE_BUILD is enabled,
|
||||
check-stateless . FOO
|
||||
will check for a nonexistent ./FOO.IRREVERSIBLE.TXT and fail to take
|
||||
$(srcdir)/FOO.IRREVERSIBLE.TXT into consideration.
|
||||
|
||||
--- tests/Makefile.in.orig Wed Nov 24 03:24:03 2010
|
||||
+++ tests/Makefile.in Fri Sep 2 22:24:26 2011
|
||||
@@ -128,7 +128,9 @@ check : all table-from table-to ../src/iconv_no_i18n t
|
||||
$(srcdir)/check-stateless $(srcdir) CP936
|
||||
$(CC) $(LDFLAGS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(srcdir)/gengb18030z.c ../srclib/libicrt.a -o gengb18030z && \
|
||||
{ cat $(srcdir)/GB18030-BMP.TXT ; ./gengb18030z ; } | sort > GB18030.TXT && \
|
||||
+ { test $(srcdir) = . || cp $(srcdir)/GB18030.IRREVERSIBLE.TXT GB18030.IRREVERSIBLE.TXT; } && \
|
||||
$(srcdir)/check-stateless . GB18030 && \
|
||||
+ { test $(srcdir) = . || $(RM) GB18030.IRREVERSIBLE.TXT; } && \
|
||||
$(RM) -r gengb18030z@EXEEXT@ gengb18030z.dSYM GB18030.TXT
|
||||
$(srcdir)/check-stateful $(srcdir) ISO-2022-CN
|
||||
$(srcdir)/check-stateful $(srcdir) ISO-2022-CN-EXT
|
13
converters/opencc/libiconv/pkg/DESCR
Normal file
13
converters/opencc/libiconv/pkg/DESCR
Normal file
@ -0,0 +1,13 @@
|
||||
libiconv provides an iconv() implementation, for use on systems which
|
||||
don't have one, or whose implementation cannot convert from/to Unicode.
|
||||
|
||||
It can convert from any of supported encodings to any other, through Unicode
|
||||
conversion.
|
||||
|
||||
It has also some limited support for transliteration, i.e. when a character
|
||||
cannot be represented in the target character set, it can be approximated
|
||||
through one or several similarly looking characters. Transliteration is
|
||||
activated when "//TRANSLIT" is appended to the target encoding name.
|
||||
|
||||
libiconv is for you if your application needs to support multiple character
|
||||
encodings, but that support lacks from your system.
|
25
converters/opencc/libiconv/pkg/PLIST
Normal file
25
converters/opencc/libiconv/pkg/PLIST
Normal file
@ -0,0 +1,25 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
@bin bin/iconv
|
||||
include/iconv.h
|
||||
include/libcharset.h
|
||||
include/localcharset.h
|
||||
lib/charset.alias
|
||||
lib/libcharset.a
|
||||
lib/libcharset.la
|
||||
@lib lib/libcharset.so.${LIBcharset_VERSION}
|
||||
lib/libiconv.a
|
||||
lib/libiconv.la
|
||||
@lib lib/libiconv.so.${LIBiconv_VERSION}
|
||||
@man man/man1/iconv.1
|
||||
@man man/man3/iconv.3
|
||||
@man man/man3/iconv_close.3
|
||||
@man man/man3/iconv_open.3
|
||||
@man man/man3/iconv_open_into.3
|
||||
@man man/man3/iconvctl.3
|
||||
share/doc/libiconv/
|
||||
share/doc/libiconv/iconv.1.html
|
||||
share/doc/libiconv/iconv.3.html
|
||||
share/doc/libiconv/iconv_close.3.html
|
||||
share/doc/libiconv/iconv_open.3.html
|
||||
share/doc/libiconv/iconv_open_into.3.html
|
||||
share/doc/libiconv/iconvctl.3.html
|
78
converters/opencc/libpst/Makefile
Normal file
78
converters/opencc/libpst/Makefile
Normal file
@ -0,0 +1,78 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
BROKEN-hppa= linking .libs/python-libpst.o fails
|
||||
|
||||
COMMENT-main= read and convert Microsoft Outlook mail files
|
||||
COMMENT-python= python interface to libpst
|
||||
|
||||
DISTNAME= libpst-0.6.72
|
||||
|
||||
SHARED_LIBS += pst 3.0 # 5.14
|
||||
|
||||
PKGNAME-main= ${DISTNAME}
|
||||
PKGNAME-python= py-${DISTNAME}
|
||||
REVISION-main= 0
|
||||
REVISION-python= 0
|
||||
|
||||
CATEGORIES= converters mail
|
||||
|
||||
HOMEPAGE= http://www.five-ten-sg.com/libpst/
|
||||
|
||||
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
cWANTLIB += m pthread ${COMPILER_LIBCXX}
|
||||
|
||||
WANTLIB-main += ${cWANTLIB} iconv intl
|
||||
WANTLIB-main += bz2 c expat ffi fontconfig freetype gd gio-2.0
|
||||
WANTLIB-main += glib-2.0 gmodule-2.0 gobject-2.0 gsf-1 jpeg pcre png
|
||||
WANTLIB-main += tiff webp xml2 z m pthread ${COMPILER_LIBCXX} lzma
|
||||
|
||||
WANTLIB-python += ${cWANTLIB} iconv
|
||||
WANTLIB-python += pst boost_python
|
||||
|
||||
COMPILER = base-clang ports-gcc base-gcc
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}/packages/ \
|
||||
https://distfiles.nl/
|
||||
|
||||
MULTI_PACKAGES= -main -python
|
||||
|
||||
MODULES= lang/python
|
||||
|
||||
BUILD_DEPENDS= graphics/ImageMagick
|
||||
RUN_DEPENDS-main= graphics/ImageMagick
|
||||
LIB_DEPENDS-main= devel/libgsf \
|
||||
graphics/gd
|
||||
|
||||
LIB_DEPENDS-python= ${BASE_PKGPATH} \
|
||||
devel/boost
|
||||
|
||||
USE_GMAKE= Yes
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ARGS+= --enable-pst-debug \
|
||||
--disable-static-tools \
|
||||
--enable-libpst-shared
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${MODPY_INCDIR}" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib" \
|
||||
PYTHON_LDFLAGS="-L${LOCALBASE}/lib -lpython${MODPY_VERSION} -lm" \
|
||||
PYTHON_BIN="python${MODPY_VERSION}"
|
||||
|
||||
# XXX eats all memory
|
||||
.if ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "hppa"
|
||||
CFLAGS+= -O0
|
||||
.endif
|
||||
|
||||
FAKE_FLAGS+= htmldir="${PREFIX}/share/doc/libpst/" \
|
||||
htmldeveldir="${PREFIX}/share/doc/libpst/devel/"
|
||||
|
||||
pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/configure
|
||||
|
||||
post-install:
|
||||
rm ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/*.{a,la}
|
||||
|
||||
.include <bsd.port.mk>
|
2
converters/opencc/libpst/distinfo
Normal file
2
converters/opencc/libpst/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (libpst-0.6.72.tar.gz) = ihnYkesHcJHFB9mO2OLSS39Is+gnQ7zOKwChIED11Qc=
|
||||
SIZE (libpst-0.6.72.tar.gz) = 14025331
|
8
converters/opencc/libpst/pkg/DESCR-main
Normal file
8
converters/opencc/libpst/pkg/DESCR-main
Normal file
@ -0,0 +1,8 @@
|
||||
Tools for converting Outlook .pst files to Unix mbox and other formats.
|
||||
|
||||
It can convert both 32-bit Outlook files, and the 64-bit Outlook .pst
|
||||
files (up to 2003). Utilities are supplied to convert email messages to
|
||||
both mbox and MH mailbox formats, and to DII load file format for use
|
||||
with many of the CT Summation products. Contacts can be converted to a
|
||||
simple list, to vcard format, or to .ldif format for import to an LDAP
|
||||
server.
|
1
converters/opencc/libpst/pkg/DESCR-python
Normal file
1
converters/opencc/libpst/pkg/DESCR-python
Normal file
@ -0,0 +1 @@
|
||||
Python bindings for libpst.
|
208
converters/opencc/libpst/pkg/PLIST-main
Normal file
208
converters/opencc/libpst/pkg/PLIST-main
Normal file
@ -0,0 +1,208 @@
|
||||
@comment $OpenBSD: PLIST-main,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
@pkgpath converters/libpst
|
||||
@bin bin/lspst
|
||||
@bin bin/nick2ldif
|
||||
@bin bin/pst2dii
|
||||
@bin bin/pst2ldif
|
||||
@bin bin/readpst
|
||||
include/libpst-4/
|
||||
include/libpst-4/libpst/
|
||||
include/libpst-4/libpst/common.h
|
||||
include/libpst-4/libpst/libpst.h
|
||||
include/libpst-4/libpst/libstrfunc.h
|
||||
include/libpst-4/libpst/lzfu.h
|
||||
include/libpst-4/libpst/timeconv.h
|
||||
include/libpst-4/libpst/vbuf.h
|
||||
lib/libpst.a
|
||||
lib/libpst.la
|
||||
@lib lib/libpst.so.${LIBpst_VERSION}
|
||||
lib/pkgconfig/libpst.pc
|
||||
@man man/man1/lspst.1
|
||||
@man man/man1/pst2dii.1
|
||||
@man man/man1/pst2ldif.1
|
||||
@man man/man1/readpst.1
|
||||
@man man/man5/outlook.pst.5
|
||||
share/doc/libpst/
|
||||
share/doc/libpst/AUTHORS
|
||||
share/doc/libpst/COPYING
|
||||
share/doc/libpst/ChangeLog
|
||||
share/doc/libpst/NEWS
|
||||
share/doc/libpst/README
|
||||
share/doc/libpst/devel/
|
||||
share/doc/libpst/devel/annotated.html
|
||||
share/doc/libpst/devel/classes.html
|
||||
share/doc/libpst/devel/common_8h.html
|
||||
share/doc/libpst/devel/common_8h__dep__incl.map
|
||||
share/doc/libpst/devel/common_8h__dep__incl.md5
|
||||
share/doc/libpst/devel/common_8h__dep__incl.png
|
||||
share/doc/libpst/devel/common_8h__incl.map
|
||||
share/doc/libpst/devel/common_8h__incl.md5
|
||||
share/doc/libpst/devel/common_8h__incl.png
|
||||
share/doc/libpst/devel/common_8h_source.html
|
||||
share/doc/libpst/devel/dir_b70fe5ddb0cf22452a64074199c6435e.html
|
||||
share/doc/libpst/devel/dir_b70fe5ddb0cf22452a64074199c6435e_dep.map
|
||||
share/doc/libpst/devel/dir_b70fe5ddb0cf22452a64074199c6435e_dep.png
|
||||
share/doc/libpst/devel/dirs.html
|
||||
share/doc/libpst/devel/doxygen.css
|
||||
share/doc/libpst/devel/doxygen.png
|
||||
share/doc/libpst/devel/files.html
|
||||
share/doc/libpst/devel/ftv2blank.png
|
||||
share/doc/libpst/devel/ftv2doc.png
|
||||
share/doc/libpst/devel/ftv2folderclosed.png
|
||||
share/doc/libpst/devel/ftv2folderopen.png
|
||||
share/doc/libpst/devel/ftv2lastnode.png
|
||||
share/doc/libpst/devel/ftv2link.png
|
||||
share/doc/libpst/devel/ftv2mlastnode.png
|
||||
share/doc/libpst/devel/ftv2mnode.png
|
||||
share/doc/libpst/devel/ftv2node.png
|
||||
share/doc/libpst/devel/ftv2plastnode.png
|
||||
share/doc/libpst/devel/ftv2pnode.png
|
||||
share/doc/libpst/devel/ftv2vertline.png
|
||||
share/doc/libpst/devel/functions.html
|
||||
share/doc/libpst/devel/functions_0x62.html
|
||||
share/doc/libpst/devel/functions_0x63.html
|
||||
share/doc/libpst/devel/functions_0x64.html
|
||||
share/doc/libpst/devel/functions_0x65.html
|
||||
share/doc/libpst/devel/functions_0x66.html
|
||||
share/doc/libpst/devel/functions_0x67.html
|
||||
share/doc/libpst/devel/functions_0x68.html
|
||||
share/doc/libpst/devel/functions_0x69.html
|
||||
share/doc/libpst/devel/functions_0x6a.html
|
||||
share/doc/libpst/devel/functions_0x6b.html
|
||||
share/doc/libpst/devel/functions_0x6c.html
|
||||
share/doc/libpst/devel/functions_0x6d.html
|
||||
share/doc/libpst/devel/functions_0x6e.html
|
||||
share/doc/libpst/devel/functions_0x6f.html
|
||||
share/doc/libpst/devel/functions_0x70.html
|
||||
share/doc/libpst/devel/functions_0x72.html
|
||||
share/doc/libpst/devel/functions_0x73.html
|
||||
share/doc/libpst/devel/functions_0x74.html
|
||||
share/doc/libpst/devel/functions_0x75.html
|
||||
share/doc/libpst/devel/functions_0x76.html
|
||||
share/doc/libpst/devel/functions_0x77.html
|
||||
share/doc/libpst/devel/functions_0x78.html
|
||||
share/doc/libpst/devel/functions_vars.html
|
||||
share/doc/libpst/devel/functions_vars_0x62.html
|
||||
share/doc/libpst/devel/functions_vars_0x63.html
|
||||
share/doc/libpst/devel/functions_vars_0x64.html
|
||||
share/doc/libpst/devel/functions_vars_0x65.html
|
||||
share/doc/libpst/devel/functions_vars_0x66.html
|
||||
share/doc/libpst/devel/functions_vars_0x67.html
|
||||
share/doc/libpst/devel/functions_vars_0x68.html
|
||||
share/doc/libpst/devel/functions_vars_0x69.html
|
||||
share/doc/libpst/devel/functions_vars_0x6a.html
|
||||
share/doc/libpst/devel/functions_vars_0x6b.html
|
||||
share/doc/libpst/devel/functions_vars_0x6c.html
|
||||
share/doc/libpst/devel/functions_vars_0x6d.html
|
||||
share/doc/libpst/devel/functions_vars_0x6e.html
|
||||
share/doc/libpst/devel/functions_vars_0x6f.html
|
||||
share/doc/libpst/devel/functions_vars_0x70.html
|
||||
share/doc/libpst/devel/functions_vars_0x72.html
|
||||
share/doc/libpst/devel/functions_vars_0x73.html
|
||||
share/doc/libpst/devel/functions_vars_0x74.html
|
||||
share/doc/libpst/devel/functions_vars_0x75.html
|
||||
share/doc/libpst/devel/functions_vars_0x76.html
|
||||
share/doc/libpst/devel/functions_vars_0x77.html
|
||||
share/doc/libpst/devel/functions_vars_0x78.html
|
||||
share/doc/libpst/devel/globals.html
|
||||
share/doc/libpst/devel/globals_defs.html
|
||||
share/doc/libpst/devel/globals_func.html
|
||||
share/doc/libpst/devel/globals_type.html
|
||||
share/doc/libpst/devel/graph_legend.dot
|
||||
share/doc/libpst/devel/graph_legend.html
|
||||
share/doc/libpst/devel/graph_legend.png
|
||||
share/doc/libpst/devel/index.html
|
||||
share/doc/libpst/devel/libpst_8h.html
|
||||
share/doc/libpst/devel/libpst_8h__incl.map
|
||||
share/doc/libpst/devel/libpst_8h__incl.md5
|
||||
share/doc/libpst/devel/libpst_8h__incl.png
|
||||
share/doc/libpst/devel/libpst_8h_source.html
|
||||
share/doc/libpst/devel/libstrfunc_8h.html
|
||||
share/doc/libpst/devel/libstrfunc_8h__incl.map
|
||||
share/doc/libpst/devel/libstrfunc_8h__incl.md5
|
||||
share/doc/libpst/devel/libstrfunc_8h__incl.png
|
||||
share/doc/libpst/devel/libstrfunc_8h_source.html
|
||||
share/doc/libpst/devel/lzfu_8h.html
|
||||
share/doc/libpst/devel/lzfu_8h_source.html
|
||||
share/doc/libpst/devel/main.html
|
||||
share/doc/libpst/devel/structFILETIME.html
|
||||
share/doc/libpst/devel/structpst__binary.html
|
||||
share/doc/libpst/devel/structpst__block__recorder.html
|
||||
share/doc/libpst/devel/structpst__block__recorder__coll__graph.map
|
||||
share/doc/libpst/devel/structpst__block__recorder__coll__graph.md5
|
||||
share/doc/libpst/devel/structpst__block__recorder__coll__graph.png
|
||||
share/doc/libpst/devel/structpst__desc__tree.html
|
||||
share/doc/libpst/devel/structpst__desc__tree__coll__graph.map
|
||||
share/doc/libpst/devel/structpst__desc__tree__coll__graph.md5
|
||||
share/doc/libpst/devel/structpst__desc__tree__coll__graph.png
|
||||
share/doc/libpst/devel/structpst__entryid.html
|
||||
share/doc/libpst/devel/structpst__file.html
|
||||
share/doc/libpst/devel/structpst__file__coll__graph.map
|
||||
share/doc/libpst/devel/structpst__file__coll__graph.md5
|
||||
share/doc/libpst/devel/structpst__file__coll__graph.png
|
||||
share/doc/libpst/devel/structpst__id2__tree.html
|
||||
share/doc/libpst/devel/structpst__id2__tree__coll__graph.map
|
||||
share/doc/libpst/devel/structpst__id2__tree__coll__graph.md5
|
||||
share/doc/libpst/devel/structpst__id2__tree__coll__graph.png
|
||||
share/doc/libpst/devel/structpst__index__ll.html
|
||||
share/doc/libpst/devel/structpst__item.html
|
||||
share/doc/libpst/devel/structpst__item__appointment.html
|
||||
share/doc/libpst/devel/structpst__item__appointment__coll__graph.map
|
||||
share/doc/libpst/devel/structpst__item__appointment__coll__graph.md5
|
||||
share/doc/libpst/devel/structpst__item__appointment__coll__graph.png
|
||||
share/doc/libpst/devel/structpst__item__attach.html
|
||||
share/doc/libpst/devel/structpst__item__attach__coll__graph.map
|
||||
share/doc/libpst/devel/structpst__item__attach__coll__graph.md5
|
||||
share/doc/libpst/devel/structpst__item__attach__coll__graph.png
|
||||
share/doc/libpst/devel/structpst__item__coll__graph.map
|
||||
share/doc/libpst/devel/structpst__item__coll__graph.md5
|
||||
share/doc/libpst/devel/structpst__item__coll__graph.png
|
||||
share/doc/libpst/devel/structpst__item__contact.html
|
||||
share/doc/libpst/devel/structpst__item__contact__coll__graph.map
|
||||
share/doc/libpst/devel/structpst__item__contact__coll__graph.md5
|
||||
share/doc/libpst/devel/structpst__item__contact__coll__graph.png
|
||||
share/doc/libpst/devel/structpst__item__email.html
|
||||
share/doc/libpst/devel/structpst__item__email__coll__graph.map
|
||||
share/doc/libpst/devel/structpst__item__email__coll__graph.md5
|
||||
share/doc/libpst/devel/structpst__item__email__coll__graph.png
|
||||
share/doc/libpst/devel/structpst__item__extra__field.html
|
||||
share/doc/libpst/devel/structpst__item__extra__field__coll__graph.map
|
||||
share/doc/libpst/devel/structpst__item__extra__field__coll__graph.md5
|
||||
share/doc/libpst/devel/structpst__item__extra__field__coll__graph.png
|
||||
share/doc/libpst/devel/structpst__item__folder.html
|
||||
share/doc/libpst/devel/structpst__item__journal.html
|
||||
share/doc/libpst/devel/structpst__item__journal__coll__graph.map
|
||||
share/doc/libpst/devel/structpst__item__journal__coll__graph.md5
|
||||
share/doc/libpst/devel/structpst__item__journal__coll__graph.png
|
||||
share/doc/libpst/devel/structpst__item__message__store.html
|
||||
share/doc/libpst/devel/structpst__item__message__store__coll__graph.map
|
||||
share/doc/libpst/devel/structpst__item__message__store__coll__graph.md5
|
||||
share/doc/libpst/devel/structpst__item__message__store__coll__graph.png
|
||||
share/doc/libpst/devel/structpst__recurrence.html
|
||||
share/doc/libpst/devel/structpst__string.html
|
||||
share/doc/libpst/devel/structpst__varbuf.html
|
||||
share/doc/libpst/devel/structpst__x__attrib__ll.html
|
||||
share/doc/libpst/devel/structpst__x__attrib__ll__coll__graph.map
|
||||
share/doc/libpst/devel/structpst__x__attrib__ll__coll__graph.md5
|
||||
share/doc/libpst/devel/structpst__x__attrib__ll__coll__graph.png
|
||||
share/doc/libpst/devel/tab_b.gif
|
||||
share/doc/libpst/devel/tab_l.gif
|
||||
share/doc/libpst/devel/tab_r.gif
|
||||
share/doc/libpst/devel/tabs.css
|
||||
share/doc/libpst/devel/timeconv_8h.html
|
||||
share/doc/libpst/devel/timeconv_8h__incl.map
|
||||
share/doc/libpst/devel/timeconv_8h__incl.md5
|
||||
share/doc/libpst/devel/timeconv_8h__incl.png
|
||||
share/doc/libpst/devel/timeconv_8h_source.html
|
||||
share/doc/libpst/devel/tree.html
|
||||
share/doc/libpst/devel/vbuf_8h.html
|
||||
share/doc/libpst/devel/vbuf_8h__incl.map
|
||||
share/doc/libpst/devel/vbuf_8h__incl.md5
|
||||
share/doc/libpst/devel/vbuf_8h__incl.png
|
||||
share/doc/libpst/devel/vbuf_8h_source.html
|
||||
share/doc/libpst/index.html
|
||||
share/doc/libpst/rn01re01.html
|
||||
share/doc/libpst/rn01re02.html
|
||||
share/doc/libpst/rn01re03.html
|
||||
share/doc/libpst/rn01re04.html
|
||||
share/doc/libpst/rn01re05.html
|
2
converters/opencc/libpst/pkg/PLIST-python
Normal file
2
converters/opencc/libpst/pkg/PLIST-python
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PLIST-python,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
lib/python${MODPY_VERSION}/site-packages/_libpst.so
|
26
converters/opencc/libunistring/Makefile
Normal file
26
converters/opencc/libunistring/Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
|
||||
COMMENT = manipulate Unicode strings
|
||||
|
||||
DISTNAME = libunistring-0.9.7
|
||||
|
||||
SHARED_LIBS += unistring 0.1 # 2.0
|
||||
|
||||
CATEGORIES = converters
|
||||
|
||||
HOMEPAGE = https://www.gnu.org/software/libunistring/
|
||||
|
||||
MAINTAINER = Pascal Stumpf <pascal@stumpf.co>
|
||||
|
||||
# LGPLv3+ or GPLv2+
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
WANTLIB = iconv
|
||||
|
||||
MASTER_SITES = ${MASTER_SITE_GNU:=libunistring/}
|
||||
|
||||
LIB_DEPENDS = converters/libiconv
|
||||
|
||||
CONFIGURE_STYLE = gnu
|
||||
|
||||
.include <bsd.port.mk>
|
2
converters/opencc/libunistring/distinfo
Normal file
2
converters/opencc/libunistring/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (libunistring-0.9.7.tar.gz) = nOCBy+4ZUbVVl7MOcDC9qdey8DTvkBoTX/OgIL5aQeU=
|
||||
SIZE (libunistring-0.9.7.tar.gz) = 3589989
|
12
converters/opencc/libunistring/patches/patch-Makefile_in
Normal file
12
converters/opencc/libunistring/patches/patch-Makefile_in
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
--- Makefile.in.orig Fri Dec 2 17:43:05 2016
|
||||
+++ Makefile.in Thu Dec 29 17:04:14 2016
|
||||
@@ -1374,7 +1374,7 @@ top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
|
||||
ACLOCAL_AMFLAGS = -I m4 -I gnulib-m4
|
||||
-SUBDIRS = doc gnulib-local lib tests
|
||||
+SUBDIRS = gnulib-local lib tests
|
||||
|
||||
# Allow users to use "gnulib-tool --update".
|
||||
|
11
converters/opencc/libunistring/pkg/DESCR
Normal file
11
converters/opencc/libunistring/pkg/DESCR
Normal file
@ -0,0 +1,11 @@
|
||||
Text files are nowadays usually encoded in Unicode, and may consist of
|
||||
very different scripts - from Latin letters to Chinese Hanzi -, with
|
||||
many kinds of special characters - accents, right-to-left writing marks,
|
||||
hyphens, Roman numbers, and much more. But the POSIX platform APIs for
|
||||
text do not contain adequate functions for dealing with particular
|
||||
properties of many Unicode characters. In fact, the POSIX APIs for text
|
||||
have several assumptions at their base which don't hold for Unicode
|
||||
text.
|
||||
|
||||
This library provides functions for manipulating Unicode strings and for
|
||||
manipulating C strings according to the Unicode standard.
|
26
converters/opencc/libunistring/pkg/PLIST
Normal file
26
converters/opencc/libunistring/pkg/PLIST
Normal file
@ -0,0 +1,26 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/12/18 09:20:19 bentley Exp $
|
||||
include/unicase.h
|
||||
include/uniconv.h
|
||||
include/unictype.h
|
||||
include/unigbrk.h
|
||||
include/unilbrk.h
|
||||
include/uniname.h
|
||||
include/uninorm.h
|
||||
include/unistdio.h
|
||||
include/unistr.h
|
||||
include/unistring/
|
||||
include/unistring/cdefs.h
|
||||
include/unistring/iconveh.h
|
||||
include/unistring/inline.h
|
||||
include/unistring/localcharset.h
|
||||
include/unistring/stdbool.h
|
||||
include/unistring/stdint.h
|
||||
include/unistring/version.h
|
||||
include/unistring/woe32dll.h
|
||||
include/unitypes.h
|
||||
include/uniwbrk.h
|
||||
include/uniwidth.h
|
||||
@comment lib/charset.alias
|
||||
lib/libunistring.a
|
||||
lib/libunistring.la
|
||||
@lib lib/libunistring.so.${LIBunistring_VERSION}
|
43
converters/opencc/lua-iconv/Makefile
Normal file
43
converters/opencc/lua-iconv/Makefile
Normal file
@ -0,0 +1,43 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
COMMENT = Lua bindings for the iconv library
|
||||
|
||||
V = 7
|
||||
DISTNAME = lua-iconv-${V}
|
||||
|
||||
GH_ACCOUNT = ittner
|
||||
GH_PROJECT = lua-iconv
|
||||
GH_TAGNAME = lua-iconv-${V}
|
||||
|
||||
CATEGORIES = converters
|
||||
|
||||
MAINTAINER = Frederic Cambus <fcambus@openbsd.org>
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
LIB_DEPENDS = converters/libiconv
|
||||
|
||||
MODULES = lang/lua
|
||||
TEST_DEPENDS += ${BASE_PKGPATH}
|
||||
WANTLIB += ${MODLUA_WANTLIB} iconv
|
||||
|
||||
FLAVORS = lua52 lua53
|
||||
FLAVOR ?=
|
||||
|
||||
CFLAGS += `pkg-config --cflags ${MODLUA_DEP}` -I${LOCALBASE}/include
|
||||
LINK = ${CC} ${CFLAGS} -fPIC -shared -L${LOCALBASE}/lib -o
|
||||
|
||||
do-build:
|
||||
cd ${WRKDIST} && ${LINK} iconv.so luaiconv.c ${MODLUA_LIB} -liconv
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/iconv.so ${MODLUA_LIBDIR}
|
||||
${INSTALL_DATA_DIR} ${MODLUA_DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${MODLUA_DOCDIR}
|
||||
|
||||
do-test:
|
||||
cd ${WRKDIST} && ${MODLUA_BIN} test_iconv.lua
|
||||
|
||||
.include <bsd.port.mk>
|
2
converters/opencc/lua-iconv/distinfo
Normal file
2
converters/opencc/lua-iconv/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (lua-iconv-7.tar.gz) = xwgEE7Pn1H3IAqaN8huz82h/b/csjBDBT/yVg88+Je0=
|
||||
SIZE (lua-iconv-7.tar.gz) = 11568
|
18
converters/opencc/lua-iconv/patches/patch-test_iconv_lua
Normal file
18
converters/opencc/lua-iconv/patches/patch-test_iconv_lua
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-test_iconv_lua,v 1.1.1.1 2018/12/18 09:20:20 bentley Exp $
|
||||
|
||||
Fix encoding names and remove test for unsupported encoding
|
||||
|
||||
--- test_iconv.lua.orig Tue Oct 25 21:39:29 2016
|
||||
+++ test_iconv.lua Tue Oct 25 21:39:51 2016
|
||||
@@ -93,9 +93,8 @@ function check_one(to, from, text)
|
||||
end
|
||||
|
||||
check_one(termcs, "iso-8859-1", iso88591)
|
||||
-check_one(termcs, "utf8", utf8)
|
||||
-check_one(termcs, "utf16", utf16)
|
||||
-check_one(termcs, "EBCDIC-CP-ES", ebcdic)
|
||||
+check_one(termcs, "utf-8", utf8)
|
||||
+check_one(termcs, "utf-16", utf16)
|
||||
|
||||
|
||||
-- The library must never crash the interpreter, even if the user tweaks
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user