aboutsummaryrefslogtreecommitdiff
path: root/textproc/clit
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-01-14 21:41:42 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-01-14 21:41:42 +0000
commitc28ba6d653d7970da758b52b5da06baf8e9cb8f9 (patch)
treea38031c989e3cb1c685e33244f797fe0fb65b003 /textproc/clit
parent1b0190a48e493770ef5fcf92b7d8fe60aabe543b (diff)
downloadports-c28ba6d653d7970da758b52b5da06baf8e9cb8f9.tar.gz
ports-c28ba6d653d7970da758b52b5da06baf8e9cb8f9.zip
Add clit, a tool to manipulate Microsoft LIT eBook format.
PR: ports/76201 Submitted by: Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
Notes
Notes: svn path=/head/; revision=126461
Diffstat (limited to 'textproc/clit')
-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
4 files changed, 90 insertions, 0 deletions
diff --git a/textproc/clit/Makefile b/textproc/clit/Makefile
new file mode 100644
index 000000000000..a53356c14721
--- /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 000000000000..4d680bc77a26
--- /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 000000000000..7b3ea53f90a6
--- /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 000000000000..585286805e55
--- /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>