blob: 92ce3730ad039a94aa0058b6efc557e6a6968afa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# Created by: Brad Allen <braddo@tranceaddict.net>
# $FreeBSD$
PORTNAME= stepmania
PORTVERSION= 5.0.11
DISTVERSIONPREFIX= v
PORTREVISION= 7
PORTEPOCH= 1
CATEGORIES= games
PKGNAMESUFFIX= -devel
MAINTAINER= ports@FreeBSD.org
COMMENT= Rhythm game simulator
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/Docs/Licenses.txt
BROKEN= fails to build
LIB_DEPENDS= libpcre.so:devel/pcre \
libpng.so:graphics/png
BROKEN_powerpc64= fails to compile: cc1plus: unrecognized command line option "-msse2"
USE_GITHUB= yes
USES= cmake:outsource iconv jpeg perl5 pkgconfig shebangfix
SHEBANG_FILES= Utils/*.pl extern/zlib/zlib2ansi
USE_XORG= x11 xrandr xtst
USE_GL= glew
USE_PERL5= build
CMAKE_ARGS= -DHAVE__MKDIR:BOOL=OFF
INSTALLS_ICONS= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= ALSA DOCS FFMPEG GTK2 JACK MAD PULSEAUDIO VAAPI VORBIS
OPTIONS_DEFAULT= GTK2 MAD VORBIS
OPTIONS_SUB= yes
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
ALSA_CMAKE_OFF= -DWITH_ALSA:BOOL=OFF
FFMEPG_BUILD_DEPENDS= yasm:devel/yasm
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
FFMPEG_CMAKE_ON= -DWITH_SYSTEM_FFMPEG:BOOL=ON
FFMPEG_CMAKE_OFF= -DWITH_FFMPEG:BOOL=OFF
GTK2_USE= gnome=gtk20
GTK2_CMAKE_ON= -DWITH_GTK2:BOOL=ON
JACK_LIB_DEPENDS= libjack.so:audio/jack
JACK_CONFIGURE_OFF= -DWITH_JACK:BOOL=OFF
MAD_LIB_DEPENDS= libmad.so:audio/libmad
MAD_CMAKE_OFF= -DWITH_MP3:BOOL=OFF
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
PULSEAUDIO_CMAKE_OFF= -DWITH_PULSE:BOOL=OFF
VAAPI_LIB_DEPENDS= libva.so:multimedia/libva
VAAPI_CMAKE_OFF= -DVA_FOUND:BOOL=OFF
VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis
VORBIS_CMAKE_OFF= -DWITH_OGG:BOOL=OFF
pre-build:
@${MKDIR} ${WRKDIR}/wrappers
@${ECHO_CMD} -n \
> ${WRKDIR}/wrappers/stepmania
@${ECHO_CMD} '#!${SH}' \
>> ${WRKDIR}/wrappers/stepmania
@${ECHO_CMD} 'cd ${PREFIX}/lib/stepmania' \
>> ${WRKDIR}/wrappers/stepmania
@${ECHO_CMD} 'exec ./stepmania "$$@"' \
>> ${WRKDIR}/wrappers/stepmania
do-install:
(cd ${WRKDIR}/wrappers && ${INSTALL_SCRIPT} stepmania \
${STAGEDIR}${PREFIX}/bin)
.for i in Announcers BGAnimations BackgroundEffects BackgroundTransitions \
Characters Courses Data NoteSkins Scripts Songs Themes
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} \
${STAGEDIR}${PREFIX}/lib/stepmania)
.endfor
(cd ${WRKSRC} && ${INSTALL_PROGRAM} stepmania \
${STAGEDIR}${PREFIX}/lib/stepmania)
(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:
@(cd ${WRKSRC}/Docs && ${COPYTREE_SHARE} . \
${STAGEDIR}${DOCSDIR} "! -name Licenses.txt")
.include <bsd.port.mk>
|