freebsd-ports/devel/guichan/Makefile
Marcus von Appen 6b1c890fb0 - Enable OPENGL by default, since several ports rely on it
- Bump PORTREVISION

PR:		ports/178840
Submitted by:	amdmi@
2013-05-22 19:19:03 +00:00

55 lines
1.1 KiB
Makefile

# Created by: Tobias Gion <freebsd@gionet.de>
# $FreeBSD$
PORTNAME= guichan
PORTVERSION= 0.8.2
PORTREVISION= 7
CATEGORIES= devel games
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
MAINTAINER= mva@FreeBSD.org
COMMENT= Small, efficient C++ GUI library designed for games
USE_AUTOTOOLS= libtool
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USES= pathfix
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= SDL ALLEGRO OPENGL
OPTIONS_DEFAULT= SDL OPENGL
ALLEGRO_DESC= Allegro support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSDL}
USE_SDL+= sdl image
CONFIGURE_ARGS+=--enable-sdl --enable-sdlimage
PLIST_SUB+= SDL=""
.else
CONFIGURE_ARGS+=--disable-sdl --disable-sdlimage
PLIST_SUB+= SDL="@comment "
.endif
.if ${PORT_OPTIONS:MALLEGRO}
LIB_DEPENDS+= alleg.42:${PORTSDIR}/devel/allegro
CONFIGURE_ARGS+=--enable-allegro
PLIST_SUB+= ALLEGRO=""
.else
CONFIGURE_ARGS+=--disable-allegro
PLIST_SUB+= ALLEGRO="@comment "
.endif
.if ${PORT_OPTIONS:MOPENGL}
USE_GL= yes
CONFIGURE_ARGS+=--enable-opengl
PLIST_SUB+= GL=""
.else
CONFIGURE_ARGS+=--disable-opengl
PLIST_SUB+= GL="@comment "
.endif
.include <bsd.port.mk>