1 # Created by: Rusmir Dusko <nemysis@FreeBSD.org>
7 PKGNAMEPREFIX= legend-of-
9 MAINTAINER= nemysis@FreeBSD.org
10 COMMENT= 2D platform game with a persistent world
15 USE_SDL= image mixer sdl ttf
20 GH_ACCOUNT= riksweeney
26 OPTIONS_DEFINE= DOCS NLS
32 .include <bsd.port.options.mk>
35 @${REINPLACE_CMD} -e 's|CC = gcc|CC = ${CC}|; \
36 s|$$(DESTDIR)/usr|$$(DESTDIR)/usr/local|; \
37 s|$$(PREFIX)/games/|$$(PREFIX)/bin/|; \
38 s|/share/games/edgar/|/share/edgar/|; \
39 s|/share/man/|/man/|; \
41 s|sdl-config|${SDL_CONFIG}|; \
44 @${REINPLACE_CMD} -e 's|SDL/SDL|${LOCALBASE}/include/SDL/SDL|g' \
45 ${WRKSRC}/src/headers.h
46 @${REINPLACE_CMD} -e 's|png.h|${LOCALBASE}/include/png.h|g' \
47 ${WRKSRC}/src/graphics/save_png.c
48 @${REINPLACE_CMD} -e 's|self->dirY =- 13|self->dirY -= 13|g' \
49 ${WRKSRC}/src/boss/golem_boss.c
50 @${REINPLACE_CMD} -e 's|Categories=Game|Categories=Game;ArcadeGame;|' \
51 ${WRKSRC}/icons/${PORTNAME}.desktop
53 .if ! ${PORT_OPTIONS:MDOCS}
54 @${REINPLACE_CMD} -i '' -e '/mkdir -p $$(DOC_DIR)/d' \
55 -i '' -e '/cp $$(DOCS) $$(DOC_DIR)/d' \
59 .if ! ${PORT_OPTIONS:MNLS}
60 @${REINPLACE_CMD} -e 's|^LOCALE_MO =.*|LOCALE_MO =|' \
65 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
66 ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
67 ${STAGEDIR}${PREFIX}/share/pixmaps/
69 .include <bsd.port.mk>