View | Details | Raw Unified | Return to bug 187055
Collapse All | Expand All

(-)games/viruskiller/Makefile (-30 / +19 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	viruskiller
4
PORTNAME=	viruskiller
5
PORTVERSION=	1.03
5
PORTVERSION=	1.03
6
PORTREVISION=	3
6
PORTREVISION=	4
7
CATEGORIES=	games
7
CATEGORIES=	games
8
MASTER_SITES=	FRUGALWARE/games-extra/${PORTNAME}
8
MASTER_SITES=	FRUGALWARE/games-extra/${PORTNAME}
9
DISTNAME=	${PORTNAME}-${PORTVERSION}-1
9
DISTNAME=	${PORTNAME}-${PORTVERSION}-1
Lines 13-52 Link Here
13
13
14
LICENSE=	GPLv2
14
LICENSE=	GPLv2
15
15
16
OPTIONS_DEFINE=	DOCS
17
18
USE_SDL=	mixer image ttf net
19
USES=		gmake
20
21
BROKEN=		Does not build
22
DEPRECATED=	Broken for more then 6 month
23
EXPIRATION_DATE=	2014-02-27
24
25
INSTALLS_ICONS=	yes
26
27
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
16
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
28
17
18
USES=		gmake
19
USE_SDL=	mixer image ttf net
29
MAKEFILE=	makefile
20
MAKEFILE=	makefile
21
INSTALLS_ICONS=	yes
30
22
31
NO_STAGE=	yes
23
OPTIONS_DEFINE=	DOCS
32
.include <bsd.port.options.mk>
33
34
.if ${ARCH} == "amd64"
35
BROKEN=	Does not build with new libz
36
.endif
37
24
38
post-patch:
25
post-patch:
39
	# Remove non-free restricted files:
26
	@${REINPLACE_CMD} -e \
40
	${RM} -f ${WRKSRC}/music/* ${WRKSRC}/sound/*
27
		'/^DOCS/s|=.*|= doc/README doc/*.*| ; \
41
28
		 /^PREFIX/s|=.*|= ${PREFIX}| ; \
42
.if ${PORT_OPTIONS:MDOCS}
29
		 /^BINDIR/s|=.*|= $$(DESTDIR)$$(PREFIX)/bin/| ; \
43
	@${REINPLACE_CMD} -e "s|^.*install.*DOCS.*||g" \
30
		 /^DATADIR/s|=.*|= $$(DESTDIR)$$(PREFIX)/${DATADIR_REL}/| ; \
44
		-e "s|^.*mkdir.*DOCDIR.*||g" \
31
		 /^DOCDIR/s|=.*|= $$(DESTDIR)$$(PREFIX)/${DOCSDIR_REL}/| ; \
45
		${WRKSRC}/makefile
32
		 /^ICONDIR/s|=.*|= $$(DESTDIR)$$(PREFIX)/share/icons/hicolor/| ; \
46
.endif
33
		 /^DESKTOPDIR/s|=.*|= $$(DESTDIR)$$(PREFIX)/share/applications/| ; \
47
	@${REINPLACE_CMD} -e "s|^PREFIX.*|PREFIX=${PREFIX}|g" \
34
		 s|install .* 755|$${BSD_INSTALL_PROGRAM}| ; \
48
		-e "s|^BINDIR.*|BINDIR=${PREFIX}/bin/|g" \
35
		 s|install .* 644|$${BSD_INSTALL_DATA}| ; \
49
		-e "s|^DATADIR.*|DATADIR=${DATADIR}/|g" \
36
		 /ICONS/s|cp|$${BSD_INSTALL_DATA}|' ${WRKSRC}/makefile
50
		-e "s|^DOCDIR.*|DOCDIR=${DOCSDIR}|g" ${WRKSRC}/makefile
37
	@${REINPLACE_CMD} -e \
38
		's|.png|| ; \
39
		 s|/usr/games/||' ${WRKSRC}/icons/viruskiller.desktop
51
40
52
.include <bsd.port.mk>
41
.include <bsd.port.mk>
(-)games/viruskiller/files/patch-src__pak.cpp (+27 lines)
Line 0 Link Here
1
--- src/pak.cpp.orig
2
+++ src/pak.cpp
3
@@ -124,7 +124,7 @@
4
 			{
5
 				printf("Couldn't open %s for reading!\n", filename);
6
 				closedir(dirp);
7
-				gzclose(pak);
8
+				gzclose((gzFile)pak);
9
 				exit(1);
10
 			}
11
 			
12
@@ -156,13 +156,13 @@
13
 			{
14
 				printf("Couldn't open %s for reading!\n", filename);
15
 				closedir(dirp);
16
-				gzclose(pak);
17
+				gzclose((gzFile)pak);
18
 				exit(1);
19
 			}
20
 			else
21
 			{
22
 				fSize = gzread(fp, buffer, filesize);
23
-				gzclose(fp);
24
+				gzclose((gzFile)fp);
25
 
26
 				cSize = (uLongf)((fSize * 1.01) + 12);
27
 				compress2(output, &cSize, buffer, fSize, 9);
(-)games/viruskiller/pkg-descr (-7 / +7 lines)
Lines 1-9 Link Here
1
Your computer has been invaded! Dozens of little viruses are pouring in via
1
Your computer has been invaded! Dozens of little viruses are pouring in
2
security holes in Microsoft Internet Explorer, Microsoft Outlook, Microsoft MSN
2
via security holes in Microsoft Internet Explorer, Microsoft Outlook,
3
Messenger and Microsoft Recycle Bin!! Using your trusty mouse you must shoot the
3
Microsoft MSN Messenger and Microsoft Recycle Bin!! Using your trusty
4
buggers before they can destroy your files! Some will steal them from their home
4
mouse you must shoot the buggers before they can destroy your files!
5
directories and take them back to their security hole. Others will just eat them
5
Some will steal them from their home directories and take them back to
6
right there on the spot! See how long you and your computer can survive the
6
their security hole. Others will just eat them right there on the spot!
7
onslaught!
7
See how long you and your computer can survive the onslaught!
8
8
9
WWW: http://www.parallelrealities.co.uk/projects/virusKiller.php
9
WWW: http://www.parallelrealities.co.uk/projects/virusKiller.php
(-)games/viruskiller/pkg-plist (-12 / +3 lines)
Lines 1-6 Link Here
1
bin/viruskiller
1
bin/viruskiller
2
%%DATADIR%%/viruskiller.pak
2
share/applications/viruskiller.desktop
3
%%PORTDOCS%%%%DOCSDIR%%/LICENSE
4
%%PORTDOCS%%%%DOCSDIR%%/README
3
%%PORTDOCS%%%%DOCSDIR%%/README
5
%%PORTDOCS%%%%DOCSDIR%%/battery.png
4
%%PORTDOCS%%%%DOCSDIR%%/battery.png
6
%%PORTDOCS%%%%DOCSDIR%%/bomb.png
5
%%PORTDOCS%%%%DOCSDIR%%/bomb.png
Lines 13-26 Link Here
13
share/icons/hicolor/16x16/apps/viruskiller.png
12
share/icons/hicolor/16x16/apps/viruskiller.png
14
share/icons/hicolor/32x32/apps/viruskiller.png
13
share/icons/hicolor/32x32/apps/viruskiller.png
15
share/icons/hicolor/64x64/apps/viruskiller.png
14
share/icons/hicolor/64x64/apps/viruskiller.png
16
share/applications/viruskiller.desktop
15
%%DATADIR%%/viruskiller.pak
16
@dirrm %%DATADIR%%
17
%%PORTDOCS%%@dirrm %%DOCSDIR%%
17
%%PORTDOCS%%@dirrm %%DOCSDIR%%
18
@dirrmtry %%DATADIR%%
19
@dirrmtry share/icons/hicolor/64x64/apps
20
@dirrmtry share/icons/hicolor/64x64
21
@dirrmtry share/icons/hicolor/32x32/apps
22
@dirrmtry share/icons/hicolor/32x32
23
@dirrmtry share/icons/hicolor/16x16/apps
24
@dirrmtry share/icons/hicolor/16x16
25
@dirrmtry share/icons/hicolor
26
@dirrmtry share/icons

Return to bug 187055