freebsd-ports/games/stepmania-devel/Makefile
Niclas Zeising 39fc32e828 The FreeBSD x11@ and graphics team proudly presents
a zeising, kwm production, with help from dumbbell, bdrewery:

NEW XORG ON FREEBSD 9-STABLE AND 10-STABLE

This update switches over to use the new xorg stack by default on FreeBSD 9
and 10 stable, on osversions where vt(9) is available.
It is still possible to use the old stack by specifying WITHOUT_NEW_XORG in
/etc/make.conf .
FreeBSD 8-STABLE and released versions of FreeBSD still use
the old version.
A package repository with binary packages for new xorg will
be available soon.

This patch also contains updates of libxcb and related ports, pixman, as well
as some drivers and utilities.

Bump portrevisions for xf86-* ports, as well as virtualbox-ose-additions due
to xserver version change.

Apart from these updates, the way shared libraries are handled has been
changed for all xorg ports, as well as libxml2 and freetype, which means
ltverhack is gone and as a consequence shared libraries have been bumped.
The plan is that this change will make library bumps less likely in the
future.
All affected ports have had their portrevisions bumped as a consequence of
this.

Fix some issues where WITH_NEW_XORG weren't detected properly on CURRENT.

Update instructions, hardware support, and more notes can be found on
https://wiki.freebsd.org/Graphics

Thanks to:	all testers, bdrewery and the FreeBSD x11@ team
exp-run by:	bdrewery [1]
PR:		ports/187602 [1]
Approved by:	portmgr (bdrewery), core (jhb)
2014-04-16 18:28:47 +00:00

94 lines
2.9 KiB
Makefile

# Created by: Brad Allen <braddo@tranceaddict.net>
# $FreeBSD$
PORTNAME= stepmania
PORTVERSION= 5.0.a3
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= games
MASTER_SITES= GOOGLE_CODE
PROJECTHOST= sm-ssc
PKGNAMESUFFIX= -devel
DISTNAME= ${PORTNAME}-SM5-alpha3-src
MAINTAINER= ports@FreeBSD.org
COMMENT= Rrhythm game simulator
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/Docs/Licenses.txt
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip
LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/libmad \
libGLEW.so:${PORTSDIR}/graphics/glew
OPTIONS_DEFINE= PULSEAUDIO VORBIS DOCS
OPTIONS_DEFAULT=VORBIS
WRKSRC= ${WRKDIR}/${PORTNAME}-SM5-alpha3
USE_BZIP2= yes
USES= iconv pathfix perl5 pkgconfig shebangfix
USE_XORG= x11 xau xdmcp xext xrandr xrender xtst
USE_GL= gl glu
USE_GNOME= gtk20
USE_PERL5= build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-ffmpeg
INSTALLS_ICONS= yes
SHEBANG_FILES= Utils/*.pl \
extern/zlib/zlib2ansi
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lX11 -lpthread
VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
VORBIS_CONFIGURE_WITH= vorbis
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPULSEAUDIO}
LIB_DEPENDS+= libpulse.so:${PORTSDIR}/audio/pulseaudio
.else
CONFIGURE_ENV+= ac_cv_lib_pulse_pa_stream_new=no
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|-lpthread |-pthread |' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
'/^LIBS/s|-lpthread|${ICONV_LIB}| ; \
s|-finline-limit=300||g' ${WRKSRC}/src/Makefile.in
pre-build:
@${ECHO_CMD} -n > ${WRKDIR}/stepmania.sh
@${ECHO_CMD} '#!${SH}' >> ${WRKDIR}/stepmania.sh
@${ECHO_CMD} 'cd ${PREFIX}/lib/stepmania; ./stepmania $$@' >> ${WRKDIR}/stepmania.sh
post-build:
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
${MAKEFILE} ${MAKE_ARGS} SMData)
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/stepmania.sh ${STAGEDIR}${PREFIX}/bin/stepmania
${INSTALL_DATA} ${WRKSRC}/stepmania.desktop ${STAGEDIR}${PREFIX}/share/applications
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
cd ${WRKSRC}/icons/hicolor/scalable/apps && ${INSTALL_DATA} \
stepmania-ssc.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
.for i in 16 22 24 32 36 48 64 72 96 128 192 256
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps
cd ${WRKSRC}/icons/hicolor/${i}x${i}/apps && ${INSTALL_DATA} \
stepmania-ssc.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps
.endfor
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/stepmania
${INSTALL_PROGRAM} ${WRKSRC}/src/stepmania ${STAGEDIR}${PREFIX}/lib/stepmania
${INSTALL_DATA} ${WRKSRC}/src/GtkModule.so ${STAGEDIR}${PREFIX}/lib/stepmania
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/stepmania/Packages
${INSTALL_DATA} ${WRKSRC}/GameData.smzip ${STAGEDIR}${PREFIX}/lib/stepmania/Packages
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(${TAR} -C ${WRKSRC}/Docs --exclude "Licenses.txt" -cf - . | \
${TAR} -C ${STAGEDIR}${DOCSDIR} --unlink -xf -)
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/stepmania/GtkModule.so
.include <bsd.port.mk>