Commit graph

14 commits

Author SHA1 Message Date
dholland
6415ba6fa1 Make games/craft build again.
The custom C++ preprocessor thingy has been choking for a while on
clang; recently gcc's jointed the party. Work around this by building
it with -g instead of -O2. (For me at least with gcc, while -O2
produces a tool that gives spurious syntax errors, plain -O gives one
that loops forever instead, which isn't an improvement.)

Maybe someday someone will bother to find out where the undefined
behavior is.

Also build the actual game with -Wno-return-type to silence complaints
about dead functions not declared as dead and similar, and while here
adjust things so it still installs correctly regardless of umask.
2020-11-29 03:11:54 +00:00
agc
002d349f92 Add SHA512 digests for distfiles for games category
Problems found locating distfiles:
	Package blokus: missing distfile blokus-1.1.tar.gz
	Package crossfire-client: missing distfile crossfire-client-images-1.11.0.tar.gz
	Package dungeon: missing distfile dungeon-gdt-glk.tar.gz
	Package gate88: missing distfile Gate88_Mar19_05.tar.gz
	Package gnuchess4: missing distfile gnuchess-4.0.pl80.tar.gz
	Package ioquake3-pk3: missing distfile quake3-latest-pk3s.zip
	Package rollemup: missing distfile Rollemup.tar.gz
	Package tscp: missing distfile tscp181.zip
	Package xbat: missing distfile xev111.tar.gz
	Package xgalaga: missing distfile xgalaga-2.0.34.tar.gz
	Package xrick: missing distfile xrick-021212.tgz
	Package xskat: missing distfile xskat-cards.tar.gz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 20:56:42 +00:00
dholland
1ffcb1b08e Cast argument of sqrt to double to placate Solaris compiler.
Also while here remove one article of pkglint.
2015-06-25 06:22:11 +00:00
dholland
2e2aa0052c Rev the distfile patch.
- roll in patch-xfile.hc
  - fix build with the solaris compiler
  - use snprintf instead of sprintf (mostly)
  - tidy a few things

There is a problem between this thing's precompiler and clang such
that clang builds fail with spurious errors about unterminated string
constants. I don't see what's wrong.

Also, in the course of doing the snprintf changes I discovered that
this depends on both csh and netpbm existing at runtime, so add the
necessary bits.

PKGREVISION -> 4.
2014-09-13 07:30:15 +00:00
dholland
5c43948d98 Fix tautological comparison and (maybe) macos build. 2014-06-29 04:10:55 +00:00
dholland
585064b62c Roll the existing patches into a distfile patch. In the course of doing so:
Fix the fix previously in patch-ah (for platforms where char is
unsigned by default) to not generate spurious EOF indications.

Improve the fixes previously in patch-a[bcdef] to put the game's state
file in $HOME/.craft instead of the current directory.

Use a consistent method to set $PREFIX instead of a mixture of
compiler flags, patching, and SUBST.

Use pkg-config to find libX11, and clean up some pkglint.
2013-01-21 05:19:45 +00:00
dholland
8eaa2604c8 Assorted fixes and cleanup.
- if we're going to supply the build makefile, it shouldn't require gmake.
 - don't install executable html or gif files
 - add patch comments
 - const correctness for string constants, as demanded by gcc 4.5
 - avoid needing -lcompat
 - fix a y2038 issue

PKGREVISION -> 2
2011-12-20 16:18:16 +00:00
rillig
aae4c06a12 Fixed PR 29378. 2007-03-06 22:57:46 +00:00
agc
8cef6c454b Add RMD160 digests. 2005-02-23 23:11:54 +00:00
tron
1bd9005501 Fix GCC 3.3.1 related build problem. 2003-09-26 14:04:54 +00:00
tron
51284d5551 Copy defaults file from correct location when starting "craft" on systems
where "xpkwedge" is installed. Fixes PR pkg/14861 by Robert Elz.
2001-12-19 10:51:19 +00:00
tron
b467958c66 Fix RCS Ids. 2001-12-19 10:26:47 +00:00
wiz
daff086c30 Move to sha1 digests, and/or add distfile sizes. 2001-04-21 02:08:16 +00:00
agc
fb467f5ac2 + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 11:22:34 +00:00