blob: 13afd26c1a93be095663aef9f3e823c9b64ee133 (
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
|
# New ports collection makefile for: powermanga
# Date created: 26 Jan 2004
# Whom: Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#
PORTNAME= powermanga
PORTVERSION= 0.90
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= http://linux.tlk.fr/games/Powermanga/download/ \
http://mirror.amdmi3.ru/distfiles/
EXTRACT_SUFX= .tgz
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= An arcade 2D shoot-em-up
USE_XORG= xext xxf86dga
USE_SDL= sdl mixer
GNU_CONFIGURE= yes
PORTDOCS= AUTHORS CHANGES
MAN6= powermanga.6
post-patch:
@${REINPLACE_CMD} -e 's|^CFLAGS="-O3.*|CFLAGS="$$CFLAGS -std=c99"|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|/usr/share/games/powermanga|${DATADIR}|;s|/sound|&s|' \
${WRKSRC}/powermanga.6
@${REINPLACE_CMD} -e 's|(mandir)|&/man6|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|\((prefix)\)/games|\1/bin|' \
${WRKSRC}/src/Makefile.in
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|games/powermanga|powermanga|'
@${REINPLACE_CMD} -e 's|games/powermanga|powermanga|' \
${WRKSRC}/src/tools.c
@${REINPLACE_CMD} -e 's|Lang=fr|Lang=en|' ${WRKSRC}/texts/config.ini
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
${INSTALL_DATA} ${WRKSRC}/texts/config.ini ${DATADIR}/texts
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
|