1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/games/daimonin/Makefile
2015-06-07 15:31:10 +00:00

77 lines
2.5 KiB
Makefile

# Created by: Pav Lucistnik <pav@FreeBSD.org>
# $FreeBSD$
PORTNAME= daimonin
PORTVERSION= 0.10.5
PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= http://mirror.amdmi3.ru/distfiles/
# http://daimonin.svn.sourceforge.net/viewvc/daimonin/main/client/?view=tar&pathrev=${SVN_REVISION}&file= # disabled - weird fetch magic required
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= F/OSS Massively Multiplayer On-line Role-playing Game (MMORPG)
LICENSE= GPLv2 # or later
LICENSE_FILE= ${WRKSRC}/../../License
LIB_DEPENDS= libphysfs.so:${PORTSDIR}/devel/physfs \
libcurl.so:${PORTSDIR}/ftp/curl
USES= autoreconf
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-simplelayout --enable-getaddrinfo
LDFLAGS+= -L${LOCALBASE}/lib
USE_SDL= mixer image
SUB_FILES= daimonin.sh
SUB_LIST= PORTVERSION=${PORTVERSION}
WRKSRC= ${WRKDIR}/client/make/linux
OPTIONS_DEFINE= MUSIC DEBUG
OPTIONS_DEFAULT= KB_DESKTOP MUSIC
OPTIONS_SINGLE= KB
OPTIONS_SINGLE_KB= KB_DESKTOP KB_LAPTOP KB_ROGUE
KB_DESKTOP_DESC= Key bindings for desktop (num keypad)
KB_LAPTOP_DESC= Key bindings for laptop (789uojkl)
KB_ROGUE_DESC= Rogue-like key bindings (hjkl and yubn)
KB_DESC= KB Selection
MUSIC_DESC= Download and Install music files (83 Mb)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDEBUG}
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-wrapper.c
.endif
.if ${PORT_OPTIONS:MMUSIC}
RUN_DEPENDS+= ${DATADIR}/media/AnichGiantTrouble.ogg:${PORTSDIR}/games/daimonin-music
.endif
pre-patch:
@${CP} ${WRKSRC}/../../settings/keys-laptop.dat ${WRKSRC}/../../settings/keys-rogue.dat
post-patch:
@${CHMOD} a+x ${WRKSRC}/make_utils/install-sh
@${CP} ${PORTSDIR}/Templates/config.guess ${PORTSDIR}/Templates/config.sub \
${WRKSRC}/make_utils/
post-install:
${MV} ${STAGEDIR}${PREFIX}/bin/daimonin ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/daimonin.sh ${STAGEDIR}${PREFIX}/bin/daimonin
@${FIND} ${STAGEDIR}${DATADIR} -name '*.orig' -delete
${MV} ${STAGEDIR}${DATADIR}/settings/keys.dat ${STAGEDIR}${DATADIR}/settings/keys-desktop.dat
.if ${PORT_OPTIONS:MKB_LAPTOP}
@${ECHO} Configuring keyboard bindings for laptop
${LN} -s ${DATADIR}/settings/keys-laptop.dat ${STAGEDIR}${DATADIR}/settings/keys.dat
.elif ${PORT_OPTIONS:MKB_ROGUE}
@${ECHO} Configuring rogue-like keyboard bindings
${LN} -s ${DATADIR}/settings/keys-rogue.dat ${STAGEDIR}${DATADIR}/settings/keys.dat
.else
@${ECHO} Configuring keyboard bindings for desktop
${LN} -s ${DATADIR}/settings/keys-desktop.dat ${STAGEDIR}${DATADIR}/settings/keys.dat
.endif
.include <bsd.port.mk>