diff --git a/games/KnightCap/Makefile b/games/KnightCap/Makefile index 33b735facb14..edfe375fb86f 100644 --- a/games/KnightCap/Makefile +++ b/games/KnightCap/Makefile @@ -26,12 +26,6 @@ DOCSDIR= ${PREFIX}/share/doc/KnightCap PORTDOCS= README PLIST_FILES= bin/KnightCap -.include - -.if ${OSVERSION} >= 502126 -BROKEN= "Does not compile on FreeBSD >= 5.x" -.endif - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/KnightCap ${PREFIX}/bin .if !defined(NOPORTDOCS) @@ -39,4 +33,4 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif -.include +.include diff --git a/games/KnightCap/files/patch-knightcap.h b/games/KnightCap/files/patch-knightcap.h new file mode 100644 index 000000000000..86e49fbe7591 --- /dev/null +++ b/games/KnightCap/files/patch-knightcap.h @@ -0,0 +1,19 @@ +--- knightcap.h Mon Jan 24 22:20:22 2005 ++++ knightcap.h Mon Jan 24 22:17:19 2005 +@@ -632,16 +632,6 @@ + return i1 > i2? i1 : i2; + } + +-static inline float fmin(float i1, float i2) +-{ +- return i1 > i2? i2 : i1; +-} +- +-static inline float fmax(float i1, float i2) +-{ +- return i1 > i2? i1 : i2; +-} +- + static inline etype emin(etype i1, etype i2) + { + return i1 > i2? i2 : i1;