From fde362579641ddf717c0f67041e6f3360e2fad61 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Fri, 8 Mar 2013 13:59:19 +0000 Subject: [PATCH] Fix build on 9.1+ --- games/diameter/Makefile | 11 +++-------- games/diameter/files/patch-src-uni.h | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 games/diameter/files/patch-src-uni.h diff --git a/games/diameter/Makefile b/games/diameter/Makefile index e89004ce1221..4a812f026dc5 100644 --- a/games/diameter/Makefile +++ b/games/diameter/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: diameter -# Date created: 15 Jun 2006 -# Whom: Dmitry Marakasov -# +# Created by: Dmitry Marakasov # $FreeBSD$ -# PORTNAME= diameter PORTVERSION= 0.4.0.3 @@ -14,9 +10,8 @@ MASTER_SITES= SF/game${PORTNAME}/game${PORTNAME}/${PORTNAME}-0.4.0 MAINTAINER= amdmi3@FreeBSD.org COMMENT= Arcade-style game with elements of economy and adventure -BUILD_DEPENDS= guichan>=0.8.1:${PORTSDIR}/devel/guichan -LIB_DEPENDS= png15:${PORTSDIR}/graphics/png -RUN_DEPENDS:= ${BUILD_DEPENDS} +LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \ + guichan:${PORTSDIR}/devel/guichan USE_BZIP2= yes GNU_CONFIGURE= yes diff --git a/games/diameter/files/patch-src-uni.h b/games/diameter/files/patch-src-uni.h new file mode 100644 index 000000000000..f9d5c5142ef0 --- /dev/null +++ b/games/diameter/files/patch-src-uni.h @@ -0,0 +1,18 @@ +--- src/uni.h.orig 2008-07-31 15:22:38.000000000 +0400 ++++ src/uni.h 2013-03-04 02:09:01.580934046 +0400 +@@ -1,6 +1,7 @@ + #ifndef UNI + #define UNI + #include ++#include + + struct Options + { +@@ -15,6 +16,7 @@ + //#define DEBUG + //#define CVS + ++#undef __WORDSIZE + + #ifdef __WORDSIZE + #else