freebsd-ports/multimedia/aegisub/Makefile

93 lines
2.8 KiB
Makefile
Raw Normal View History

# Created by: Leinier Cruz Salfran <salfrancl@yahoo.es>
PORTNAME= aegisub
PORTVERSION= 3.2.2
PORTREVISION= 52
CATEGORIES= multimedia
MASTER_SITES= http://ftp.aegisub.org/pub/archives/releases/source/ \
ftp://ftp.aegisub.org/pub/archives/releases/source/ \
ftp://ftp2.aegisub.org/pub/archives/releases/source/ \
https://github.com/Aegisub/Aegisub/releases/download/v${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Cross-platform subtitle editor
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENCE
BROKEN_aarch64= Fails to compile: no support for this architecture (yet)
NOT_FOR_ARCHS= powerpc64 powerpc64le
2019-06-25 14:27:07 +02:00
NOT_FOR_ARCHS_REASON_powerpc64= No support for PowerPC 64 bit mode
NOT_FOR_ARCHS_REASON_powerpc64le= No support for PowerPC 64 bit mode
2019-06-25 14:27:07 +02:00
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \
libicui18n.so:devel/icu \
libass.so:multimedia/libass \
libfontconfig.so:x11-fonts/fontconfig
USES= compiler:c++11-lib desktop-file-utils gettext gl gmake gnome \
iconv localbase pkgconfig tar:xz
USE_GNOME= intltool
USE_WX= 3.0
WX_CONF_ARGS= absolute
USE_GL= gl
USE_CSTD= c99
USE_CXXSTD= c++11
multimedia/aegisub: unbreak with ICU 61 libaegisub/common/character_count.cpp:41:12: error: use of undeclared identifier 'BreakIterator'; did you mean 'UBreakIterator'? bi.reset(BreakIterator::createCharacterInstance(Locale::getDefault(), status)); ^~~~~~~~~~~~~ UBreakIterator /usr/local/include/unicode/ubrk.h:28:35: note: 'UBreakIterator' declared here typedef struct UBreakIterator UBreakIterator; ^ libaegisub/common/character_count.cpp:41:12: error: incomplete type 'UBreakIterator' named in nested name specifier bi.reset(BreakIterator::createCharacterInstance(Locale::getDefault(), status)); ^~~~~~~~~~~~~~~ /usr/local/include/unicode/ubrk.h:28:20: note: forward declaration of 'UBreakIterator' typedef struct UBreakIterator UBreakIterator; ^ libaegisub/common/character_count.cpp:41:51: error: use of undeclared identifier 'Locale'; did you mean 'icu::Locale'? bi.reset(BreakIterator::createCharacterInstance(Locale::getDefault(), status)); ^~~~~~ icu::Locale /usr/local/include/unicode/locid.h:188:20: note: 'icu::Locale' declared here class U_COMMON_API Locale : public UObject { ^ libaegisub/common/character_count.cpp:63:46: error: use of undeclared identifier 'BreakIterator'; did you mean 'UBreakIterator'? for (auto end = character_bi.next(); end != BreakIterator::DONE; pos = end, end = character_bi.next()) { ^~~~~~~~~~~~~ UBreakIterator /usr/local/include/unicode/ubrk.h:28:35: note: 'UBreakIterator' declared here typedef struct UBreakIterator UBreakIterator; ^ libaegisub/common/character_count.cpp:63:46: error: incomplete type 'UBreakIterator' named in nested name specifier for (auto end = character_bi.next(); end != BreakIterator::DONE; pos = end, end = character_bi.next()) { ^~~~~~~~~~~~~~~ /usr/local/include/unicode/ubrk.h:28:20: note: forward declaration of 'UBreakIterator' typedef struct UBreakIterator UBreakIterator; ^ libaegisub/common/character_count.cpp:148:14: error: use of undeclared identifier 'BreakIterator'; did you mean 'UBreakIterator'? if (end == BreakIterator::DONE) ^~~~~~~~~~~~~ UBreakIterator /usr/local/include/unicode/ubrk.h:28:35: note: 'UBreakIterator' declared here typedef struct UBreakIterator UBreakIterator; ^ libaegisub/common/character_count.cpp:148:14: error: incomplete type 'UBreakIterator' named in nested name specifier if (end == BreakIterator::DONE) ^~~~~~~~~~~~~~~ /usr/local/include/unicode/ubrk.h:28:20: note: forward declaration of 'UBreakIterator' typedef struct UBreakIterator UBreakIterator; ^ https://ssl.icu-project.org/trac/changeset/40705 PR: 227042 Reported by: antoine (via exp-run)
2018-04-04 11:46:40 +02:00
CPPFLAGS+= -DU_USING_ICU_NAMESPACE=1
LDFLAGS+= -Wl,--as-needed # freetype
GNU_CONFIGURE= yes
CONFIGURE_ENV= ICONV_LIBS="${ICONV_LIB}" PTHREAD_LIBS="-pthread" \
agi_cv_with_iconv=yes
CONFIGURE_ARGS= --disable-compiler-flags \
--disable-gcc-prec \
--disable-sanity-checks \
--disable-update-checker \
--without-libc++ \
${ICONV_CONFIGURE_ARG}
PLIST_SUB= VERSION="${PORTVERSION:R}"
OPTIONS_DEFINE= ALSA DOCS FFMPEG FFTW HUNSPELL OPENAL PORTAUDIO \
PULSEAUDIO
OPTIONS_DEFAULT= FFMPEG FFTW HUNSPELL PULSEAUDIO
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
ALSA_CONFIGURE_OFF= --without-alsa
FFMPEG_LIB_DEPENDS= libffms2.so:multimedia/ffms2
FFMPEG_CONFIGURE_OFF= --without-ffms
FFTW_LIB_DEPENDS= libfftw3.so:math/fftw3
FFTW_CONFIGURE_OFF= --without-fftw3
HUNSPELL_LIB_DEPENDS= libhunspell-1.7.so:textproc/hunspell
HUNSPELL_CONFIGURE_OFF= --without-hunspell
OPENAL_USES= openal
OPENAL_CONFIGURE_OFF= --without-openal
PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio
PORTAUDIO_CONFIGURE_OFF=\
--without-portaudio
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
PULSEAUDIO_CONFIGURE_OFF=\
--without-libpulse
# src/audio_display.o: undefined reference to symbol '__atomic_load_8@@LIBATOMIC_1.0'
.if empty(CFLAGS:M-march=*)
CFLAGS+= ${CFLAGS_${ARCH}_${CHOSEN_COMPILER_TYPE}}
CFLAGS_i386_gcc= -march=pentium
.endif
post-patch:
@${REINPLACE_CMD} -e \
's| -O3||' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|".*build/|"./build/|' ${WRKSRC}/build/version.sh
@${REINPLACE_CMD} -e \
's|^CC=|CC?=| ; \
/^CCOPT_/s|=.*|=| ; \
/^CCDEBUG/s|=.*|=|' ${WRKSRC}/vendor/luajit/src/Makefile
post-install:
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
automation/v4-docs ${STAGEDIR}${DOCSDIR})
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/aegisub-*
.include <bsd.port.mk>