blob: 16e699328e1c65b954b4a0bb28bbce19d9a85770 (
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
67
68
69
|
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= help_hannahs_horse
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/hannah/hannah/hannah-${DISTVERSION}/ \
SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES= hhh-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}_icons.tar.gz:icons
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= games@FreeBSD.org
COMMENT= Pacman with a fast food twist
LICENSE= GPLv2 OFL11
LICENSE_COMB= multi
LICENSE_FILE_GPLv2= ${WRKSRC}/gpl.txt
#LICENSE_FILE_OFL11= ${WRKSRC}/StansHandOFL.txt ${WRKSRC}/Ray_Dittmeier_Fonts.txt # framework doesn't support multiple files
WRKSRC= ${WRKDIR}/hhh-2008-03-29
USES= gmake
USE_SDL= sdl image mixer ttf
ALL_TARGET= # empty
PORTDOCS= CHANGELOG README
OPTIONS_DEFINE= DOCS
INSTALLS_ICONS= yes
ICON_SIZES= 32x32 48x48 64x64 72x72 96x96
DESKTOP_ENTRIES="Help Hannah's Horse" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local/games/hhh|${DATADIR}|; \
s|/usr/local/bin|${PREFIX}/bin|; \
s|CXX = g++|CXX ?= g++}|; \
s|CXXFLAGS = -O2 -Wall -g|CXXFLAGS +=|; \
s|OUT = hhh|OUT = ${PORTNAME}|; \
s|-include deps|#-include deps|' \
${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
.for d in blue carrot default freeze hannah images invert invis maps newanim \
pink red sounds stop
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor
.for f in *.ogg *.ttf *.dat *.png
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
.endfor
post-install:
.for s in ${ICON_SIZES}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
.endfor
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|