1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00
freebsd-ports/games/angband/Makefile

50 lines
1.2 KiB
Makefile
Raw Normal View History

# Created by: Matthew Hunt <mph@pobox.com>
1999-08-25 06:06:33 +00:00
# $FreeBSD$
PORTNAME= angband
PORTVERSION= 4.1.3
CATEGORIES= games
MASTER_SITES= http://rephial.org/downloads/${PORTVERSION:R}/
MAINTAINER= andrew@merenbach.com
COMMENT= Rogue-like game with color, X11 support
LICENSE= GPLv2
USES= autoreconf gmake ncurses
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_path_NCURSES_CONFIG=${TRUE}
CONFIGURE_ARGS= --localstatedir=/var
CPPFLAGS+= -I${NCURSESINC}
LDFLAGS+= -L${NCURSESLIB} -lncursesw
OPTIONS_DEFINE= SDL X11 DOCS
OPTIONS_DEFAULT=X11
2015-01-04 15:35:44 +00:00
DOCS_BUILD_DEPENDS= rst2html:textproc/py-docutils
2019-11-07 20:19:59 +00:00
SDL_USES= sdl
SDL_USE= SDL=image,mixer,ttf,sdl
SDL_CONFIGURE_ENABLE= sdl
2019-11-07 20:19:59 +00:00
X11_USES= xorg
X11_USE= XORG=ice,sm,x11
X11_RUN_DEPENDS= xorg-fonts-miscbitmaps>=0:x11-fonts/xorg-fonts-miscbitmaps
X11_CONFIGURE_ENABLE= x11
post-patch:
@${REINPLACE_CMD} -e \
'/-Wno-missing-field-initializers/,/fi$$/d ; \
s|/games$$|/bin|' ${WRKSRC}/configure.ac
@${REINPLACE_CMD} -e \
's|.SILENT:||' ${WRKSRC}/mk/buildsys.mk.in
@${REINPLACE_CMD} -e \
's|-O0||' ${WRKSRC}/src/Makefile
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/angband
.for i in user/save user/scores
@${MKDIR} ${STAGEDIR}${DATADIR}/${i}
.endfor
.include <bsd.port.mk>