# Created by: Pav Lucistnik # $FreeBSD: head/games/daimonin/Makefile 412346 2016-04-01 14:00:51Z mat $ 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+ LICENSE_FILE= ${WRKSRC}/../../License LIB_DEPENDS= libphysfs.so:devel/physfs \ libcurl.so: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 .if ${PORT_OPTIONS:MDEBUG} EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-wrapper.c .endif .if ${PORT_OPTIONS:MMUSIC} RUN_DEPENDS+= ${DATADIR}/media/AnichGiantTrouble.ogg: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