summaryrefslogtreecommitdiff
path: root/emulators/kenigma/Makefile
blob: c5600ffec7c9df4c267a3cb1701a49772e7972a8 (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
# $NetBSD: Makefile,v 1.3 2007/09/21 13:03:41 wiz Exp $

DISTNAME=	28107-kenigma-1.2.1
PKGNAME=	kenigma-1.2.1
PKGREVISION=	2
CATEGORIES=	emulators security
MASTER_SITES=	http://www.kde-apps.org/content/files/

MAINTAINER=	markd@NetBSD.org
HOMEPAGE=	http://www.kde-apps.org/content/show.php?content=28107
COMMENT=	Replica of the German enigma code machine used in WW2

WRKSRC=		${WRKDIR}/kenigma

NO_CONFIGURE=	yes
USE_LANGUAGES=	# none

APPDIR=		${KDEDIR}/share/kde/apps/kenigma

do-build:
	(cd ${WRKSRC}; \
	${ECHO} "#!/bin/sh"; \
	${ECHO} "cd ${APPDIR} && ${RUBY} main.rb") > ${WRKSRC}/kenigma

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/kenigma ${KDEDIR}/bin
	${INSTALL_DATA} ${WRKSRC}/kenigma.desktop ${KDEDIR}/share/applications/kde
	${INSTALL_DATA_DIR} ${APPDIR}
	${INSTALL_DATA} ${WRKSRC}/*.rb ${APPDIR}
	${INSTALL_DATA} ${WRKSRC}/kenigma.dtd ${APPDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${APPDIR}


.include "../../meta-pkgs/kde3/kde3.mk"
.include "../../lang/ruby/buildlink3.mk"
.include "../../x11/kdebindings-ruby/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"