aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-01-15 05:41:42 +0800
committerpav <pav@FreeBSD.org>2005-01-15 05:41:42 +0800
commit55b91a58752010dcac2581609512391c3966db2b (patch)
treed9a53e6e8711a873ce00db7b2ea8d57a156651c3 /textproc
parent15a817ada4d653b91c7d5efafb1276ffefa52682 (diff)
downloadfreebsd-ports-graphics-55b91a58752010dcac2581609512391c3966db2b.tar.gz
freebsd-ports-graphics-55b91a58752010dcac2581609512391c3966db2b.tar.zst
freebsd-ports-graphics-55b91a58752010dcac2581609512391c3966db2b.zip
Add clit, a tool to manipulate Microsoft LIT eBook format.
PR: ports/76201 Submitted by: Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/clit/Makefile50
-rw-r--r--textproc/clit/distinfo4
-rw-r--r--textproc/clit/files/patch-clit_Makefile14
-rw-r--r--textproc/clit/pkg-descr22
5 files changed, 91 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 18f6e1b4e1f..de26b11e1a0 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -45,6 +45,7 @@
SUBDIR += cl-ppcre-clisp
SUBDIR += cl-ppcre-cmucl
SUBDIR += cl-ppcre-sbcl
+ SUBDIR += clit
SUBDIR += coco
SUBDIR += code2html
SUBDIR += cole
diff --git a/textproc/clit/Makefile b/textproc/clit/Makefile
new file mode 100644
index 00000000000..a53356c1472
--- /dev/null
+++ b/textproc/clit/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: clit
+# Date created: 2005-01-11
+# Whom: Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= clit
+PORTVERSION= ${MAJ_VER}.${MIN_VER}
+CATEGORIES= textproc
+MASTER_SITES= http://www.convertlit.com/\
+ http://math.libtomcrypt.org/files/:ltm
+DISTFILES= clit${MAJ_VER}${MIN_VER}src.zip \
+ ltm-0.33.tar.bz2:ltm
+EXTRACT_ONLY= clit${MAJ_VER}${MIN_VER}src.zip
+
+MAINTAINER= itetcu@people.tecnik93.com
+COMMENT= Microsoft Lit to HTML and Open eBooks converter
+
+PATCH_WRKSRC= ${WRKDIR}/${PORTNAME}${MAJ_VER}${MIN_VER}
+NO_WRKSUBDIR= yes
+
+MAJ_VER= 1
+MIN_VER= 8
+
+PLIST_FILES= bin/clit
+
+USE_ZIP= yes
+USE_REINPLACE= yes
+USE_GMAKE= yes
+
+post-extract:
+ cd ${WRKDIR} && ${BZIP2_CMD} -dc "${DISTDIR}/ltm-0.33.tar.bz2" | \
+ ${TAR} -xf -
+
+post-patch:
+ @${FIND} ${WRKDIR} -name *.c -or -name *.h | ${XARGS} ${REINPLACE_CMD} -e 's| ||'
+
+do-build:
+ cd ${WRKDIR}/libtommath-0.33 && \
+ ${SETENV} ${MAKE_ENV} ${MAKE} -f makefile libtommath.a
+ cd ${WRKDIR}/lib && ${SETENV} ${MAKE_ENV} ${GMAKE} -f Makefile all
+ cd ${WRKDIR}/${PORTNAME}${MAJ_VER}${MIN_VER} && \
+ ${SETENV} ${MAKE_ENV} ${GMAKE} -f Makefile all
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKDIR}/${PORTNAME}${MAJ_VER}${MIN_VER}/clit \
+ ${LOCALBASE}/bin
+
+.include <bsd.port.mk>
diff --git a/textproc/clit/distinfo b/textproc/clit/distinfo
new file mode 100644
index 00000000000..4d680bc77a2
--- /dev/null
+++ b/textproc/clit/distinfo
@@ -0,0 +1,4 @@
+MD5 (clit18src.zip) = d691d4729485fe5d73e3f0937d8fb42e
+SIZE (clit18src.zip) = 135120
+MD5 (ltm-0.33.tar.bz2) = deaefdedd5078ab8995c728fd9fc369b
+SIZE (ltm-0.33.tar.bz2) = 1899564
diff --git a/textproc/clit/files/patch-clit_Makefile b/textproc/clit/files/patch-clit_Makefile
new file mode 100644
index 00000000000..7b3ea53f90a
--- /dev/null
+++ b/textproc/clit/files/patch-clit_Makefile
@@ -0,0 +1,14 @@
+--- Makefile.orig Sun Jul 4 16:52:14 2004
++++ Makefile Fri Jan 14 21:56:45 2005
+@@ -1,9 +1,9 @@
+ all: clit
+
+-CFLAGS=-funsigned-char -Wall -O2 -I ../libtommath-0.30/ -I ../lib -I ../lib/des -I .
++CFLAGS=-funsigned-char -Wall -O2 -I ../libtommath-0.33/ -I ../lib -I ../lib/des -I .
+ clean:
+ rm -f *.o clit
+
+ clit: clit.o hexdump.o drm5.o explode.o transmute.o display.o utils.o manifest.o ../lib/openclit.a
+- gcc -o clit $^ ../libtommath-0.30/libtommath.a
++ gcc -o clit $^ ../libtommath-0.33/libtommath.a
+
diff --git a/textproc/clit/pkg-descr b/textproc/clit/pkg-descr
new file mode 100644
index 00000000000..585286805e5
--- /dev/null
+++ b/textproc/clit/pkg-descr
@@ -0,0 +1,22 @@
+This program has three modes of operation:
+- First, is ** EXPLOSION **, or the expanding of a .LIT file into an
+ OEBPS compliant package.
+- Second, is the DOWNCONVERTING of a .LIT file down to "Sealed",
+ or DRM1 format for reading on handheld devices.
+- Third, is the INSCRIBING of a .LIT file which allows you to label
+ your ebooks.
+
+DRM5 is supported if you have a "keys.txt" file that contains
+the private key(s) for your passport(s) in either the CLIT program
+directory or the current directory.
+
+This is a tool for **YOUR OWN FAIR USE** and not for stealing
+other people's ebooks.
+
+Please do not use this program to distrbute illegal copies of ebooks.
+ ... that would make Baby Jesus sad.
+
+WWW: http://www.convertlit.com/download.php
+
+- IOnut
+<itetcu@people.tecnik93.com>