blob: a268660f23896ac9f8245c33f31c8e42d18a4be9 (
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
|
# $NetBSD: Makefile,v 1.12 2004/01/24 13:30:55 grant Exp $
DISTNAME= craftcc35
PKGNAME= craft-3.5
CATEGORIES= games x11
MASTER_SITES= ftp://set.gmd.de/pub/as/janus/craft/
EXTRACT_SUFX= .tar.Z
MAINTAINER= root@garbled.net
HOMEPAGE= http://set.gmd.de/~hua/
COMMENT= Warcraft-like game for X11
WRKSRC= ${WRKDIR}
USE_GNU_TOOLS+= make
USE_X11BASE= yes
post-extract:
@${FIND} ${WRKSRC} -type f -name '*~' | ${XARGS} ${RM} -f
@${LN} -fs ${FILESDIR}/Makefile ${WRKSRC}
for FILE in `find ${WRKSRC} -name "*.hc" -type f`; do \
echo >>$$FILE ""; \
done
post-patch:
${RM} -f ${WRKSRC}/hcc/hcc
${CP} ${WRKSRC}/.windefaults.params ${WRKSRC}/foo
${SED} -e 's+buttons+${PREFIX}/share/craft/buttons+' <${WRKSRC}/foo> ${WRKSRC}/.windefaults.params
${CP} ${WRKSRC}/win.hc ${WRKSRC}/foo
${SED} -e 's+@PREFIX@+${PREFIX}+' <${WRKSRC}/foo> ${WRKSRC}/win.hc
${CP} ${WRKSRC}/setupedit.hc ${WRKSRC}/foo
${SED} -e 's+@PREFIX@+${PREFIX}+' <${WRKSRC}/foo> ${WRKSRC}/setupedit.hc
${CP} ${WRKSRC}/option_menu.hc ${WRKSRC}/foo
${SED} -e 's+@PREFIX@+${PREFIX}+' <${WRKSRC}/foo> ${WRKSRC}/option_menu.hc
${CP} ${WRKSRC}/craft_def.h ${WRKSRC}/foo
${SED} -e 's+@PREFIX@+${PREFIX}+' <${WRKSRC}/foo> ${WRKSRC}/craft_def.h
${RM} -f ${WRKSRC}/foo
.include "../../mk/bsd.pkg.mk"
|