# Created by: Leinier Cruz Salfran # $FreeBSD: head/multimedia/aegisub/Makefile 412592 2016-04-06 01:39:14Z jbeich $ PORTNAME= aegisub PORTVERSION= 3.2.2 PORTREVISION= 3 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/ MAINTAINER= ports@FreeBSD.org COMMENT= Cross-platform subtitle editor LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENCE 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 gmake iconv \ localbase pkgconfig tar:xz USE_GNOME= intltool USE_WX= 3.0 WX_CONF_ARGS= absolute USE_GL= glu USE_CSTD= c99 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} INSTALLS_ICONS= yes 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.3.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 .include .if ${COMPILER_TYPE} == "gcc" USE_CXXSTD= gnu++11 .if empty(CFLAGS:M-march=*) CFLAGS_i386= -march=pentium .endif .else USE_CXXSTD= c++11 CXXFLAGS+= -Wno-c++11-narrowing .if ${COMPILER_VERSION} < 34 BUILD_DEPENDS+= ${LOCALBASE}/lib/c++/libstdc++.so:devel/libc++ \ ${LOCALBASE}/bin/clang34:lang/clang34 CPP= clang-cpp34 CC= clang34 CXX= clang++34 CXXFLAGS+= -nostdinc++ -isystem ${LOCALBASE}/include/c++/v1 LDFLAGS+= -L${LOCALBASE}lib/c++ .endif .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 .if ${COMPILER_TYPE} == "gcc" @${FIND} ${WRKSRC} -name "*.h" | ${XARGS} ${REINPLACE_CMD} -e \ '/virtual /s|= default;$$|{ }|' .endif post-install: (cd ${WRKSRC} && ${COPYTREE_SHARE} \ automation/v4-docs ${STAGEDIR}${DOCSDIR}) @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/aegisub-* .include