Lines 8-109
Link Here
|
8 |
# |
8 |
# |
9 |
|
9 |
|
10 |
PORTNAME= aegisub |
10 |
PORTNAME= aegisub |
11 |
PORTVERSION= 2.1.8 |
11 |
PORTVERSION= 2.1.9 |
12 |
PORTREVISION= 3 |
|
|
13 |
CATEGORIES= multimedia |
12 |
CATEGORIES= multimedia |
14 |
MASTER_SITES= http://ftp.aegisub.org/pub/releases/ \ |
13 |
MASTER_SITES= http://ftp.aegisub.org/pub/releases/ \ |
15 |
http://ftp2.aegisub.org/pub/releases/ \ |
14 |
http://ftp2.aegisub.org/pub/releases/ \ |
16 |
ftp://ftp.aegisub.org/pub/releases/ \ |
15 |
ftp://ftp.aegisub.org/pub/releases/ \ |
17 |
ftp://ftp2.aegisub.org/pub/releases/ |
16 |
ftp://ftp2.aegisub.org/pub/releases/ \ |
|
|
17 |
GOOGLE_CODE:ffms |
18 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${FFMS_DISTFILE}:ffms |
19 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
18 |
|
20 |
|
19 |
MAINTAINER= ports@FreeBSD.org |
21 |
MAINTAINER= ports@FreeBSD.org |
20 |
COMMENT= Aegisub Project is a cross-platform subtitle editor |
22 |
COMMENT= A cross-platform subtitle editor |
21 |
|
23 |
|
22 |
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config \ |
24 |
LICENSE= BSD |
23 |
intltoolize:${PORTSDIR}/textproc/intltool \ |
25 |
|
24 |
${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:${PORTSDIR}/x11-fonts/fontconfig |
26 |
LIB_DEPENDS= fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig |
25 |
|
27 |
|
26 |
OPTIONS= DEBUG "Enable debug" Off \ |
28 |
OPTIONS= DEBUG "Enable debug" Off \ |
27 |
PROFILE "Enable profiling" Off \ |
29 |
PROFILE "Enable profiling" Off \ |
28 |
GCOV "Enable GCOV (require profiling)" Off \ |
30 |
GCOV "Enable GCOV (require profiling)" Off \ |
29 |
EFENCE "Enable Electric Fence (require profiling)" Off \ |
31 |
EFENCE "Enable Electric Fence (require profiling)" Off \ |
30 |
NLS "Enable Native Language Support" On \ |
32 |
ASS "Enable libASS subtitle provider" On \ |
31 |
PORTAUDIO "Enable PortAudio2 audio provider (only one)" Off \ |
33 |
ALSA "Enable ALSA audio provider" Off \ |
32 |
PULSE "Enable PulseAudio audio provider (only one)" On \ |
34 |
OPENAL "Enable OpenAL audio privider" Off \ |
33 |
OSS "Enable OSS audio player (require portaudio)" Off \ |
35 |
PORTAUDIO "Enable PortAudio2 audio provider" Off \ |
34 |
FFMPEG "Enable FFMPEG video provider" Off \ |
36 |
PULSEAUDIO "Enable PulseAudio audio provider" On \ |
35 |
HUNSPELL "Hungarian Spell" On \ |
37 |
FFMPEG "Enable FFMPEG video provider" On \ |
36 |
LUA "LUA Scripting" On \ |
38 |
HUNSPELL "Enable Hunspell support" On \ |
37 |
PERL "Perl Scripting" On |
39 |
LUA "LUA Scripting" On |
38 |
|
40 |
|
39 |
USE_ICONV= yes |
41 |
USE_GNOME= intltool pkgconfig |
40 |
USE_WX= 2.8 |
42 |
USE_WX= 2.8 |
41 |
WX_COMPS= wx contrib |
43 |
WX_COMPS= wx contrib |
42 |
WX_UNICODE= yes |
44 |
WX_UNICODE= yes |
43 |
CONFIGURE_ARGS= --with-wx-config=${WX_CONFIG} |
45 |
WX_CONF_ARGS= absolute |
44 |
|
46 |
USE_GL= glu |
|
|
47 |
USE_ICONV= yes |
48 |
USE_GETTEXT= yes |
45 |
USE_GMAKE= yes |
49 |
USE_GMAKE= yes |
46 |
GNU_CONFIGURE= yes |
50 |
GNU_CONFIGURE= yes |
47 |
CFLAGS+= -I${LOCALBASE}/include \ |
51 |
CONFIGURE_ARGS= --without-lua50 |
48 |
-I${LOCALBASE}/lib/wx/include/gtk2-unicode-release-2.8/ \ |
52 |
INSTALLS_ICONS= yes |
49 |
-I${LOCALBASE}/include/wx-2.8 \ |
53 |
MAKE_JOBS_SAFE= yes |
50 |
-L${LOCALBASE}/lib |
54 |
|
|
|
55 |
PLIST_SUB= VERSION="${PORTVERSION:R}" |
56 |
|
57 |
CFLAGS+= -I${LOCALBASE}/include |
58 |
CPPFLAGS+= -I${LOCALBASE}/include |
51 |
LDFLAGS+= -L${LOCALBASE}/lib |
59 |
LDFLAGS+= -L${LOCALBASE}/lib |
52 |
|
60 |
|
53 |
INSTALLS_ICONS= yes |
|
|
54 |
|
61 |
|
55 |
.include <bsd.port.pre.mk> |
62 |
PROJECTHOST= ffmpegsource |
|
|
63 |
FFMS_NAME= ffms |
64 |
FFMS_VERSION= 2.17 |
65 |
FFMS_DISTNAME= ${FFMS_NAME}-${FFMS_VERSION}-src |
66 |
FFMS_DISTFILE= ${FFMS_DISTNAME}.tar.bz2 |
67 |
FFMS_WRKSRC= ${WRKDIR}/${FFMS_DISTNAME} |
68 |
FFMS_CFLAGS= -I${FFMS_WRKSRC}/include |
69 |
FFMS_LIBS= ${FFMS_WRKSRC}/src/core/.libs/libffms2.a \ |
70 |
`pkg-config --libs libavcodec libavformat libswscale libavutil` |
71 |
|
72 |
.include <bsd.port.options.mk> |
56 |
|
73 |
|
57 |
.if defined(WITH_DEBUG) |
74 |
.if defined(WITH_DEBUG) |
58 |
CONFIGURE_ARGS+= --enable-debug --enable-debug-exceptions |
75 |
CONFIGURE_ARGS+= --enable-debug --enable-debug-exceptions |
59 |
.endif |
76 |
.endif |
|
|
77 |
|
60 |
.if defined(WITH_GCOV) |
78 |
.if defined(WITH_GCOV) |
61 |
CONFIGURE_ARGS+= --enable-gcov |
79 |
CONFIGURE_ARGS+= --enable-gcov |
|
|
80 |
LDFLAGS+= -fprofile-arcs |
62 |
WITH_PROFILE= yes |
81 |
WITH_PROFILE= yes |
63 |
.endif |
82 |
.endif |
|
|
83 |
|
64 |
.if defined(WITH_EFENCE) |
84 |
.if defined(WITH_EFENCE) |
|
|
85 |
LIB_DEPENDS+= efence.0:${PORTSDIR}/devel/ElectricFence |
65 |
CONFIGURE_ARGS+= --enable-efence |
86 |
CONFIGURE_ARGS+= --enable-efence |
66 |
WITH_PROFILE= yes |
87 |
WITH_PROFILE= yes |
67 |
.endif |
88 |
.endif |
|
|
89 |
|
68 |
.if defined(WITH_PROFILE) |
90 |
.if defined(WITH_PROFILE) |
69 |
CONFIGURE_ARGS+= --enable-profile |
91 |
CONFIGURE_ARGS+= --enable-profile |
70 |
.endif |
92 |
.endif |
71 |
.if defined(WITHOUT_NLS) |
93 |
|
72 |
CONFIGURE_ARGS+= --without-nls |
94 |
.if defined(WITH_ASS) |
|
|
95 |
LIB_DEPENDS+= ass.5:${PORTSDIR}/multimedia/libass |
73 |
.else |
96 |
.else |
74 |
USE_GETTEXT= yes |
97 |
CONFIGURE_ARGS+= --without-libass |
75 |
.endif |
|
|
76 |
.if defined(WITH_PORTAUDIO) |
77 |
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/portaudio-2.0.pc:${PORTSDIR}/audio/portaudio2 |
78 |
.endif |
98 |
.endif |
79 |
.if defined(WITH_PULSE) |
99 |
|
80 |
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/libpulse.pc:${PORTSDIR}/audio/pulseaudio |
100 |
.if defined(WITH_ALSA) |
|
|
101 |
LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib |
102 |
.else |
103 |
CONFIGURE_ARGS+= --without-alsa |
81 |
.endif |
104 |
.endif |
82 |
.if defined(WITH_OSS) |
105 |
|
83 |
BUILD_DEPENDS+= ossinfo:${PORTSDIR}/audio/oss |
106 |
.if defined(WITH_OPENAL) |
|
|
107 |
USE_OPENAL= yes |
108 |
.else |
109 |
CONFIGURE_ARGS+= --without-openal |
84 |
.endif |
110 |
.endif |
85 |
.if defined(WITH_PULSE) |
111 |
|
86 |
CONFIGURE_ARGS+= --with-player-audio=pulseaudio |
112 |
.if defined(WITH_PORTAUDIO) |
|
|
113 |
BROKEN= portaudio2 support is broken |
114 |
BUILD_DEPENDS+= portaudio>=19:${PORTSDIR}/audio/portaudio2 |
115 |
RUN_DEPENDS+= portaudio>=19:${PORTSDIR}/audio/portaudio2 |
116 |
CFLAGS+= -isystem ${LOCALBASE}/include/portaudio2 |
117 |
LDFLAGS+= -L${LOCALBASE}/lib/portaudio2 |
87 |
.else |
118 |
.else |
88 |
.if defined(WITH_OSS) |
119 |
CONFIGURE_ARGS+= --without-portaudio |
89 |
CONFIGURE_ARGS+= --with-player-audio=portaudio |
|
|
90 |
.endif |
120 |
.endif |
|
|
121 |
|
122 |
.if defined(WITH_PULSEAUDIO) |
123 |
LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio |
124 |
.else |
125 |
CONFIGURE_ARGS+= --without-pulseaudio |
91 |
.endif |
126 |
.endif |
92 |
.if !defined(WITHOUT_FFMPEG) |
127 |
|
93 |
BROKEN= ffmpeg support is broken |
128 |
.if defined(WITH_FFMPEG) |
94 |
BUILD_DEPENDS+= ffmpeg:${PORTSDIR}/multimedia/ffmpeg |
129 |
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg |
95 |
CONFIGURE_ARGS+= --with-provider-video=ffmpegsource --with-provider-audio=ffmpegsource |
130 |
CONFIGURE_ENV+= FFMS_CFLAGS="${FFMS_CFLAGS}" FFMS_LIBS="${FFMS_LIBS}" |
|
|
131 |
CONFIGURE_ARGS+= --with-provider-video=ffmpegsource \ |
132 |
--with-provider-audio=ffmpegsource |
133 |
CPPFLAGS+= ${FFMS_CFLAGS} |
134 |
.else |
135 |
CONFIGURE_ARGS+= --without-ffms |
96 |
.endif |
136 |
.endif |
|
|
137 |
|
97 |
.if defined(WITH_HUNSPELL) |
138 |
.if defined(WITH_HUNSPELL) |
98 |
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/hunspell.pc:${PORTSDIR}/textproc/hunspell |
139 |
LIB_DEPENDS+= hunspell-1.3.0:${PORTSDIR}/textproc/hunspell |
|
|
140 |
.else |
141 |
CONFIGURE_ARGS+= --without-hunspell |
99 |
.endif |
142 |
.endif |
|
|
143 |
|
100 |
.if defined(WITH_LUA) |
144 |
.if defined(WITH_LUA) |
101 |
USE_LUA= 5.1+ |
145 |
USE_LUA= 5.1+ |
102 |
CONFIGURE_ENV+= LUA_CFLAGS="-I${LUA_INCDIR}" LUA_LDFLAGS="-L${LUA_LIBDIR} -llua" |
146 |
CONFIGURE_ENV+= LUA_CFLAGS="-I${LUA_INCDIR}" \ |
|
|
147 |
LUA_LDFLAGS="-L${LUA_LIBDIR} -llua" |
148 |
CPPFLAGS+= -I${LUA_INCDIR} |
149 |
.else |
150 |
CONFIGURE_ARGS+= --without-lua |
103 |
.endif |
151 |
.endif |
104 |
.if defined(WITH_PERL) |
152 |
|
105 |
uSE_PERL5= yes |
153 |
# use multiple make jobs for FFMS_WRKSRC |
106 |
CONFIGURE_ARGS+= --with-perl |
154 |
.if !defined(DISABLE_MAKE_JOBS) |
|
|
155 |
_make_jobs= -j${MAKE_JOBS_NUMBER} |
156 |
.endif |
157 |
|
158 |
post-extract: |
159 |
.for i in ${FFMS_DISTFILE} |
160 |
@(cd ${WRKDIR} && ${BZIP2_CMD} ${EXTRACT_BEFORE_ARGS} \ |
161 |
${DISTDIR}/${i} ${EXTRACT_AFTER_ARGS}) |
162 |
.endfor |
163 |
|
164 |
post-patch: |
165 |
.for i in configure |
166 |
@${REINPLACE_CMD} -e \ |
167 |
'/opt_flag/s|-O2||' ${WRKSRC}/${i} |
168 |
.endfor |
169 |
.for i in automation/Makefile.in |
170 |
@${REINPLACE_CMD} -e \ |
171 |
's|@HAVE_AUTOMATION_TRUE@|| ; \ |
172 |
s|@HAVE_AUTOMATION_FALSE@|#| ; \ |
173 |
s|@HAVE_AUTO4_LUA_TRUE@|| ; \ |
174 |
s|@HAVE_AUTO4_LUA_FALSE@|#| ; \ |
175 |
s|@HAVE_AUTO3_LUA_TRUE@|#| ; \ |
176 |
s|@HAVE_AUTO3_LUA_FALSE|| ; \ |
177 |
/^install-data-am/s|: install|: # install|' ${WRKSRC}/${i} |
178 |
.endfor |
179 |
.for i in src/Makefile.in src/libauto3/Makefile.in |
180 |
@${REINPLACE_CMD} -e \ |
181 |
's|@HAVE_AUTO3_LUA_TRUE@|#| ; \ |
182 |
s|@HAVE_AUTO3_LUA_FALSE@||' ${WRKSRC}/${i} |
183 |
.endfor |
184 |
|
185 |
pre-configure: |
186 |
.if defined(WITH_FFMPEG) |
187 |
@(cd ${FFMS_WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./configure \ |
188 |
--disable-shared CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" \ |
189 |
CXXFLAGS="${CXXFLAGS}") |
190 |
.endif |
191 |
|
192 |
pre-build: |
193 |
.if defined(WITH_FFMPEG) |
194 |
@(cd ${FFMS_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \ |
195 |
${MAKE_FLAGS} ${MAKEFILE} ${_make_jobs} ${MAKE_ARGS} \ |
196 |
${ALL_TARGET}) |
197 |
.endif |
198 |
|
199 |
post-install: |
200 |
@(cd ${WRKSRC}/automation && ${SETENV} ${MAKE_ENV} ${GMAKE} \ |
201 |
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} \ |
202 |
install-nobase_automationDATA) |
203 |
.if !defined(NOPORTDOCS) |
204 |
@(cd ${WRKSRC}/automation && ${SETENV} ${MAKE_ENV} ${GMAKE} \ |
205 |
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} \ |
206 |
install-nobase_share_docDATA) |
107 |
.endif |
207 |
.endif |
108 |
|
208 |
|
109 |
.include <bsd.port.post.mk> |
209 |
.include <bsd.port.mk> |