blob: 41f2c26c100278dcadbeeaa9024cc6d24c8b62e0 (
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
58
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
PORTNAME= highmoon
PORTVERSION= 1.2.4
PORTREVISION= 12
CATEGORIES= games
MASTER_SITES= http://highmoon.gerdsmeier.net/
MAINTAINER= ports@FreeBSD.org
COMMENT= Duel in the universe
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
WRKSRC= ${WRKDIR}/HighMoon
USES= gmake sdl
USE_SDL= image sdl
MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LIBS="${LIBS}"
CXXFLAGS+= `${SDL_CONFIG} --cflags`
LIBS+= `${SDL_CONFIG} --libs` -lSDL_image
PORTDOCS= AUTHORS NEWS README
OPTIONS_DEFINE= DOCS
SUB_FILES= pkg-message
DESKTOP_ENTRIES="HighMoon" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
post-patch:
@${FIND} ${WRKSRC}/src -type f | ${XARGS} ${REINPLACE_CMD} -e \
's|SDL/SDL|SDL|; \
s|^#define __ENV|//#define __ENV|; \
s|"gfx/|(char\*)"${DATADIR}/gfx/|; \
s|"snd/|(char\*)"${DATADIR}/snd/|; \
s|-round(|-rint(|'
${REINPLACE_CMD} -e \
's|planet_filename = ""|planet_filename = (char\*)""|; \
s|u_filename = ""|u_filename = (char\*)""|; \
s|c_filename = ""|c_filename = (char\*)""|' \
${WRKSRC}/src/galaxy.cpp
${REINPLACE_CMD} -e 's|"HighMoon -|(char\*)"HighMoon -|; \
s|"Highmoon -|(char\*)"HighMoon -|' \
${WRKSRC}/src/language.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ufo ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "gfx snd" ${STAGEDIR}${DATADIR})
${INSTALL_DATA} ${WRKSRC}/icon.png ${STAGEDIR}${DATADIR}
${LN} -sf ${DATADIR}/icon.png \
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|