openbsd-ports/games/ri-li/Makefile
2011-03-19 17:38:06 +00:00

42 lines
889 B
Makefile

# $OpenBSD: Makefile,v 1.8 2011/03/19 17:38:06 ajacoutot Exp $
COMMENT= drive a toy wood engine
DISTNAME= Ri-li-2.0.0
REVISION = 2
CATEGORIES= games
HOMEPAGE= http://ri-li.sourceforge.net
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ri-li/}
WANTLIB= Xext X11 c m pthread pthread-stubs stdc++ usbhid xcb \
SDL_mixer>=3 SDL>=6
EXTRACT_SUFX= .tar.bz2
LIB_DEPENDS= devel/sdl-mixer \
devel/sdl
CONFIGURE_STYLE=gnu
SDL_CONFIG= ${LOCALBASE}/bin/sdl-config
CONFIGURE_ENV= CPPFLAGS="`${SDL_CONFIG} --cflags` \
-I${X11BASE}/include \
-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--with-sdl-config=${SDL_CONFIG}
pre-configure:
@perl -pi -e 's|-lSDL |`${SDL_CONFIG} --libs`|' ${WRKSRC}/configure
.include <bsd.port.mk>