From: Vitus Jensen <vjensen@gmx.de>
To: Openembedded-devel@lists.openembedded.org
Subject: htmldoc 1.8.27
Date: Thu, 6 Nov 2008 00:40:44 +0100 [thread overview]
Message-ID: <200811060040.45197.vjensen@gmx.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 774 bytes --]
Hej!
I need htmldoc for ARM and as this isn't available in OpenEmbedded I cooked
up my own receipt. But htmldoc has some specialities:
- it does build it's own documentation by using the generated excutable
- it contains an optional GUI component
- there are defines in config.h.in not duplicated in configure.in
I guess the complete solution would be several receipts
(-native, -doc, -console, -gui), right? But as I want it for a NAS would
the attached console-type receipt be enough? Also, is moving defines from
config.h.in to configure.in by a patch correct? It looks wrong (if one
thinks of using the same receipt for a newer version).
Please comment.
Vitus
--
Vitus Jensen, Hannover, Germany, Earth, Milkyway, Universe (current)
[-- Attachment #2: htmldoc.patch --]
[-- Type: text/x-diff, Size: 3858 bytes --]
commit c1faac87839a6bf1885ce0bdaf67d7a28223d608
Author: Vitus Jensen <vjensen@gmx.de>
Date: Tue Nov 4 00:50:51 2008 +0100
htmldoc 1.8.27: new recipe
HTMLDOC converts HTML input files into indexed HTML, postscript or PDF
files. This receipe builds the non-gui components of htmldoc.
diff --git a/packages/htmldoc/files/limits.patch b/packages/htmldoc/files/limits.patch
new file mode 100644
index 0000000..3a205ce
--- /dev/null
+++ b/packages/htmldoc/files/limits.patch
@@ -0,0 +1,46 @@
+diff -Naur htmldoc-1.8.27.org/configure.in htmldoc-1.8.27.mod/configure.in
+--- htmldoc-1.8.27.org/configure.in 2006-08-02 21:36:53.000000000 +0200
++++ htmldoc-1.8.27.mod/configure.in 2008-11-03 10:47:24.000000000 +0100
+@@ -31,7 +31,18 @@
+ NVERSION=10802600
+ AC_SUBST(SVERSION)
+ AC_SUBST(NVERSION)
+-AC_DEFINE_UNQUOTED(SVERSION, "$SVERSION")
++AC_DEFINE_UNQUOTED(SVERSION, "$SVERSION", "program version")
++
++dnl Define progra limits...
++AC_DEFINE(MAX_CHAPTERS, 1000, "Maximum number of chapters or files")
++AC_DEFINE(MAX_COLUMNS, 200, "Maximum number of columns in a table")
++AC_DEFINE(MAX_HF_IMAGES, 10, "Maximum number of header/footer images")
++AC_DEFINE(ALLOC_FILES, 10, "Temporary/image files")
++AC_DEFINE(ALLOC_HEADINGS, 50, "Headings")
++AC_DEFINE(ALLOC_LINKS, 100, "Web links")
++AC_DEFINE(ALLOC_OBJECTS, 100, "PDF objects")
++AC_DEFINE(ALLOC_PAGES, 10, "PS/PDF pages")
++AC_DEFINE(ALLOC_ROWS, 20, "Table rows")
+
+ dnl Get the operating system and version number...
+
+@@ -145,6 +156,11 @@
+
+ if test $ac_cv_c_long_long = yes; then
+ AC_DEFINE(HAVE_LONG_LONG)
++ AC_DEFINE(HTMLDOC_LLFMT, "%lld", "printf_longlong")
++ AC_DEFINE(HTMLDOC_LLCAST, (long long), "cast_longlong")
++else
++ AC_DEFINE(HTMLDOC_LLFMT, "%ld", "printf_longlong")
++ AC_DEFINE(HTMLDOC_LLCAST, (long), "cast_longlong")
+ fi
+
+ AC_CHECK_FUNC(strtoll, AC_DEFINE(HAVE_STRTOLL))
+@@ -316,8 +332,8 @@
+ bindir="$exec_prefix/bin"
+ fi
+
+-AC_DEFINE_UNQUOTED(DOCUMENTATION, "$prefix/share/doc/htmldoc")
+-AC_DEFINE_UNQUOTED(HTML_DATA, "$prefix/share/htmldoc")
++AC_DEFINE_UNQUOTED(DOCUMENTATION, "$prefix/share/doc/htmldoc", "Locations of files...")
++AC_DEFINE_UNQUOTED(HTML_DATA, "$prefix/share/htmldoc", "Locations of files...")
+
+ dnl Update compiler options...
+ if test -n "$GXX"; then
diff --git a/packages/htmldoc/htmldoc_1.8.27.bb b/packages/htmldoc/htmldoc_1.8.27.bb
new file mode 100644
index 0000000..72168fc
--- /dev/null
+++ b/packages/htmldoc/htmldoc_1.8.27.bb
@@ -0,0 +1,42 @@
+DESCRIPTION = "HTMLDOC converts HTML input files into indexed HTML, postscript or PDF files"
+HOMEPAGE = "http://www.htmldoc.org/"
+SECTION = "console/utils"
+PRIORITY = "optional"
+LICENSE = "GPL"
+DEPENDS = "openssl libpng jpeg zlib"
+# GUI: fltk
+PR = "r1"
+
+SRC_URI = "http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/htmldoc/${PV}/htmldoc-${PV}-source.tar.bz2 \
+ file://limits.patch;patch=1"
+
+
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF += "--disable-localpng --disable-localjpeg --disable-localzlib \
+ --with-gui=no"
+
+# if something isn't collected from staging:
+FILES_${PN} += "${datadir}/htmldoc/fonts"
+FILES_${PN} += "${datadir}/htmldoc/data"
+FILES_${PN} += "${datadir}/doc/htmldoc"
+
+do_compile() {
+ cd htmldoc && oe_runmake all ; cd ${S}
+}
+
+do_install() {
+ install -d ${D}${datadir}/htmldoc/fonts
+ install -m 0644 ${S}/fonts/*.afm ${D}${datadir}/htmldoc/fonts/
+ install -m 0644 ${S}/fonts/*.pfa ${D}${datadir}/htmldoc/fonts/
+
+ install -d ${D}${datadir}/htmldoc/data
+ install -m 0644 ${S}/data/* ${D}${datadir}/htmldoc/data/
+
+ install -d ${D}${mandir}/man1
+ install -m 0644 ${S}/doc/htmldoc.man ${D}${mandir}/man1/
+
+ install -d ${D}${bindir}
+ install -m 0755 ${S}/htmldoc/htmldoc ${D}${bindir}/
+}
next reply other threads:[~2008-11-06 0:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-05 23:40 Vitus Jensen [this message]
2008-11-06 2:33 ` htmldoc 1.8.27 Chris Larson
2008-11-07 10:18 ` Vitus Jensen
2008-11-18 9:03 ` Vitus Jensen
2009-03-23 23:56 ` [PATCH] htmldoc: new recipes Vitus Jensen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200811060040.45197.vjensen@gmx.de \
--to=vjensen@gmx.de \
--cc=Openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox