Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Feb 2001 18:57:09 -0800 (PST)
From:      tkato@prontomail.ne.jp
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/24820: Update port: games/xinvaders to 2.1.1
Message-ID:  <200102030257.f132v9o71929@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         24820
>Category:       ports
>Synopsis:       Update port: games/xinvaders to 2.1.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 02 19:00:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.2-RELEASE i386
>Organization:
>Environment:
>Description:
- Update to version 2.1.1

New file:
files/patch-aa

Remove file:
files/Imakefile
scripts/pre-configure

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/games/xinvaders/Makefile games/xinvaders/Makefile
--- /usr/ports/games/xinvaders/Makefile	Tue Jan 30 21:05:36 2001
+++ games/xinvaders/Makefile	Sat Feb  3 11:32:21 2001
@@ -6,16 +6,33 @@
 #
 
 PORTNAME=	xinvaders
-PORTVERSION=	1.1
+PORTVERSION=	2.1.1
 CATEGORIES=	games
 MASTER_SITES=	${MASTER_SITE_SUNSITE}
 MASTER_SITE_SUBDIR=	games/arcade/invaders
-DISTNAME=	${PORTNAME}
 
 MAINTAINER=	ports@FreeBSD.org
 
+LIB_DEPENDS=	intl.1:${PORTSDIR}/devel/gettext
+
 NO_CDROM=	"don't sell for profit"
-USE_IMAKE=	yes
+
+USE_X_PREFIX=	yes
+USE_AUTOMAKE=	yes
+AUTOMAKE_ARGS=	--include-deps
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
+		LIBS="-L${LOCALBASE}/lib -lintl"
+CONFIGURE_ARGS=	--enable-scorefile=${PREFIX}/share/xinvaders/xinvaders.scores
+
 MAN6=		xinvaders.6
+
+post-install:
+	${INSTALL_DATA} ${FILESDIR}/Vaders.ad ${PREFIX}/lib/X11/app-defaults/Vaders
+	@${MKDIR} ${PREFIX}/share/xinvaders
+	@${ECHO} '0' > ${PREFIX}/share/xinvaders/xinvaders.scores
+	@${CHOWN} root:games ${PREFIX}/bin/xinvaders
+	@${CHMOD} 2555 ${PREFIX}/bin/xinvaders
+	@${CHOWN} root:games ${PREFIX}/share/xinvaders/xinvaders.scores
+	@${CHMOD} 0660 ${PREFIX}/share/xinvaders/xinvaders.scores
 
 .include <bsd.port.mk>
diff -urN /usr/ports/games/xinvaders/distinfo games/xinvaders/distinfo
--- /usr/ports/games/xinvaders/distinfo	Mon Dec 30 18:37:04 1996
+++ games/xinvaders/distinfo	Sat Feb  3 10:13:13 2001
@@ -1 +1 @@
-MD5 (xinvaders.tar.gz) = 531cea11e29f5560a1fb663356d6d15d
+MD5 (xinvaders-2.1.1.tar.gz) = 0b069e3498a72cca7629fb44fb1d991f
diff -urN /usr/ports/games/xinvaders/files/Imakefile games/xinvaders/files/Imakefile
--- /usr/ports/games/xinvaders/files/Imakefile	Wed Jan  4 17:57:33 1995
+++ games/xinvaders/files/Imakefile	Thu Jan  1 09:00:00 1970
@@ -1,37 +0,0 @@
-INVADERDIR=$(LIBDIR)/xinvaders
-
-
-LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
-
-OBJS = spacers.o base.o widget.o main.o vaders.o shot.o score.o
-
-SRCS = spacers.c base.c widget.c main.c vaders.c shot.c score.c
-
-ComplexProgramTarget(xinvaders)
-InstallAppDefaults(Vaders)
-MakeDirectories(install,$(INVADERDIR))
-InstallNonExec(base1.bit,$(INVADERDIR))
-InstallNonExec(spacer2.bit,$(INVADERDIR))
-InstallNonExec(vader1a1.bit,$(INVADERDIR))
-InstallNonExec(vader2a2.bit,$(INVADERDIR))
-InstallNonExec(vader3b1.bit,$(INVADERDIR))
-InstallNonExec(base2.bit,$(INVADERDIR))
-InstallNonExec(sperma1.bit,$(INVADERDIR))
-InstallNonExec(vader1a2.bit,$(INVADERDIR))
-InstallNonExec(vader2b1.bit,$(INVADERDIR))
-InstallNonExec(vader3b2.bit,$(INVADERDIR))
-InstallNonExec(explode1.bit,$(INVADERDIR))
-InstallNonExec(sperma2.bit,$(INVADERDIR))
-InstallNonExec(vader1b1.bit,$(INVADERDIR))
-InstallNonExec(vader2b2.bit,$(INVADERDIR))
-InstallNonExec(vexplod1.bit,$(INVADERDIR))
-InstallNonExec(explode2.bit,$(INVADERDIR))
-InstallNonExec(spermb1.bit,$(INVADERDIR))
-InstallNonExec(vader1b2.bit,$(INVADERDIR))
-InstallNonExec(vader3a1.bit,$(INVADERDIR))
-InstallNonExec(vexplod2.bit,$(INVADERDIR))
-InstallNonExec(spacer1.bit,$(INVADERDIR))
-InstallNonExec(spermb2.bit,$(INVADERDIR))
-InstallNonExec(vader2a1.bit,$(INVADERDIR))
-InstallNonExec(vader3a2.bit,$(INVADERDIR))
-MANSUFFIX=6
diff -urN /usr/ports/games/xinvaders/files/Vaders.ad games/xinvaders/files/Vaders.ad
--- /usr/ports/games/xinvaders/files/Vaders.ad	Wed Jan  4 17:57:33 1995
+++ games/xinvaders/files/Vaders.ad	Sat Feb  3 10:55:10 2001
@@ -1,4 +1,4 @@
-Vaders*BitmapDirectory:        /usr/X11R6/lib/X11/xinvaders/
+Vaders*font:                   -*-*-*-*-*-sans-14-*-*-*-m-*-*-*
 Vaders*Scale:                  2
 Vaders*defaultfore:            white
 Vaders*defaultback:            black
