aboutsummaryrefslogtreecommitdiffstats
path: root/games/xgalaga++/Makefile
blob: d436996ee11927d5118cbd6bd4a97da9a2bfe372 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# $FreeBSD$

PORTNAME=   xgalaga++
PORTVERSION=    0.8.3
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   http://marc.mongenet.ch/OSS/XGalaga/ \
        SF/nemysisfreebsdp/:icons
DISTFILES=  ${PORTNAME}_${DISTVERSION}${EXTRACT_SUFX} \
        ${PORTNAME}.png:icons
DIST_SUBDIR=    ${PORTNAME}
EXTRACT_ONLY=   ${PORTNAME}_${DISTVERSION}${EXTRACT_SUFX}

MAINTAINER= nemysis@gmx.ch
COMMENT=    Classic single screen vertical shoot em up

LICENSE=    GPLv2

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

USE_GMAKE=  yes
ALL_TARGET= ${PORTNAME}
USE_XORG=   x11 xpm
MAN6=       xgalaga++.6

SUB_FILES=  pkg-install

PLIST_FILES=    bin/${PORTNAME} \
        share/pixmaps/${PORTNAME}.png

PORTDOCS=   README

DESKTOP_ENTRIES="XGalaga++" "${COMMENT}" "${PORTNAME}" \
        "${PORTNAME}" "Game;ArcadeGame;" ${FALSE}

NO_STAGE=   yes
.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -e '/^CXX =/ d; s|/usr/local|${LOCALBASE}|' \
        ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${MAN6}x ${MAN6PREFIX}/man/man6/${MAN6}
    ${CHGRP} games ${PREFIX}/bin/${PORTNAME}
    ${CHMOD} g+s  ${PREFIX}/bin/${PORTNAME}
    ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps

.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

    @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>