summaryrefslogtreecommitdiff
path: root/games/fkiss/Makefile
blob: d3fa2cae1218b8c7b9fe310da021d250a073df8d (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
48
49
50
# $NetBSD: Makefile,v 1.10 2003/12/13 20:14:26 ben Exp $
#

DISTNAME=		fkiss-0.33
PKGNAME=		fkiss-0.33a
CATEGORIES=		games
MASTER_SITES=		http://www.oersted.co.jp/~yav/soft/fkiss/

MAINTAINER=		ben@netbsd.org
HOMEPAGE=		http://www.oersted.co.jp/~yav/soft/indexe.html#fkiss
COMMENT=		Kisekae viewer

PATCH_SITES=		${MASTER_SITES}
PATCHFILES=             fkiss-0.33a.diff
PATCH_DIST_STRIP=       -p1

DEPENDS+=		lha-[0-9]*:../../archivers/lha

USE_BUILDLINK2=		yes
USE_X11=		yes
USE_GMAKE=		yes
GNU_CONFIGURE=		yes
CFLAGS+=		-DUSE_STDARG -DHAVE_STDARG_H
CFLAGS+=		-DDEV_SOUND=\"\\\"${DEVOSSSOUND}\\\"\"
ALL_TARGET=		fkiss

post-patch:
	${MV} ${WRKSRC}/sound.c ${WRKSRC}/sound.c.bak
	${SED} -e "s,XXXPREFIXXXX,${PREFIX},g" \
		<${WRKSRC}/sound.c.bak >${WRKSRC}/sound.c
	${MV} ${WRKSRC}/fkiss.man ${WRKSRC}/fkiss.man.bak
	${SED} -e "s,XXXPREFIXXXX,${PREFIX},g" \
		<${WRKSRC}/fkiss.man.bak >${WRKSRC}/fkiss.man


do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/fkiss ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/fkiss.man ${PREFIX}/man/man6/fkiss.6
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/fkiss
	${INSTALL_DATA} ${WRKSRC}/fkissrc.smp \
		${PREFIX}/share/examples/fkiss/fkissrc
	${INSTALL_DATA} ${WRKSRC}/frkismi4.lzh ${PREFIX}/share/examples/fkiss
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/fkiss
	for i in ${WRKSRC}/*.doc; do \
		${SED} -f ${WRKSRC}/english.sed <$$i \
			>${PREFIX}/share/doc/fkiss/`${BASENAME} $$i`; \
	done

.include "../../mk/ossaudio.buildlink2.mk"
.include "../../mk/bsd.pkg.mk"