--- aegisub.orig/Makefile 2011-09-08 07:24:47.000000000 +0400 +++ aegisub/Makefile 2011-09-08 07:42:16.000000000 +0400 @@ -9,8 +9,8 @@ PORTNAME= aegisub PORTVERSION= 2.1.8 -PORTREVISION= 17 -CATEGORIES= x11 multimedia +PORTREVISION= 4 +CATEGORIES= multimedia MASTER_SITES= http://ftp.aegisub.org/pub/releases/ \ http://ftp2.aegisub.org/pub/releases/ \ ftp://ftp.aegisub.org/pub/releases/ \ @@ -19,40 +19,41 @@ MAINTAINER= salfrancl@yahoo.es COMMENT= Aegisub Project is a cross-platform subtitle editor -BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:${PORTSDIR}/x11-fonts/fontconfig +LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \ + fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig -USE_GNOME= pkgconfig intlhack +USE_GNOME= pkgconfig intlhack USE_GMAKE= yes GNU_CONFIGURE= yes -USE_FREETYPE2= yes USE_ICONV= yes -USE_WX= 2.8 +USE_WX= 2.8+ WX_COMPS= wx contrib WX_UNICODE= yes INSTALLS_ICONS= yes +USE_GL= gl glu -CFLAGS= -I${LOCALBASE}/include \ - -I${LOCALBASE}/lib/wx/include/gtk2-unicode-release-2.8/ \ - -I${LOCALBASE}/include/wx-2.8 \ - -L${LOCALBASE}/lib -LDFLAGS= -L${LOCALBASE}/lib -CONFIGURE_ENV= CFLAGS="${CFLAGS}" \ - LDFLAGS="${LDFLAGS}" +CFLAGS+= -I${LOCALBASE}/include \ + -I${LOCALBASE}/lib/wx/include/gtk2-unicode-release-2.8/ \ + -I${LOCALBASE}/include/wx-2.8 \ + -L${LOCALBASE}/lib +LDFLAGS+= -L${LOCALBASE}/lib +CONFIGURE_ENV= LDFLAGS="${LDFLAGS}" CONFIGURE_ARGS= --with-wx-config=${WX_CONFIG} OPTIONS= DEBUG "Enable debug" Off \ PROFILE "Enable profiling" Off \ - GCOV "Enable GCOV (require profiling)" Off \ - EFENCE "Enable Electric Fence (require profiling)" Off \ NLS "Enable Native Language Support" On \ PORTAUDIO "Enable PortAudio2 audio provider (only one)" Off \ PULSE "Enable PulseAudio audio provider (only one)" On \ OSS "Enable OSS audio player (require portaudio)" Off \ - FFMPEG "Enable FFMPEG video provider" On \ - HUNSPELL "Hungarian Spell" On \ + HUNSPELL "Support for hunspell spellchecker" On \ LUA "LUA Scripting" On \ PERL "Perl Scripting" On +# Doesn't build +# GCOV "Enable GCOV (require profiling)" Off \ +# EFENCE "Enable Electric Fence (require profiling)" Off \ +# FFMPEG "Enable FFMPEG video provider (broken)" Off \ .include @@ -61,71 +62,90 @@ .else CONFIGURE_ARGS+= --disable-debug --disable-debug-exceptions .endif -.if defined(WITH_GCOV) -CONFIGURE_ARGS+= --enable-gcov -WITH_PROFILE= yes -.else -CONFIGURE_ARGS+= --disable-gcov -.endif -.if defined(WITH_EFENCE) -CONFIGURE_ARGS+= --enable-efence -WITH_PROFILE= yes -LIB_DEPENDS+= efence.0:${PORTSDIR}/devel/ElectricFence -.else -CONFIGURE_ARGS+= --disable-efence -.endif + +#.if defined(WITH_GCOV) +#BROKEN= does not build with gcov +#CONFIGURE_ARGS+= --enable-gcov +#WITH_PROFILE= yes +#.else +#CONFIGURE_ARGS+= --disable-gcov +#.endif + +#.if defined(WITH_EFENCE) +#BROKEN= does not build with efence +#CONFIGURE_ARGS+= --enable-efence +#WITH_PROFILE= yes +#LIB_DEPENDS+= efence.0:${PORTSDIR}/devel/ElectricFence +#.else +#CONFIGURE_ARGS+= --disable-efence +#.endif + .if defined(WITH_PROFILE) CONFIGURE_ARGS+= --enable-profile .else CONFIGURE_ARGS+= --disable-profile .endif + .if defined(WITHOUT_NLS) CONFIGURE_ARGS+= --without-nls .else USE_GETTEXT= yes .endif + .if defined(WITH_PORTAUDIO) BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/portaudio-2.0.pc:${PORTSDIR}/audio/portaudio2 .else CONFIGURE_ARGS+= --without-portaudio .endif + .if defined(WITH_PULSE) BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/libpulse.pc:${PORTSDIR}/audio/pulseaudio .else CONFIGURE_ARGS+= --without-pulseaudio .endif + .if defined(WITH_OSS) BUILD_DEPENDS+= ossinfo:${PORTSDIR}/audio/oss .else CONFIGURE_ARGS+= --without-oss .endif + .if defined(WITH_PULSE) CONFIGURE_ARGS+= --with-player-audio=pulseaudio .else -.if defined(WITH_OSS) +. if defined(WITH_OSS) CONFIGURE_ARGS+= --with-player-audio=portaudio +. endif .endif -.endif -.if defined(WITH_FFMPEG) -BUILD_DEPENDS+= ffmpeg:${PORTSDIR}/multimedia/ffmpeg -CONFIGURE_ARGS+= --with-provider-video=ffmpegsource --with-provider-audio=ffmpegsource -.endif + +#.if defined(WITH_FFMPEG) +#BROKEN= does not build with ffmpeg +#BUILD_DEPENDS+= ffmpeg:${PORTSDIR}/multimedia/ffmpeg +#CONFIGURE_ARGS+= --with-provider-video=ffmpegsource --with-provider-audio=ffmpegsource +#.endif + .if defined(WITH_HUNSPELL) -BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/hunspell.pc:${PORTSDIR}/hungarian/hunspell +BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/hunspell.pc:${PORTSDIR}/textproc/hunspell .else CONFIGURE_ARGS+= --without-hunspell .endif + .if defined(WITH_LUA) USE_LUA= 5.1+ CONFIGURE_ENV+= LUA_CFLAGS="-I${LUA_INCDIR}" LUA_LDFLAGS="-L${LUA_LIBDIR} -llua" +PLIST_SUB+= LUA="" .else CONFIGURE_ARGS+= --without-lua --without-lua50 +PLIST_SUB+= LUA="@comment " .endif + .if defined(WITH_PERL) USE_PERL5= yes CONFIGURE_ARGS+= --with-perl +PLIST_SUB+= PERL="" .else CONFIGURE_ARGS+= --without-perl +PLIST_SUB+= PERL="@comment " .endif .include diff -ruN aegisub.orig/pkg-plist aegisub/pkg-plist --- aegisub.orig/pkg-plist 2011-09-08 07:24:47.000000000 +0400 +++ aegisub/pkg-plist 2011-09-07 08:31:12.000000000 +0400 @@ -1,38 +1,38 @@ bin/aegisub-2.1 -share/aegisub/2.1/automation/autoload/cleantags-autoload.lua -share/aegisub/2.1/automation/autoload/kara-templater.lua -share/aegisub/2.1/automation/autoload/karaoke-auto-leadin.lua -share/aegisub/2.1/automation/autoload/macro-1-edgeblur.lua -share/aegisub/2.1/automation/autoload/macro-1p-edgeblur.pl -share/aegisub/2.1/automation/autoload/macro-2-mkfullwitdh.lua -share/aegisub/2.1/automation/include/Aegisub.pm -share/aegisub/2.1/automation/include/Aegisub/PerlConsole.pm -share/aegisub/2.1/automation/include/Aegisub/Progress.pm -share/aegisub/2.1/automation/include/Aegisub/Script.pm -share/aegisub/2.1/automation/include/Auto4Utils.pm -share/aegisub/2.1/automation/include/cleantags.lua -share/aegisub/2.1/automation/include/karaskel-adv.lua -share/aegisub/2.1/automation/include/karaskel-auto4.lua -share/aegisub/2.1/automation/include/karaskel-base.lua -share/aegisub/2.1/automation/include/karaskel.lua -share/aegisub/2.1/automation/include/unicode.lua -share/aegisub/2.1/automation/include/utils-auto4.lua -share/aegisub/2.1/automation/include/utils.lua +%%LUA%%%%DATADIR%%/2.1/automation/autoload/cleantags-autoload.lua +%%LUA%%%%DATADIR%%/2.1/automation/autoload/kara-templater.lua +%%LUA%%%%DATADIR%%/2.1/automation/autoload/karaoke-auto-leadin.lua +%%LUA%%%%DATADIR%%/2.1/automation/autoload/macro-1-edgeblur.lua +%%PERL%%%%DATADIR%%/2.1/automation/autoload/macro-1p-edgeblur.pl +%%LUA%%%%DATADIR%%/2.1/automation/autoload/macro-2-mkfullwitdh.lua +%%DATADIR%%/2.1/automation/include/Aegisub.pm +%%PERL%%%%DATADIR%%/2.1/automation/include/Aegisub/PerlConsole.pm +%%DATADIR%%/2.1/automation/include/Aegisub/Progress.pm +%%DATADIR%%/2.1/automation/include/Aegisub/Script.pm +%%DATADIR%%/2.1/automation/include/Auto4Utils.pm +%%LUA%%%%DATADIR%%/2.1/automation/include/cleantags.lua +%%LUA%%%%DATADIR%%/2.1/automation/include/karaskel-adv.lua +%%LUA%%%%DATADIR%%/2.1/automation/include/karaskel-auto4.lua +%%LUA%%%%DATADIR%%/2.1/automation/include/karaskel-base.lua +%%LUA%%%%DATADIR%%/2.1/automation/include/karaskel.lua +%%LUA%%%%DATADIR%%/2.1/automation/include/unicode.lua +%%LUA%%%%DATADIR%%/2.1/automation/include/utils-auto4.lua +%%LUA%%%%DATADIR%%/2.1/automation/include/utils.lua share/applications/aegisub.desktop -share/doc/aegisub/2.1/automation3.txt -share/doc/aegisub/2.1/demos/future-windy-blur.lua -share/doc/aegisub/2.1/demos/perl-console.pl -share/doc/aegisub/2.1/demos/raytracer-test1.ass -share/doc/aegisub/2.1/demos/raytracer.lua -share/doc/aegisub/2.1/v4-docs/basic-function-interface.txt -share/doc/aegisub/2.1/v4-docs/configuration-dialogs.txt -share/doc/aegisub/2.1/v4-docs/file-streams.txt -share/doc/aegisub/2.1/v4-docs/misc.txt -share/doc/aegisub/2.1/v4-docs/overview.txt -share/doc/aegisub/2.1/v4-docs/perl-api.txt -share/doc/aegisub/2.1/v4-docs/progress-reporting.txt -share/doc/aegisub/2.1/v4-docs/subtitle-data.txt -share/doc/aegisub/2.1/v4-docs/template-scripting-ideas.ass +%%DOCSDIR%%/2.1/automation3.txt +%%LUA%%%%DOCSDIR%%/2.1/demos/future-windy-blur.lua +%%PERL%%%%DOCSDIR%%/2.1/demos/perl-console.pl +%%DOCSDIR%%/2.1/demos/raytracer-test1.ass +%%LUA%%%%DOCSDIR%%/2.1/demos/raytracer.lua +%%DOCSDIR%%/2.1/v4-docs/basic-function-interface.txt +%%DOCSDIR%%/2.1/v4-docs/configuration-dialogs.txt +%%DOCSDIR%%/2.1/v4-docs/file-streams.txt +%%DOCSDIR%%/2.1/v4-docs/misc.txt +%%DOCSDIR%%/2.1/v4-docs/overview.txt +%%PERL%%%%DOCSDIR%%/2.1/v4-docs/perl-api.txt +%%DOCSDIR%%/2.1/v4-docs/progress-reporting.txt +%%DOCSDIR%%/2.1/v4-docs/subtitle-data.txt +%%DOCSDIR%%/2.1/v4-docs/template-scripting-ideas.ass share/icons/hicolor/16x16/apps/aegisub.png share/icons/hicolor/22x22/apps/aegisub.png share/icons/hicolor/24x24/apps/aegisub.png @@ -57,16 +57,28 @@ share/locale/vi/LC_MESSAGES/aegisub21.mo share/locale/zh_CN/LC_MESSAGES/aegisub21.mo share/locale/zh_TW/LC_MESSAGES/aegisub21.mo -@dirrmtry share/applications +@dirrmtry share/icons/hicolor/64x64/apps +@dirrmtry share/icons/hicolor/64x64 +@dirrmtry share/icons/hicolor/48x48/apps +@dirrmtry share/icons/hicolor/48x48 +@dirrmtry share/icons/hicolor/32x32/apps +@dirrmtry share/icons/hicolor/32x32 +@dirrmtry share/icons/hicolor/24x24/apps +@dirrmtry share/icons/hicolor/24x24 +@dirrmtry share/icons/hicolor/22x22/apps +@dirrmtry share/icons/hicolor/22x22 +@dirrmtry share/icons/hicolor/16x16/apps +@dirrmtry share/icons/hicolor/16x16 @dirrmtry share/icons/hicolor -@dirrmtry share/locale -@dirrmtry share/aegisub/2.1/automation/autoload -@dirrmtry share/aegisub/2.1/automation/include/Aegisub -@dirrmtry share/aegisub/2.1/automation/include -@dirrmtry share/aegisub/2.1/automation -@dirrmtry share/aegisub/2.1 -@dirrmtry share/aegisub -@dirrmtry share/doc/aegisub/2.1/demos -@dirrmtry share/doc/aegisub/2.1/v4-docs -@dirrmtry share/doc/aegisub/2.1 -@dirrmtry share/doc/aegisub +@dirrmtry share/icons +@dirrm %%DOCSDIR%%/2.1/v4-docs +@dirrm %%DOCSDIR%%/2.1/demos +@dirrm %%DOCSDIR%%/2.1 +@dirrm %%DOCSDIR%% +@dirrmtry share/applications +@dirrm %%DATADIR%%/2.1/automation/include/Aegisub +@dirrm %%DATADIR%%/2.1/automation/include +@dirrm %%DATADIR%%/2.1/automation/autoload +@dirrm %%DATADIR%%/2.1/automation +@dirrm %%DATADIR%%/2.1 +@dirrm %%DATADIR%%