mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
0a991b5988
- Transfer maintainership to the submitter PR: ports/134052 Submitted by: Vital Driedfruit <flambard@mangband.org> Approved by: Adam Kranzel <adam@blacktabby.org> (old maintainer) Feature safe: yes
74 lines
1.9 KiB
Makefile
74 lines
1.9 KiB
Makefile
# New ports collection makefile for: mangband
|
|
# Date created: Thu Jun 11 11:40:54 UTC 2009
|
|
# Whom: driedfruit
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mangband
|
|
PORTVERSION= 1.1.2
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://www.mangband.org/ http://www.mangband.org/download/
|
|
|
|
MAINTAINER= flambard@mangband.org
|
|
COMMENT= Free online multiplayer real-time roguelike game
|
|
|
|
ALL_TARGET= mangclient mangband
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
GNU_CONFIGURE= yes
|
|
USE_GMAKE= yes
|
|
|
|
MAKE_ARGS= "DATADIR=${DATADIR}"
|
|
|
|
OPTIONS= GCU "Display module GCU" On \
|
|
X11 "Display module X11" Off \
|
|
SDL "Display module SDL" Off \
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_GCU)
|
|
#LIB_DEPENDS+= ncurses:${PORTSDIR}/devel/ncurses
|
|
CONFIGURE_ARGS+= --with-gcu
|
|
.else
|
|
CONFIGURE_ARGS+= --without-gcu
|
|
.endif
|
|
|
|
.if defined(WITH_X11)
|
|
LIB_DEPENDS+= X11.6:${PORTSDIR}/x11/libX11
|
|
CONFIGURE_ARGS+= --with-x11
|
|
.else
|
|
CONFIGURE_ARGS+= --without-x11
|
|
.endif
|
|
|
|
.if defined(WITH_SDL)
|
|
LIB_DEPENDS+= SDL-1.2:${PORTSDIR}/devel/sdl12
|
|
CONFIGURE_ARGS+= --with-sdl
|
|
.else
|
|
CONFIGURE_ARGS+= --without-sdl
|
|
.endif
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} -o root -g games -m 2550 \
|
|
${WRKSRC}/mangband ${PREFIX}/bin
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/mangclient ${PREFIX}/bin
|
|
@${CP} ${WRKDIR}/${DISTNAME}/mangband.cfg ${PREFIX}/etc
|
|
|
|
@echo "# FreeBSD Hacks" >> ${PREFIX}/etc/mangband.cfg
|
|
@echo "EDIT_DIR = \"${DATADIR}/edit\"" >> ${PREFIX}/etc/mangband.cfg
|
|
@echo "SAVE_DIR = \"${DATADIR}/save\"" >> ${PREFIX}/etc/mangband.cfg
|
|
@echo "DATA_DIR = \"${DATADIR}/data\"" >> ${PREFIX}/etc/mangband.cfg
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
@echo "[MAngband]" >> ${EXAMPLESDIR}/mangrc
|
|
@echo "LibDir ${DATADIR}" >> ${EXAMPLESDIR}/mangrc
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
@cd ${WRKSRC}/../lib && ${PAX} -rw * ${DATADIR}
|
|
@${CHMOD} 750 ${DATADIR}/*
|
|
@${CHMOD} 755 ${DATADIR}/user
|
|
@${CHMOD} 755 ${DATADIR}/xtra
|
|
@${CHOWN} -R root:games ${DATADIR}/*
|
|
@${CHOWN} ${SHAREOWN}:${SHAREGRP} ${DATADIR}
|
|
|
|
.include <bsd.port.post.mk>
|