blob: 4b07824722d765df59ec0e2ee24b2f0439b91ea3 (
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
|
# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$
PORTNAME= starfighter
PORTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/pr-${PORTNAME}/ \
SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Liberate the universe from the evil company WEAPCO
LICENSE= GPLv2
USES= gmake iconv shebangfix
USE_PYTHON_BUILD= 2
USE_XORG= x11 xau xdmcp
USE_SDL= image mixer
WITH_ZLIB= yes
MAKEFILE= makefile
SHEBANG_FILES= pack.py unpack.py
python_OLD_CMD= ${SETENV} python
python_CMD= ${PYTHON_CMD}
INSTALLS_ICONS= yes
PLIST_FILES= bin/${PORTNAME} \
share/pixmaps/${PORTNAME}.png \
%%DATADIR%%/${PORTNAME}.pak
PLIST_DIRS= %%DATADIR%%
PORTDOCS= index.html
OPTIONS_DEFINE= DOCS
DESKTOP_ENTRIES="Project Starfighter" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} \
-e 's|mkdir -p $$(DESTDIR)$$(DOCDIR)|| ; \
s|cp -p $$(DOCS) $$(DESTDIR)$$(DOCDIR)|| ; \
s| -O2 -Wall|${CXXFLAGS}| ; \
s|docs/\*|docs/index.html| ; \
s|/usr|${LOCALBASE}| ; \
s|$$(PREFIX)/games/|$$(PREFIX)/bin/| ; \
s|/share/games/parallelrealities/|/share/starfighter/|' \
${WRKSRC}/makefile
post-install:
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|