Index: head/games/xmines/Makefile =================================================================== --- head/games/xmines/Makefile (revision 393561) +++ head/games/xmines/Makefile (revision 393562) @@ -1,25 +1,25 @@ # Created by: Andrey Zakhvatov # $FreeBSD$ PORTNAME= xmines PORTVERSION= 1.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games MASTER_SITES= SUNSITE/games/strategy DISTNAME= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Minesweeper game for the X Window System USE_XORG= x11 xt CFLAGS+= -Wno-error=return-type PORTDOCS= README OPTIONS_DEFINE= DOCS post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .include Index: head/games/xmines/files/patch-Makefile =================================================================== --- head/games/xmines/files/patch-Makefile (revision 393561) +++ head/games/xmines/files/patch-Makefile (revision 393562) @@ -1,41 +1,41 @@ --- Makefile.orig Fri Dec 3 23:22:38 1993 +++ Makefile Sat Aug 5 07:47:54 2000 @@ -3,20 +3,20 @@ # # make clean removes all temporary files. -CFLAGS = -O -CC = gcc -INCLUDE = /usr/X386/include -LIBRARY = /usr/X386/lib -BIN = /usr/X386/bin -SCOREFILES = /usr/X386/lib/X11/games +CFLAGS += -DSCOREfILE=\"$(SCOREFILES)/scores\" +CC ?= gcc +INCLUDE = ${LOCALBASE}/include +LIBRARY = ${LOCALBASE}/lib +BIN = ${PREFIX}/bin -+SCOREFILES = ${PREFIX}/share/xmines ++SCOREFILES = /var/games .c.o: $(CC) $(CFLAGS) -I $(INCLUDE) -c $< -all: xbombs +all: xmines -xbombs: xmines.o X11.o score.o - $(CC) -L $(LIBRARY) -o xbombs xmines.o score.o X11.o -lX11 +xmines: xmines.o X11.o score.o + $(CC) -L $(LIBRARY) -o xmines xmines.o score.o X11.o -lX11 X11.o: covered.pat flag.pat gray.pat highlight.pat marked.pat mine.pat ohno.pat shades.pat smiley.pat uncovered.pat uncoveredcolor.pat @@ -24,5 +24,6 @@ rm -f *.o install: - install -g games -o games -m 0664 scores/scores $(SCOREFILES)/xbomb-scores - install -g games -o games -m 2755 xbombs $(BIN) + mkdir -p ${DESTDIR}$(SCOREFILES) -+ ${INSTALL} -m 0666 scores/scores ${DESTDIR}$(SCOREFILES)/scores -+ ${INSTALL} -s -m 0755 xmines ${DESTDIR}$(BIN) ++ ${BSD_INSTALL_DATA} scores/scores ${DESTDIR}$(SCOREFILES)/xmines-scores.sample ++ ${BSD_INSTALL_PROGRAM} xmines ${DESTDIR}$(BIN) Index: head/games/xmines/pkg-plist =================================================================== --- head/games/xmines/pkg-plist (revision 393561) +++ head/games/xmines/pkg-plist (revision 393562) @@ -1,7 +1,2 @@ -@group games -@owner games -bin/xmines -%%DATADIR%%/scores -@owner -@group -@dirrm %%DATADIR%% +@(,games,2755) bin/xmines +@sample(,games,664) /var/games/xmines-scores.sample