aboutsummaryrefslogtreecommitdiffstats
path: root/games/aop/Makefile
blob: cb1c3689aa3c2e244327cfe76dea6016d005106b (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
# Created by: Aaron Zauner <az_mail@gmx.at>
# $FreeBSD$

PORTNAME=   aop
PORTVERSION=    0.6
PORTREVISION=   2
CATEGORIES= games
MASTER_SITES=   SF/nemysisfreebsdp/${CATEGORIES}/${PORTNAME}/
DISTFILES=  ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
        ${PORTNAME}.png
EXTRACT_ONLY=   ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}

MAINTAINER= games@FreeBSD.org
COMMENT=    Ncurses based arcade game with only 64 lines of code

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

ALL_TARGET= #empty

PORTDOCS=   README

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/local|${STAGEDIR}${PREFIX}|g' \
        ${WRKSRC}/Makefile

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
    ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps/
    ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}

    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>