summaryrefslogtreecommitdiff
path: root/games/craft/Makefile
blob: 99276b23aff9231ce5a7b0ef640c83cfe944be1b (plain)
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
# $NetBSD: Makefile,v 1.29 2013/01/21 00:07:31 dholland Exp $

DISTNAME=	craftcc35
PKGNAME=	craft-3.5
PKGREVISION=	2
CATEGORIES=	games x11
MASTER_SITES=	http://ibiblio.org/pub/linux/games/strategy/
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	pkgsrc-users@NetBSD.org
# Gone as of 20130120, no obvious replacement
#HOMEPAGE=	http://set.gmd.de/~hua/
COMMENT=	Warcraft-like game for X11

WRKSRC=		${WRKDIR}
USE_LANGUAGES=	c c++
USE_X11BASE=	yes

# Note for reference that there's a craftdoc.tar.Z that can also be
# downloaded; the only thing it contains that isn't in the main
# distfile is a few unreferenced images.

SUBST_CLASSES+=		craft
SUBST_STAGE.craft=	pre-configure
SUBST_FILES.craft=	win.hc setupedit.hc option_menu.hc craft_def.h
SUBST_VARS.craft=	PREFIX

SUBST_CLASSES+=		buttons
SUBST_STAGE.buttons=	pre-configure
SUBST_FILES.buttons=	.windefaults.params
SUBST_SED.buttons=	-e 's+buttons+${PREFIX}/share/craft/buttons+'

INSTALLATION_DIRS=	bin

post-extract:
	find ${WRKSRC} -type f -name '*~' -print | xargs rm -f
	ln -fs ${FILESDIR}/Makefile ${WRKSRC}
	for f in `find ${WRKSRC} -name "*.hc" -type f -print`; do	\
	  ${ECHO} "" >>$$f;						\
	done
	${CHMOD} a-x ${WRKSRC}/html/pic/*.gif
	${CHMOD} a-x ${WRKSRC}/html/pic/craft.gif.old
	${CHMOD} a-x ${WRKSRC}/html/craftcc.html
	rm -f ${WRKSRC}/hcc/hcc

.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"