macOSでdvdauthorをコンパイルする。(非Homebrew)

dvdauthorは、xmlで記述した設定に基づいてDVDを作成する事ができるコマンドラインツールである。ここでは、macOSでHomebrewを使わずにdvdauthorをコンパイルする方法を説明したい。

dvdauthorのコンパイルには、以下の項目を準備する必要がある。

  1. pkg-config

  2. autoconf(fribidi用)

  3. automake(fribidi用)

  4. libtool(fribidi用)

  5. libxml2

  6. libpng

  7. zlib

  8. freetype2

  9. libuuid(fontconfig用)

  10. fontconfig

  11. fribidi

  12. dvdauthor

早速コンパイルに入る。

  1. 初期パラメータ設定

                export WORK=${HOME}/Desktop/dvdauthor_build
                export TARGET=${WORK}/build
                export PATH=${TARGET}/bin:$PATH
                export PKG_CONFIG_PATH="${TARGET}/lib/pkgconfig"
                export LIBTOOL=`which glibtool`
                export LIBTOOLIZE=`which glibtoolize`
                export SRC="${WORK}/src"
                export CMPL="${WORK}/compile"
                mkdir -p ${CMPL}
                mkdir -p ${SRC}
            
  2. pkg-config

                cd ${SRC}
                curl -LO https://pkg-config.freedesktop.org/releases/pkg-config-0.29.2.tar.gz
                cd ${CMPL}
                tar xf ${SRC}/pkg-config-0.29.2.tar.gz
                cd pkg-config-0.29.2
                ./configure --with-internal-glib
                make && sudo make install           
            
  3. autoconf

                cd ${SRC}
                curl -LO http://ftp.jaist.ac.jp/pub/GNU/autoconf/autoconf-2.69.tar.xz
                cd ${CMPL}
                tar xf ${SRC}/autoconf-2.69.tar.xz
                cd autoconf-2.69
                ./configure
                make && sudo make install
            
  4. automake

                cd ${SRC}
                curl -LO http://ftp.gnu.org/gnu/automake/automake-1.16.1.tar.xz
                cd ${CMPL}
                tar xf ${SRC}/automake-1.16.1.tar.xz
                cd automake-1.16.1
                ./configure
                make && sudo make install
            
  5. libtool

                cd ${SRC}
                curl -LO http://ftp.jaist.ac.jp/pub/GNU/libtool/libtool-2.4.6.tar.xz
                cd ${CMPL}
                tar xf ${SRC}/libtool-2.4.6.tar.xz
                cd libtool-2.4.6
                ./configure --program-prefix=g
                make && sudo make install
            
  6. libxml2

                cd ${SRC}
                curl -LO ftp://xmlsoft.org/libxml2/libxml2-2.9.9.tar.gz
                cd ${CMPL}
                tar xf ${SRC}/libxml2-2.9.9.tar.gz
                cd libxml2-2.9.9
                ./configure --prefix=${TARGET} --disable-shared  --without-python
                make && make install
            
  7. zlib

                cd ${SRC}
                curl -LO https://www.zlib.net/zlib-1.2.11.tar.gz
                cd ${CMPL}
                tar xf ${SRC}/zlib-1.2.11.tar.gz
                cd zlib-1.2.11
                ./configure --prefix=${TARGET} --static
                make test
                make install
            
  8. libpng

                cd ${SRC}
                curl -LO http://prdownloads.sourceforge.net/libpng/libpng-1.6.37.tar.xz
                cd ${CMPL}
                tar xf ${SRC}/libpng-1.6.37.tar.xz
                cd libpng-1.6.37
                ./configure --prefix=${TARGET} --disable-shared
                make && make install
            
  9. freetype2

                cd ${SRC}
                curl -LO https://download.savannah.gnu.org/releases/freetype/freetype-2.10.1.tar.xz
                cd ${CMPL}
                tar xf ${SRC}/freetype-2.10.1.tar.xz
                cd freetype-2.10.1
                ./configure --prefix=${TARGET} --disable-shared --enable-freetype-config
                make && make install
            
  10. libuuid

                cd ${SRC}
                curl -LO http://sourceforge.net/projects/libuuid/files/libuuid-1.0.3.tar.gz
                cd ${CMPL}
                tar xf ${SRC}/libuuid-1.0.3.tar.gz
                cd libuuid-1.0.3
                ./configure --prefix=${TARGET} --disable-shared --enable-static
                make && make install
            
  11. fontconfig

                cd ${SRC}
                curl -LO https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.13.92.tar.xz
                cd ${CMPL}
                tar xf ${SRC}/fontconfig-2.13.92.tar.xz
                cd fontconfig-2.13.92
                ./configure --prefix=${TARGET} --disable-shared --disable-docs --enable-static --with-add-fonts=/Library/Fonts,~/Library/Fonts
                make && make install
            
  12. fribidi

    新規インストールの場合

                cd ${CMPL}
                git clone https://github.com/fribidi/fribidi.git
                cd fribidi
                ./autogen.sh
                ./configure --prefix=${TARGET} --disable-shared --enable-static
                make && make install
            

    更新インストールの場合

                cd ${CMPL}/fribidi
                git pull
                ./autogen.sh
                ./configure --prefix=${TARGET} --disable-shared --enable-static
                make clean
                make && make install
            
  13. dvdauthor

                cd ${SRC}
                curl -LO https://sourceforge.net/projects/dvdauthor/files/dvdauthor-0.7.2.tar.gz
                cd ${CMPL}
                tar xf ${SRC}/dvdauthor-0.7.2.tar.gz
                cd dvdauthor
                ./configure --prefix=${TARGET} --disable-shared --disable-dvdunauthor
                make && make install
            
  14. インストール

                cd ${TARGET}/bin
                sudo cp -pR dvdauthor /usr/local/bin/
            

以上。

この投稿へのコメント

コメントはありません。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

この投稿へのトラックバック

トラックバックはありません。

トラックバック URL