Skip to content

Commit

Permalink
Add build system
Browse files Browse the repository at this point in the history
  • Loading branch information
cantabile committed Dec 16, 2014
1 parent 46f6ab3 commit f0d2abc
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .gitignore
@@ -0,0 +1,27 @@
orig/
*.zip
releases/
test stuff/
*.o
*.la
*.lo
*.so
*.dll
.libs
Makefile
Makefile.in
aclocal.m4
autom4te.cache
compile
config.guess
config.log
config.status
config.sub
configure
depcomp
install-sh
libtool
ltmain.sh
missing
.deps/
.dirstamp
11 changes: 11 additions & 0 deletions Makefile.am
@@ -0,0 +1,11 @@
AM_CXXFLAGS = -O2 -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wshadow

AM_CPPFLAGS = $(VapourSynth_CFLAGS) $(SNDFILE_CFLAGS)

lib_LTLIBRARIES = libdamb.la

libdamb_la_SOURCES = src/damb.cpp

libdamb_la_LDFLAGS = -no-undefined -avoid-version $(PLUGINLDFLAGS)

libdamb_la_LIBADD = $(SNDFILE_LIBS)
3 changes: 3 additions & 0 deletions autogen.sh
@@ -0,0 +1,3 @@
#!/bin/sh

autoreconf --verbose --install --force
72 changes: 72 additions & 0 deletions configure.ac
@@ -0,0 +1,72 @@
AC_INIT([MVTools], [1], [https://github.com/dubhater/vapoursynth-mvtools/issues], [MVTools], [https://github.com/dubhater/vapoursynth-mvtools/])

: ${CXXFLAGS=""}

AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-xz subdir-objects no-define])
AM_SILENT_RULES([yes])

LT_INIT([disable-static win32-dll])

AC_PROG_CXX

AC_CANONICAL_HOST


dnl Workaround for a bug in libtool
dnl The windows libtool uses a file magic checking method that only accepts
dnl dynamic libraries. Change it for libtool's alternative checking method.

dnl Workaround found in configure.ac from ffms2.

dnl Reproducing the error message below, for search engines and people
dnl looking for a solution...

dnl *** Warning: linker path does not have real file for library -lfftw3f.
dnl *** I have the capability to make that library automatically link in when
dnl *** you link to this library. But I can only do this if you have a
dnl *** shared version of the library, which you do not appear to have
dnl *** because I did check the linker path looking for a file starting
dnl *** with libfftw3f and none of the candidates passed a file format test
dnl *** using a file magic. Last file checked: /home/asdf/mingw-w64/i686/mingw/lib/libfftw3f.a
dnl *** The inter-library dependencies that have been dropped here will be
dnl *** automatically added whenever a program is linked with this library
dnl *** or is declared to -dlopen it.
dnl *
dnl *** Since this library must not contain undefined symbols,
dnl *** because either the platform does not support them or
dnl *** it was explicitly requested with -no-undefined,
dnl *** libtool will only create a static version of it.

if test "$lt_cv_file_magic_cmd" = "func_win32_libid" ; then
deplibs_check_method='file_magic file format pei*-(i386|x86-64)|(.*architecture: i386)?'
file_magic_cmd='$OBJDUMP -f'
fi


AS_CASE(
[$host_cpu],
[i?86], [BITS="32"],
[x86_64], [BITS="64"],
[]
)

AS_CASE(
[$host_os],
[cygwin*|mingw*],
[
AS_IF(
[test "x$BITS" = "x32"],
[
AC_SUBST([PLUGINLDFLAGS], ["-Wl,--kill-at"])
]
)
]
)


PKG_CHECK_MODULES([VapourSynth], [vapoursynth])

PKG_CHECK_MODULES([SNDFILE], [sndfile])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT

0 comments on commit f0d2abc

Please sign in to comment.