From c6a506c1c29c940f9b6cb0a65c10c73250de57e2 Mon Sep 17 00:00:00 2001 From: bsam Date: Tue, 11 Jun 2013 15:43:23 +0000 Subject: . fix build with clang (CFLAGS+=-Wno-return-type); . remove ~80 warnings (CFLAGS+=-Wno-pointer-sign); . trim Makefile headers; . remove the indefinite article from COMMENT; . adopt WRKSRC_SUBDIR instead WRKSRC. --- games/xscavenger/Makefile | 12 +++++------- games/xscavenger/files/patch-edit.c | 10 ++++++++++ 2 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 games/xscavenger/files/patch-edit.c (limited to 'games') diff --git a/games/xscavenger/Makefile b/games/xscavenger/Makefile index f2bc0f5dd03c..de066cfae8db 100644 --- a/games/xscavenger/Makefile +++ b/games/xscavenger/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: xscavenger -# Date created: 19 Feb 1998 -# Whom: eivind -# +# Created by: eivind # $FreeBSD$ -# PORTNAME= xscavenger PORTVERSION= 1.4.4 @@ -13,14 +9,16 @@ MASTER_SITES= http://www.xdr.com/dash/ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org -COMMENT= A Lode Runner clone for X11 +COMMENT= Lode Runner clone for X11 -WRKSRC= ${WRKDIR}/${DISTNAME}/src +WRKSRC_SUBDIR= src USE_IMAKE= yes USE_XORG= x11 xext MAN6= scavenger.6 +CFLAGS+= -Wno-return-type -Wno-pointer-sign + pre-configure: @${LN} -sf scavenger.6 ${WRKSRC}/scavenger.man @${ECHO_CMD} "MANSUFFIX=6" >> ${WRKSRC}/Imakefile diff --git a/games/xscavenger/files/patch-edit.c b/games/xscavenger/files/patch-edit.c new file mode 100644 index 000000000000..1806b82b14b7 --- /dev/null +++ b/games/xscavenger/files/patch-edit.c @@ -0,0 +1,10 @@ +--- edit.c.orig 2013-06-11 18:21:01.902812410 +0400 ++++ edit.c 2013-06-11 18:21:15.931811652 +0400 +@@ -2,6 +2,7 @@ + + #include + #include ++#include + #include "scav.h" + #include "edit.h" + #include "x.h" -- cgit