summaryrefslogtreecommitdiff
path: root/games/xu4/Makefile
blob: 3173905e1014d871f5ccc06990bad3570edacd45 (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.8 2020/06/02 08:23:57 adam Exp $
#

DISTNAME=	xu4-1.0beta3
PKGREVISION=	4
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=xu4/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://xu4.sourceforge.net/
COMMENT=	Remake of Ultima IV
LICENSE=	gnu-gpl-v2

DEPENDS+=	timidity-[0-9]*:../../audio/timidity

WRKSRC=		${WRKDIR}/u4
CONFIGURE_DIRS=	src
USE_LANGUAGES=	c c++
USE_TOOLS+=	gmake

INSTALLATION_DIRS=	share/doc/xu4

SUBST_CLASSES+=		prefix
SUBST_SED.prefix=	-e "s,/usr/local,${PREFIX},"
SUBST_FILES.prefix=	src/u4file.cpp README
SUBST_STAGE.prefix=	pre-build
SUBST_MESSAGE.prefix=	Fixing path to installed files.

post-install:
	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/xu4

.include "../../audio/SDL_mixer/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"