blob: c57842628a16725a79412a40a3c2a8782b26a660 (
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
59
60
61
62
63
64
65
66
|
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= edgar
DISTVERSION= 1.17-1
CATEGORIES= games
MASTER_SITES= SF/legendof${PORTNAME}/${PORTVERSION:R}/
PKGNAMEPREFIX= legend-of-
MAINTAINER= nemysis@FreeBSD.org
COMMENT= 2D platform game with a persistent world
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:S/-1//}
USES= gmake
USE_SDL= image mixer sdl ttf
WITH_ZLIB= yes
MAKEFILE= makefile
PORTDOCS= *
INSTALLS_ICONS= yes
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_USES= gettext
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|CC = gcc|CC = ${CC}|; \
s|$$(DESTDIR)/usr|$$(DESTDIR)/usr/local|; \
s|$$(PREFIX)/games/|$$(PREFIX)/bin/|; \
s|/share/games/edgar/|/share/edgar/|; \
s|-Wall ||; \
s|sdl-config|$(SDL_CONFIG)|; \
s|-s ||' \
${WRKSRC}/makefile
@${REINPLACE_CMD} -e 's|SDL/SDL|${LOCALBASE}/include/SDL/SDL|g' \
${WRKSRC}/src/headers.h
@${REINPLACE_CMD} -e 's|png.h|${LOCALBASE}/include/png.h|g' \
${WRKSRC}/src/graphics/save_png.c
@${REINPLACE_CMD} -e 's|self->dirY =- 13|self->dirY -= 13|g' \
${WRKSRC}/src/boss/golem_boss.c
.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -i '' -e '/mkdir -p $$(DOC_DIR)/d' \
-i '' -e '/cp $$(DOCS) $$(DOC_DIR)/d' \
${WRKSRC}/makefile
.endif
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e 's|^LOCALE_MO =.*|LOCALE_MO =|' \
${WRKSRC}/makefile
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
.include <bsd.port.mk>
|