Commit graph

142 commits

Author SHA1 Message Date
Amar Takhar
954e93f638 Add desktop support as specified in http://freedesktop.org/wiki/Specifications/desktop-entry-spec .
Originally committed to SVN as r2668.
2009-01-07 05:27:16 +00:00
Amar Takhar
d5f5e66e33 * Split HAVE_FFMPEG into HAVE_FFMPEG / HAVE_PROVIDER_FFMPEG
* s/HAVE_FFMPEGSOURCE/HAVE_PROVIDER_FFMPEGSOURCE/
* Add FFMPEG_CFLAGS / FFMPEG_LDFLAGS as configure env vars for FFMPEG
  detection.

Originally committed to SVN as r2664.
2009-01-06 13:59:15 +00:00
Amar Takhar
7e764f2ab1 Remove old legacy code: don't set LUA_CFLAGS and LUA50_CFLAGS to $CPPFLAGS.
Originally committed to SVN as r2660.
2009-01-06 11:20:56 +00:00
Amar Takhar
675c4caa09 Add multiple version support, everything is now suffixed with MAJOR.MINOR, this
will allow users on unix to install and operate different versions of aegisub a$
the same time.  Note: auto3 linking is broken it will be fixed in the next
commit as it's unrelated to these changes.

Originally committed to SVN as r2659.
2009-01-06 10:44:49 +00:00
Amar Takhar
6d172232c6 Comments start with a '#' not '*'.
Originally committed to SVN as r2655.
2009-01-06 03:48:36 +00:00
Amar Takhar
0d84a87098 Don't traverse m4macros/ and add the files to EXTRA_DIST in ./Makefile.am for speed.
Originally committed to SVN as r2652.
2009-01-05 11:51:56 +00:00
Amar Takhar
15239a8409 That's '! test' not '!test'.
Originally committed to SVN as r2649.
2009-01-05 11:40:52 +00:00
Amar Takhar
25ca1497ab * Add support for setting the default A/V provider and audio player using
--with-provider-(video|audio) and --with-player-audio.
* Cleanup --help alignment
* Print default values at the end of configure
* Remove :'s in end status section headings in configure.

Originally committed to SVN as r2648.
2009-01-05 11:07:14 +00:00
Amar Takhar
bf09c76081 Remove posix dir and 'libposix' and create 'libresrc' which includes
resources from res.rc and and future resources required.

Originally committed to SVN as r2631.
2009-01-04 09:01:49 +00:00
Amar Takhar
0763541848 Change how configuration works.
* move win32/config0.h -> config/config_windows0.h
  * move win32/stdint.h -> msvc/stdint.h
  * move posix/defines.h -> config/config_unix.h
  * add config.h - brings in config_(windows|unix).h as required
  * add config.h to *.cpp
  * Self-contain FFmpegSource2 with required function defines wrapped with
    __UNIX__ instead of the now removed defines.h.
  * Edit aegisub_vs2008.vcproj to remove explicit inclusion of config.h, also
    change VCPreBuildEventTool to create windows_config.h from
    windows_config0.h.  Add msvc to include path.
  * Change configure to create ./acconf.h instead of posix/acconf.h

This will allow us to create a more standard and platform agnostic way of
configuration aegsisub during build time.

Originally committed to SVN as r2621.
2009-01-04 06:31:48 +00:00
Amar Takhar
eb328262c3 Print some useful messages at the end of configure: Install prefix, SVN
Revision, Debug (yes+flags/no), CPPFLAGS, LDFLAGS.  Hopefully this will stop
any wonky settings from sliding in without being noticed.

Originally committed to SVN as r2620.
2009-01-04 04:48:55 +00:00
Amar Takhar
c5ccada420 if $prefix = "NONE" then set $prefix to $ac_default_prefix. I didn't realise
at the time $prefix isn't populated unless --prefix is provided.  This broke
paths for any situation where --prefix wasn't provided.  On Linux wx can figure
out the install prefix automatically at the moment we use SetInstallPrefix in w
to set the prefix which was being set to 'NONE' if --prefix wasn't used.
(broken locale on linux reported by tomman)

