aboutsummaryrefslogtreecommitdiffstats
path: root/games/viruskiller/Makefile
blob: 2f9e9d3e182c759ac5426930d1189e5d3ad152f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Created by: markand
# $FreeBSD$

PORTNAME=   viruskiller
PORTVERSION=    1.03
DISTVERSIONSUFFIX=  -1
PORTREVISION=   7
CATEGORIES= games
MASTER_SITES=   FRUGALWARE/games-extra/${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Arcade game that relies on quick reflexes

LICENSE=    GPLv2 # or later
LICENSE_FILE=   ${WRKSRC}/doc/LICENSE

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

USES=       gmake
USE_SDL=    mixer image ttf net
MAKEFILE=   makefile
INSTALLS_ICONS= yes

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e \
        '/^DOCS/s|=.*|= doc/README doc/*.*| ; \
         /^PREFIX/s|=.*|= ${PREFIX}| ; \
         /^BINDIR/s|=.*|= $$(DESTDIR)$$(PREFIX)/bin/| ; \
         /^DATADIR/s|=.*|= $$(DESTDIR)$$(PREFIX)/${DATADIR_REL}/| ; \
         /^DOCDIR/s|=.*|= $$(DESTDIR)$$(PREFIX)/${DOCSDIR_REL}/| ; \
         /^ICONDIR/s|=.*|= $$(DESTDIR)$$(PREFIX)/share/icons/hicolor/| ; \
         /^DESKTOPDIR/s|=.*|= $$(DESTDIR)$$(PREFIX)/share/applications/| ; \
         /^LIBS =/s|$$| -lz| ; \
         s|install .* 755|$${BSD_INSTALL_PROGRAM}| ; \
         s|install .* 644|$${BSD_INSTALL_DATA}| ; \
         /ICONS/s|cp|$${BSD_INSTALL_DATA}|' ${WRKSRC}/makefile
    @${REINPLACE_CMD} -e \
        's|.png|| ; \
         s|/usr/games/||' ${WRKSRC}/icons/viruskiller.desktop

.include <bsd.port.mk>