28 Commits
Author SHA1 Message Date
Erik Auerswald d6a957e6d3 move character printing to a separate function
This is the first step towards support of different character sets.
Different character sets are intended to be used to e.g. select
between '6' and 'b', but also to receive an error if e.g. a decimal
display is recognized as a hexadecimal digit.
2018-08-05 05:24:38 +02:00
Erik Auerswald 6db731f44f added README to Makefile (as a documentation file) 2017-06-03 17:12:55 +02:00
Erik Auerswald 227fa378ab Makefile: add -fstack-protector-all compiler option 2016-09-09 17:47:22 +02:00
Erik Auerswald 83f424343f Added -lm to LDLIBS.
The ssocr code itself uses math.h and thus libm. This library has been
linked to via recursive linking or the requirements of Imlib2 before
this commit. According to a report from Arne Wichmann this does not work
in all environments. While I do not know the exact circumstances under
which this problem occurs, adding -lm to the linker step is correct,
because ssocr uses it. It is incorrect to rely on Imlib2 to pull this in.
2014-03-16 17:31:35 +00:00
Erik Auerswald 5a4e0ef5e0 Added some more Mac OS X compatibility stuff:
- use optimization level -O3, which is supported by both gcc and clang
- removed a set of unnecessary parenthesis
- added info about 'brew' on Mac OS X to INSTALL file

bumped version number to 2.13.3
2013-01-11 10:26:57 +00:00
Erik Auerswald 3357afec00 Makefile: use imlib2-config --libs for LDLIBS.
This should improve compatibility for systems with Imlib2 installed
in non-standard places, e.g. Mac OS X.

On Debian GNU/Linux this results in some warnings when building a .deb:

dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/ssocr/usr/bin/ssocr was not linked against libdl.so.2 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/ssocr/usr/bin/ssocr was not linked against libz.so.1 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/ssocr/usr/bin/ssocr was not linked against libX11.so.6 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/ssocr/usr/bin/ssocr was not linked against libfreetype.so.6 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/ssocr/usr/bin/ssocr was not linked against libXext.so.6 (it uses none of the library's symbols)

I'm ignoring this. Special local adaptations like this have no place in
a general build system. A dedicated Debian package might apply a local patch
to strip these dependencies. This could result in a non-working ssocr as
at least libdl is actually needed by Imlib2 to load images.
2013-01-11 04:23:07 +00:00
Erik Auerswald d51eb5494d Replaced 'date -I' by 'date +%Y-%m-%d' to improve portability.
FreeBSD and Mac OS X don't know 'date -I', but do know 'date +%F' with
'%F' equivalent to '%Y-%m-%d'. POSIX knows neither '-I' nor '%F', but
just '%Y-%m-%d', so use the latter.

Problem reported by Alan Bates <[email protected]>.
2013-01-11 04:03:45 +00:00
Erik Auerswald 35b5389b63 Makefile: add dependency on Makefile for basic components.
This way changing somethin in the Makefile, e.g. LDFLAGS, results
in a rebuild without the need for a previous 'make clean'.
2013-01-08 16:52:43 +00:00
Erik Auerswald 62b881988d Makefile: debian/rules needs to be executable. 2013-01-08 16:28:51 +00:00
Erik Auerswald a0a6adb809 Makefile: do not set execute permission on files in tar archive. 2012-11-11 20:16:49 +00:00
Erik Auerswald f43e3e2aaa Added _FORTIFY_SOURCE checks (affects just strcat() currently). 2012-07-15 18:11:35 +00:00
Erik Auerswald f66d25f978 Bumped version number to 2.10.0.
The new feature in this version is the INSTALL file.
I'm releasing this version in a moment.
2012-07-10 17:48:56 +00:00
Erik Auerswald 4caf2faf18 Added INSTALL file, installed to documentation directory. 2012-07-10 17:43:50 +00:00
Erik Auerswald 5a06da1133 Build fix for Ubuntu 11.10 and newer.
Build on recent Ubuntu systems would fail, because the --as-needed linker
option (enabled by default on these systems) needs a special argument
order for ld to work correctly.

(see http://www.gentoo.org/proj/en/qa/asneeded.xml)

Use LDLIBS instead of LDFLAGS to list needed libraries. See GNU Make docs
and http://www.roland-illig.de/articles/article-1.html for rationale.

Bumped version number to 2.9.8, so I can tell the users having build
problems to upgrade to this version.
2012-05-15 17:47:42 +00:00
Erik Auerswald 51933261bf Added ATUTHORS, COPYING and THANKS files to .tar.bz2 and .deb archives.
Bumped version number to 2.9.5.
2010-06-08 19:13:51 +00:00
Erik Auerswald 175e05a29b Correction of .PHONY entry in Makefile. 2009-08-17 11:57:48 +00:00
Erik Auerswald 6aeb2d1cb4 Create debian/changelog dynamically from current version number. 2009-08-10 10:51:46 +00:00
Erik Auerswald 4580506ff8 Activate some more compiler warnings. 2009-08-07 11:01:51 +00:00
Erik Auerswald b8827046d6 Improve creation of .tar.bz2 (source) and .deb (binary) packages. 2009-08-07 04:23:08 +00:00
Erik Auerswald 4e114d39d3 Link only against needed libraries. 2009-08-07 04:13:04 +00:00
Erik Auerswald 8dd3062395 Improve Makefile target "clean". 2009-08-07 01:14:37 +00:00
Erik Auerswald dcb2913e2c * Add deb target to Makefile to build a debian binary package.
* Add tar target to Makefile to create tar.bz2 archive of sources.
* Bump version number to 2.8.4.
2009-08-06 09:19:36 +00:00
Erik Auerswald 8ac9cf5f73 Add Makefile target "ssocr-manpage.html". The HTML file is created with "rman". 2009-08-06 08:22:34 +00:00
Erik Auerswald ff384fad23 Create missing directories when installing files. 2009-08-06 07:24:35 +00:00
Erik Auerswald 807ff6ac40 Add DESTDIR variable to install target of Makefile.
This is in preparation for making a debian package.
2009-08-05 04:13:05 +00:00
Erik Auerswald 577761918a generate man page and include ssocr version and build date 2009-05-20 14:20:04 +00:00
Erik Auerswald a1a060b416 - refactor image processing and online help in seperate files
- no functional changes
- this is another step towards refactoring the recognition algorithm
- this is another step towards factoring out the image access routines to
  ultimately replace Imlib2 by something else (e.g. gd)
2009-01-06 11:22:10 +00:00
Erik Auerswald 8926c8c2a8 initial import, ssocr version 2.6.3 2008-03-02 15:03:51 +00:00