openbsd-ports/games/angband/Makefile

64 lines
1.5 KiB
Makefile
Raw Normal View History

2011-12-02 09:36:13 -05:00
# $OpenBSD: Makefile,v 1.25 2011/12/02 14:36:14 espie Exp $
# Original from: Robert Ruehlmann
2000-04-16 17:03:12 -04:00
COMMENT= rogue-like game with X11 support
COMMENT-no_x11= rogue-like game
V = 3.3.1
V_DLDIR = ${V:C/\.[0-9]$//}
DISTNAME= angband-v${V}
PKGNAME= angband-${V}
CATEGORIES= games
2000-04-16 17:03:12 -04:00
HOMEPAGE= http://rephial.org
2000-08-06 17:41:50 -04:00
MAINTAINER = Edd Barrett <edd@openbsd.org>
2000-04-16 17:03:12 -04:00
# Multi license, including GPLv2, angband license, CC, freeware...
# The angband license contains the line "other copyrights may also apply"
PERMIT_PACKAGE_CDROM= unclear license
2000-08-06 17:41:50 -04:00
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= unclear license
2000-08-06 17:41:50 -04:00
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c m ncurses
2000-04-16 17:03:12 -04:00
MASTER_SITES = ${HOMEPAGE}/downloads/${V_DLDIR}/
CONFIGURE_STYLE= gnu
CONFIGURE_ENV += "LDFLAGS=-L${LOCALBASE}/lib"
CONFIGURE_ARGS += --with-setgid=games \
2011-09-15 08:30:30 -04:00
--with-varpath=/var/games/angband \
--with-configpath=${PREFIX}/share/angband \
--bindir=${PREFIX}/bin
CONFIGURE_ENV= TRUEPREFIX="${TRUEPREFIX}"
USE_GMAKE = Yes
2000-04-16 17:03:12 -04:00
FLAVORS= no_x11 sdl
2000-04-18 20:17:18 -04:00
FLAVOR?=
2011-12-02 09:36:13 -05:00
.if ${FLAVOR:Mno_x11}
CONFIGURE_ARGS+= --without-x
.else
CONFIGURE_ARGS+= --with-x
WANTLIB+= ICE SM X11
2000-04-18 20:17:18 -04:00
.endif
2011-12-02 09:36:13 -05:00
.if ${FLAVOR:Msdl} # funky graphical mode and sounds
CONFIGURE_ARGS += --enable-sdl \
--enable-sdl-mixer
PKG_ARGS += -Dsdl=1
LIB_DEPENDS += devel/sdl-mixer \
devel/sdl-image \
devel/sdl-ttf
WANTLIB += SDL SDL_image SDL_mixer SDL_ttf pthread
.else
CONFIGURE_ARGS += --disable-sdl-mixer # defaults to ON
PKG_ARGS += -Dsdl=0
.endif
NO_REGRESS = Yes
2000-04-16 17:03:12 -04:00
.include <bsd.port.mk>