mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
62a898637e
PR: 209825 Submitted by: maintainer Reviewed by: Vladimir Krstulja
55 lines
1.6 KiB
Makefile
55 lines
1.6 KiB
Makefile
# Created by: driedfruit
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mangband
|
|
PORTVERSION= 1.1.3
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://mangband.org/download/
|
|
|
|
MAINTAINER= flambard@mangband.org
|
|
COMMENT= Free online multiplayer real-time roguelike game
|
|
|
|
LICENSE= GPLv2
|
|
|
|
ALL_TARGET= mangclient mangband
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
GNU_CONFIGURE= yes
|
|
USES= dos2unix gmake ncurses
|
|
DOS2UNIXFILES= ${WRKSRC}/client/main-sdl.c
|
|
|
|
MAKE_ARGS= "DATADIR=${DATADIR}"
|
|
|
|
OPTIONS_DEFINE= GCU X11 SDL
|
|
OPTIONS_DEFAULT= GCU X11 SDL
|
|
GCU_DESC= Display module GCU (curses)
|
|
X11_DESC= Display module X11
|
|
SDL_DESC= Display module SDL
|
|
|
|
GCU_CONFIGURE_WITH= gcu
|
|
|
|
X11_LIB_DEPENDS= libX11.so:x11/libX11
|
|
X11_CONFIGURE_WITH= x11
|
|
|
|
SDL_LIB_DEPENDS= libX11.so:x11/libX11
|
|
SDL_CONFIGURE_WITH= sdl
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mangband ${STAGEDIR}${PREFIX}/bin/
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mangclient ${STAGEDIR}${PREFIX}/bin/
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/mangband.cfg ${STAGEDIR}${PREFIX}/etc/mangband.cfg.sample
|
|
@echo "# FreeBSD Hacks" >> ${STAGEDIR}${PREFIX}/etc/mangband.cfg.sample
|
|
@echo "EDIT_DIR = \"${DATADIR}/edit\"" >> ${STAGEDIR}${PREFIX}/etc/mangband.cfg.sample
|
|
@echo "SAVE_DIR = \"${DATADIR}/save\"" >> ${STAGEDIR}${PREFIX}/etc/mangband.cfg.sample
|
|
@echo "DATA_DIR = \"${DATADIR}/data\"" >> ${STAGEDIR}${PREFIX}/etc/mangband.cfg.sample
|
|
@(cd ${WRKDIR}/${DISTNAME}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
@echo "[MAngband]" >> ${STAGEDIR}${EXAMPLESDIR}/mangrc
|
|
@echo "LibDir ${DATADIR}/" >> ${STAGEDIR}${EXAMPLESDIR}/mangrc
|
|
|
|
.include <bsd.port.mk>
|