# Created by: Brad Allen # $FreeBSD$ PORTNAME= stepmania PORTVERSION= 20071121 PORTREVISION= 9 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/OldFiles PKGNAMESUFFIX= -devel DISTNAME= StepMania-CVS-20071121-src MAINTAINER= ports@FreeBSD.org COMMENT= Stepmania dance and rhythm game LIB_DEPENDS= mad.2:${PORTSDIR}/audio/libmad \ png15:${PORTSDIR}/graphics/png \ jpeg.11:${PORTSDIR}/graphics/jpeg \ m.3:${PORTSDIR}/misc/compat5x BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip \ ${LOCALBASE}/include/linux/joystick.h:${PORTSDIR}/devel/linux-js CONFLICTS= stepmania-[0-9]* GNU_CONFIGURE= yes USE_GL= gl glu USE_XORG= x11 xtst xrandr xau xdmcp xext xrender USE_ICONV= yes USE_GNOME= gtk20 LDFLAGS+= -L${LOCALBASE}/lib CFLAGS+= -I${LOCALBASE}/include # Not yet implemented # FFMPEG "Enable ffmpeg support" off \ OPTIONS_DEFINE= VORBIS THEORA OPTIONS_DEFAULT= VORBIS .include .if ${PORT_OPTIONS:MVORBIS} LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis \ ogg:${PORTSDIR}/audio/libogg .else CONFIGURE_ARGS+=--without-vorbis .endif .if ${PORT_OPTIONS:MTHEORA} LIB_DEPENDS+= theora.0:${PORTSDIR}/multimedia/libtheora .else CONFIGURE_ARGS+=--without-theora .endif .include .if ${OSVERSION} < 800000 BROKEN= does not compile .endif post-patch: @${REINPLACE_CMD} -e 's|-lrt|-lrt -liconv|' ${WRKSRC}/src/Makefile.in @${REINPLACE_CMD} -e 's|@LINUX_TRUE@am__append_19|@UNIX_TRUE@am__append_19|' ${WRKSRC}/src/Makefile.in @${REINPLACE_CMD} -e 's|@LINUX_TRUE@am__objects_16|@UNIX_TRUE@am__objects_16|' ${WRKSRC}/src/Makefile.in do-install: ${MKDIR} ${PREFIX}/share/games ${MKDIR} ${PREFIX}/share/games/stepmania ${MKDIR} ${PREFIX}/share/games/stepmania/Announcers ${MKDIR} ${PREFIX}/share/games/stepmania/Songs (cd ${WRKSRC} && ${UNZIP_CMD} -o Packages/StepMania.smzip) (cd ${WRKSRC} && ${COPYTREE_SHARE} "BGAnimations\ BackgroundEffects BackgroundTransitions Characters Courses\ Data NoteSkins Themes" ${PREFIX}/share/games/stepmania) ${INSTALL_PROGRAM} ${WRKSRC}/src/stepmania \ ${PREFIX}/share/games/stepmania ${INSTALL_DATA} ${WRKSRC}/src/GtkModule.so \ ${PREFIX}/share/games/stepmania .include