Originally committed to SVN as r2619.
2009-01-04 04:38:32 +00:00
Amar Takhar
478b3b6996 Add BUILD_CREDIT support using --with-build-credit which shows up in the
titlebar (I didn't want to add this but it keeps coming up.)  I also hope it is
not abused by setting usernames during package builds for distributions.  It
should only be used for personal builds only or shared builds by individuals.

Originally committed to SVN as r2614.
2009-01-02 09:13:22 +00:00
Amar Takhar
9cd72c21c9 Set BUILD_SVN_REVISION which fixes saving config.dat between instances. This
uses 'svnversion $srcdir' for svn builds, and the file svn_revision which is
supplied with tarballs.

Originally committed to SVN as r2612.
2009-01-02 08:48:13 +00:00
Amar Takhar
d935c3fdd3 Add INSTALL_PREFIX to config.h, this will be used to add proper relocation
support in UNIX.  Windows and OS X are done differently.

Originally committed to SVN as r2605.
2009-01-01 12:58:47 +00:00
Amar Takhar
85e91c8a98 Fix --help message alignment (annoying)
Originally committed to SVN as r2604.
2009-01-01 12:47:20 +00:00
Amar Takhar
8a778ffd82 Fix --disable-check-wx-opengl --disable-check-wx-stc which forces opengl/stc
support on.  These two checks take a long time, before you use this know what
you are doing!

Originally committed to SVN as r2603.
2009-01-01 12:43:17 +00:00
Amar Takhar
1f19d5fc8b Move AC_ARG_ENABLE(debug.. to the very end, adding it before slows down
configure immensly.  If anyone wants to use it during configure they should add
-g to their CXXFLAGS.

Originally committed to SVN as r2602.
2009-01-01 12:32:58 +00:00
Amar Takhar
5ba0f587d8 Remove a couple commented lines that are not needed anymore.
Originally committed to SVN as r2601.
2009-01-01 12:30:00 +00:00
Amar Takhar
ebc21524cf I'm not sure how long this bug has been around, probably several months if not
from around r2140. An artifact from the very  first commit of the new build
system was wiping CPPFLAGS, which removed -g if --enable-debug was used.  I
didn't notice it locally as I was setting the flag differently.  I wonder how
it went on this long without anyone noticing, next: useful crashdumps for all.

Originally committed to SVN as r2599.
2009-01-01 10:34:00 +00:00
Amar Takhar
946acb99dd The check for enable_check_wx_stc should be = 'no' no != 'no'
Originally committed to SVN as r2597.
2009-01-01 05:48:49 +00:00
Amar Takhar
cab9ba86b0 Fix StyledTextCtrl detection support, no idea how long this has been broken for.
Originally committed to SVN as r2596.
2009-01-01 05:41:07 +00:00
Amar Takhar
1fd3ffc313 Add 'libosxutil' which gives us functions to locate paths within bundles, for
now this is used by libass to load fontconfig's fonts.conf.

Originally committed to SVN as r2585.
2008-12-31 09:20:50 +00:00
Amar Takhar
93002cf4a8 * s/SVN_VERSION/SVN_REVISION/ in configure.in
* Prefix PLIST_ to swappable variables in Plist.info
* Add scripts/osx-bundle.sed.in which swaps the variables in Info.plist
* Split AC_OUTPUT into AC_CONFIG_FILES for Makefiles/config scripts
  (osx-bundle.sed.in) and add AC_OUTPUT below.
* svn:ignore property on . and scripts/
* Fix bug in Info.plist (---> to --> for ending XML comment)

Originally committed to SVN as r2581.
2008-12-31 05:52:52 +00:00
Amar Takhar
c03b3f4069 * Get SVN_VERSION properly.
* Add BUILD_DATE

Originally committed to SVN as r2578.
2008-12-31 05:07:58 +00:00
Amar Takhar
f838d6172d Set with_provider_ffmpegsource="no" if libpostproc is not detected.
Originally committed to SVN as r2536.
2008-12-27 11:45:38 +00:00
Amar Takhar
85f0e5e7f0 Add --enable-perl-console, enabled by default (untested)
Originally committed to SVN as r2535.
2008-12-27 11:42:12 +00:00
Amar Takhar
e7f057a2b1 Instead of checking if (perl|ruby)_disabled exists, check with_(perl|ruby) =
"no".  This is probably expected behaviour as the --with-XXX=BLAH flags will
pass along BLAH.  Most of the time if users want it turned on they'll set it to
something else other than no. (they shouldn't though)

Originally committed to SVN as r2534.
2008-12-27 10:03:37 +00:00
Amar Takhar
c0374c55d4 Set with_cv_(perl|ruby) = no if --without-(perl|ruby) is set.
Originally committed to SVN as r2533.
2008-12-27 09:42:31 +00:00
Amar Takhar
bdbf8f4fe0 Finally use (fontconfig|freetype|perl|pkgconfig|ruby)_required_version to check
against required versions.  lua|portaudio|pulseaudio|ffmpeg are not used yet as
they require compile tests.

Originally committed to SVN as r2532.
2008-12-27 09:32:47 +00:00
Amar Takhar
04047e8f95 Add detection for universalchardet config detection. This isn't used or hooked
up at the moment but will be eventually.

Originally committed to SVN as r2506.
2008-12-17 03:52:33 +00:00
Amar Takhar
bcb5258d7a Fix FFMPEG/Provider support (PART 2)
Originally committed to SVN as r2504.
2008-12-16 03:18:02 +00:00
Amar Takhar
07b2eeeb42 Fix versioning and add in a 'revision' version (set to 6)
Originally committed to SVN as r2503.
2008-12-16 02:17:29 +00:00
Amar Takhar
42b57fb526 * Fix those annoying _cv_ cache warning messages.
Originally committed to SVN as r2502.
2008-12-16 02:03:01 +00:00
Amar Takhar
f36986a072 * Seperate FFMPEG support and FFMPEG/FFmpegSource Provider detection. (PART 1)
* Fix CSRI detection.
* Fix capitalisation on ending support status.
* s/ANCIENT/OLD/ tag for older FFMPEG headers.
* Fix --enable-old-ffmpeg to work as advertised.

Originally committed to SVN as r2501.
2008-12-16 01:59:38 +00:00
Amar Takhar
2b13dfbb43 Add support for FFmpegSource2, it's enabled by default if libpostproc is there.
Originally committed to SVN as r2425.
2008-10-28 02:18:14 +00:00
Karl Blomster
7c970aa91b whoops, bogus description of define in last commit. also r2400 GET.
Originally committed to SVN as r2400.
2008-09-28 13:06:15 +00:00
Karl Blomster
aa539a5e9e add --enable-old-ffmpeg switch to configure; using it changes the includes to use ffmpeg headers from the old locations (ffmpeg/libav*.h).
Originally committed to SVN as r2399.
2008-09-28 13:04:57 +00:00
Amar Takhar
9826d5bd58 Set GETTEXT_PACKAGE to 'aegisub' from 'aegisub21', I want to handle this
a better way but for now the old way is just fine.  Bug #761

Originally committed to SVN as r2295.
2008-08-04 03:05:07 +00:00
Amar Takhar
ab0d5377e8 Add wxGLContext to the wxWdiget OpenGL 'check'.
Originally committed to SVN as r2247.
2008-07-13 18:42:48 +00:00
Amar Takhar
25ece3ab55 sigh, swap || for &&.
Originally committed to SVN as r2243.
2008-07-05 18:51:30 +00:00
Amar Takhar
ef481e8045 GLU is included with -framework OpenGL, avoid the failure message if
$build_darwin is set.

Originally committed to SVN as r2242.
2008-07-05 18:48:29 +00:00
Karl Blomster
c4285b87fd revert r2240 changes to configure.in
Originally committed to SVN as r2241.
2008-07-05 13:01:39 +00:00
Niels Martin Hansen
923b347356 Some more checking in PCM provider. Had apparently missed a way EnsureRangeAceesibleble() could fail. This means of failure should no longer be possible.
Originally committed to SVN as r2240.
2008-07-05 12:50:49 +00:00
Amar Takhar
d14d6b4b36 use the AC_C_BIGENDIAN macro to set HAVE_BIG_ENDIAN, HAVE_LITTLE_ENDIAN,
HAVE_DYNAMIC_ENDIAN and HAVE_UNIVERSAL_ENDIAN (universal binaries for the mac).$
The default is to use HAVE_DYNAMIC_ENDIAN in the code if it is not BIG or
LITTLE, HAVE_UNIVERSAL_ENDIAN is added only for clarity in config.h.

Originally committed to SVN as r2229.
2008-07-04 00:41:28 +00:00
Niels Martin Hansen
ddaf85f650 s/Audio Providers/Audio Players/
Originally committed to SVN as r2213.
2008-06-29 18:56:46 +00:00
Amar Takhar
f1c89cb4bc Add a check for OpenGLU. bug #720
Originally committed to SVN as r2207.
2008-06-21 16:14:13 +00:00
Amar Takhar
a7e8d0e535 Fix the lua(50|51)_disabled variables so it shows up properly in the
configure status block.

Originally committed to SVN as r2206.
2008-06-16 04:50:48 +00:00
Amar Takhar
b9d8f72838 Remove '2.1' from automationdir, it's a legacy artifact.
Originally committed to SVN as r2203.
2008-06-15 13:36:30 +00:00
Amar Takhar
74913197fb Set AM_CONDITIONAL(HAVE_FFMPEG) to test for ffmpeg = yes versus ffmpeg != 'no'
which can be touchy.  This really needs a run-through to make sure it's
consistent in the entire script.

Originally committed to SVN as r2193.
2008-05-15 03:06:44 +00:00