diff -urN /usr/ports/games/xinvaders/files/patch-aa games/xinvaders/files/patch-aa
--- /usr/ports/games/xinvaders/files/patch-aa	Thu Jan  1 09:00:00 1970
+++ games/xinvaders/files/patch-aa	Sat Feb  3 11:18:40 2001
@@ -0,0 +1,26 @@
+--- Makefile.am.orig	Sat Sep 16 16:31:29 2000
++++ Makefile.am	Sat Feb  3 11:18:31 2001
+@@ -3,8 +3,7 @@
+ SUBDIRS=intl po
+ EXTRA_DIST=debian Vaders xinvaders.6 icon.xpm xinvaders.lsm
+ 
+-execgamesdir=$(prefix)/games
+-execgames_PROGRAMS = xinvaders
++bin_PROGRAMS = xinvaders
+ 
+ xinvaders_SOURCES = base.c main.c score.c shot.c spacers.c vaders.c \
+ widget.c me.h patchlevel.h vaders.h base1.bit base2.bit explode1.bit \
+@@ -14,13 +13,3 @@
+ vader3b1.bit vader3b2.bit vexplod1.bit vexplod2.bit
+ 
+ man_MANS = xinvaders.6
+-
+-install-data-local:
+-	mkdir -p $(shell dirname $(DESTDIR)$(SCOREFILE) )
+-	echo 0 > $(DESTDIR)$(SCOREFILE)
+-	chgrp games $(DESTDIR)$(SCOREFILE)
+-	chmod 0660 $(DESTDIR)$(SCOREFILE)
+-
+-install-exec-local:
+-	chgrp games $(DESTDIR)$(execgamesdir)/xinvaders
+-	chmod g+s $(DESTDIR)$(execgamesdir)/xinvaders
diff -urN /usr/ports/games/xinvaders/pkg-plist games/xinvaders/pkg-plist
--- /usr/ports/games/xinvaders/pkg-plist	Mon Sep 28 11:19:43 1998
+++ games/xinvaders/pkg-plist	Sat Feb  3 11:10:21 2001
@@ -1,27 +1,5 @@
 bin/xinvaders
 lib/X11/app-defaults/Vaders
-lib/X11/xinvaders/base1.bit
-lib/X11/xinvaders/base2.bit
-lib/X11/xinvaders/explode1.bit
-lib/X11/xinvaders/explode2.bit
-lib/X11/xinvaders/spacer1.bit
-lib/X11/xinvaders/spacer2.bit
-lib/X11/xinvaders/sperma1.bit
-lib/X11/xinvaders/sperma2.bit
-lib/X11/xinvaders/spermb1.bit
-lib/X11/xinvaders/spermb2.bit
-lib/X11/xinvaders/vader1a1.bit
-lib/X11/xinvaders/vader1a2.bit
-lib/X11/xinvaders/vader1b1.bit
-lib/X11/xinvaders/vader1b2.bit
-lib/X11/xinvaders/vader2a1.bit
-lib/X11/xinvaders/vader2a2.bit
-lib/X11/xinvaders/vader2b1.bit
-lib/X11/xinvaders/vader2b2.bit
-lib/X11/xinvaders/vader3a1.bit
-lib/X11/xinvaders/vader3a2.bit
-lib/X11/xinvaders/vader3b1.bit
-lib/X11/xinvaders/vader3b2.bit
-lib/X11/xinvaders/vexplod1.bit
-lib/X11/xinvaders/vexplod2.bit
-@dirrm lib/X11/xinvaders
+share/locale/es/LC_MESSAGES/xinvaders.mo
+share/xinvaders/xinvaders.scores
+@dirrm share/xinvaders
diff -urN /usr/ports/games/xinvaders/scripts/pre-configure games/xinvaders/scripts/pre-configure
--- /usr/ports/games/xinvaders/scripts/pre-configure	Wed Jan  4 17:57:32 1995
+++ games/xinvaders/scripts/pre-configure	Thu Jan  1 09:00:00 1970
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-cp -f ${CURDIR}/files/Imakefile ${WRKSRC}
-cp -f ${CURDIR}/files/Vaders.ad ${WRKSRC}
-
-exit 0


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102030257.f132v9o71929>