diff options
Diffstat (limited to 'games/stepmania-devel/Makefile')
-rw-r--r-- | games/stepmania-devel/Makefile | 57 |
1 files changed, 23 insertions, 34 deletions
diff --git a/games/stepmania-devel/Makefile b/games/stepmania-devel/Makefile index 46a5188ceb2e..005da38d8620 100644 --- a/games/stepmania-devel/Makefile +++ b/games/stepmania-devel/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= stepmania -PORTVERSION= 5.0.9 +PORTVERSION= 5.0.10 DISTVERSIONPREFIX= v PORTEPOCH= 1 CATEGORIES= games @@ -19,49 +19,39 @@ LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre \ USE_GITHUB= yes -USES= autoreconf gmake iconv jpeg pathfix perl5 pkgconfig shebangfix +USES= cmake:outsource iconv jpeg pathfix perl5 pkgconfig shebangfix +SHEBANG_FILES= Utils/*.pl extern/zlib/zlib2ansi USE_XORG= x11 xrandr xtst USE_GL= glew USE_PERL5= build -GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-system-pcre \ - ${ICONV_CONFIGURE_ARG} +CMAKE_ARGS= -DHAVE__MKDIR:BOOL=OFF INSTALLS_ICONS= yes -SHEBANG_FILES= Utils/*.pl \ - extern/zlib/zlib2ansi -CPPFLAGS+= -I${LOCALBASE}/include +CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -OPTIONS_DEFINE= ALSA DOCS FFMPEG GTK2 JACK MAD PULSEAUDIO VORBIS +OPTIONS_DEFINE= ALSA DOCS FFMPEG GTK2 JACK MAD PULSEAUDIO VAAPI VORBIS OPTIONS_DEFAULT= GTK2 MAD VORBIS OPTIONS_SUB= yes ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib -ALSA_CONFIGURE_ENV_OFF= ac_cv_lib_asound_snd_ctl_open=no +ALSA_CMAKE_OFF= -DWITH_ALSA:BOOL=OFF +FFMEPG_BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm FFMPEG_LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg -FFMPEG_CONFIGURE_ON= --with-system-ffmpeg -FFMPEG_CONFIGURE_WITH= ffmpeg +FFMPEG_CMAKE_ON= -DWITH_SYSTEM_FFMPEG:BOOL=ON +FFMPEG_CMAKE_OFF= -DWITH_FFMPEG:BOOL=OFF GTK2_USE= gnome=gtk20 -GTK2_CONFIGURE_ENABLE= gtk2 +GTK2_CMAKE_ON= -DWITH_GTK2:BOOL=ON JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack -JACK_CONFIGURE_WITH= jack +JACK_CONFIGURE_OFF= -DWITH_JACK:BOOL=OFF MAD_LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/libmad -MAD_CONFIGURE_WITH= mp3 +MAD_CMAKE_OFF= -DWITH_MP3:BOOL=OFF PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio -PULSEAUDIO_CONFIGURE_ENV_OFF= ac_cv_lib_pulse_pa_stream_new=no +PULSEAUDIO_CMAKE_OFF= -DWITH_PULSE:BOOL=OFF +VAAPI_LIB_DEPENDS= libva.so:${PORTSDIR}/multimedia/libva +VAAPI_CMAKE_OFF= -DVA_FOUND:BOOL=OFF VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis -VORBIS_CONFIGURE_WITH= vorbis - -post-patch: - @${REINPLACE_CMD} -e \ - 's|^\(x86_64\)|amd64*\|\1| ; \ - s|-lpthread|-pthread|' ${WRKSRC}/configure.ac - @${REINPLACE_CMD} -e \ - 's|XLIBS+="-l|XLIBS="$$XLIBS -l|' ${WRKSRC}/autoconf/m4/x11.m4 - @${REINPLACE_CMD} -e \ - 's|-rdynamic|-Wl,-export-dynamic| ; \ - s|-finline-limit=300||' ${WRKSRC}/src/Makefile.am +VORBIS_CMAKE_OFF= -DWITH_OGG:BOOL=OFF pre-build: @${MKDIR} ${WRKDIR}/wrappers @@ -79,25 +69,24 @@ do-install: ${STAGEDIR}${PREFIX}/bin) @${MKDIR} ${STAGEDIR}${PREFIX}/lib/stepmania .for i in Announcers BGAnimations BackgroundEffects BackgroundTransitions \ - Characters Courses Data NoteSkins Scripts Themes + Characters Courses Data NoteSkins Scripts Songs Themes @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} \ ${STAGEDIR}${PREFIX}/lib/stepmania) .endfor - (cd ${WRKSRC}/src && ${INSTALL_PROGRAM} stepmania \ + (cd ${WRKSRC} && ${INSTALL_PROGRAM} stepmania \ ${STAGEDIR}${PREFIX}/lib/stepmania) - @${MKDIR} ${STAGEDIR}${PREFIX}/lib/stepmania/Songs (cd ${WRKSRC} && ${INSTALL_DATA} stepmania.desktop \ ${STAGEDIR}${PREFIX}/share/applications) @(cd ${WRKSRC} && ${COPYTREE_SHARE} icons \ ${STAGEDIR}${PREFIX}/share) +post-install-GTK2-on: + (cd ${WRKSRC} && ${INSTALL_LIB} GtkModule.so \ + ${STAGEDIR}${PREFIX}/lib/stepmania) + post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} @(cd ${WRKSRC}/Docs && ${COPYTREE_SHARE} . \ ${STAGEDIR}${DOCSDIR} "! -name Licenses.txt") -post-install-GTK2-on: - (cd ${WRKSRC}/src && ${INSTALL_LIB} GtkModule.so \ - ${STAGEDIR}${PREFIX}/lib/stepmania) - .include <bsd.port.mk> |