freebsd-ports/games/chromium-bsu/Makefile
Antoine Brodin 1df9d247be Convert the tree to USES=openal
Approved by:	portmgr (bapt)
2013-12-25 23:29:34 +00:00

59 lines
1.2 KiB
Makefile

# Created by: Eric Anholt <anholt@FreeBSD.org>
# $FreeBSD$
PORTNAME= chromium-bsu
PORTVERSION= 0.9.15.1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/Chromium%20B.S.U.%20source%20code/
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= An arcade-style, top-scrolling space shooter
LIB_DEPENDS= libglpng.so:${PORTSDIR}/graphics/glpng \
libftgl.so:${PORTSDIR}/graphics/ftgl \
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
GNU_CONFIGURE= yes
USES= pkgconfig
USE_GL= gl glu
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --disable-glc
INSTALLS_ICONS= yes
PORTDOCS= *
PORTDATA= *
MAN6= chromium-bsu.6
OPTIONS_DEFINE= SDL_MIXER GLUT NLS DOCS
SDL_MIXER_DESC= Use SDL_mixer instead of OpenAL for audio
GLUT_DESC= Use GLUT instead of SDL for video
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGLUT}
USE_GL+= glut
CONFIGURE_ARGS+=--disable-sdl --disable-sdlimage
.else
USE_SDL+= sdl image
CONFIGURE_ARGS+=--disable-glut
.endif
.if ${PORT_OPTIONS:MSDL_MIXER}
USE_SDL+= mixer
CONFIGURE_ARGS+=--disable-openal
.else
USES+= openal:al,alut
CONFIGURE_ARGS+=--disable-sdlmixer
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.include <bsd.port.mk>