Skip to content

Fortune done right on OSX. Fixes issues from ThinkyHead Softwares port of it not recognizing fortune <file> or fortune -f

Notifications You must be signed in to change notification settings

theodric/Fortune-OSX

 
 

Repository files navigation

Theodric 2022-01-03

Changes from forked repo:

  • remove build flag forcing 32-bit build
  • change optimization from Os to Ofast
  • declare regexpr.h in fortune.c to clear "implicit declaration of function...is invalid in C99" error

As of 2022-02-13:

  • Builds on macOS Big Sur 11.6.3 20G415/aarch64 with Homebrew
  • Builds on macOS Big Sur 11.6.2 20G314/amd64 with Homebrew
  • Builds on macOS Big Sur 10.14.6 18G9323/amd64 with Homebrew

Based on the port from Thinky Head Software which can be located here: http://www.thinkyhead.com/fortune/download/bsd-fortune-14l

Modified by John P. Neumann (http://AnimateShmanimate.com) - As a note, I'm not a C programmer and I don't play one on tv, so if I screwed it up, lemme know. ;)

INSTALLATION:

This installation defaults to /usr/local/bin for the fortune script and installs the fortune cookies (fortunes) to /usr/local/var/fortunes. If you wish to change these locations open the Makefile and they're located on lines 27, 28, 29. The only caveat is that if you change the DATAPATH, make sure you change the TRUEDATAPATH as well, leaving the /fortunes on the end of it.

About

Fortune done right on OSX. Fixes issues from ThinkyHead Softwares port of it not recognizing fortune <file> or fortune -f

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 84.1%
  • Roff 7.2%
  • C++ 5.5%
  • Makefile 2.3%
  • Other 0.9%