summaryrefslogtreecommitdiffstats
path: root/abs/not_built/core/mjpegtools/PKGBUILD
blob: bf31ebf09b83d87249dead9a424ee2bb18c895fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $Id: PKGBUILD 84755 2010-07-04 03:32:01Z eric $
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
# Mantainer: Roberto Carvajal <roberto@archlinux.org>

pkgname=mjpegtools
pkgver=1.9.0
pkgrel=12
pkgdesc="Set of tools that can do recording of videos and playback, simple cut-and-paste editing and the MPEG compression of audio and video"
arch=(i686 x86_64)
license=('GPL')
url="http://mjpeg.sourceforge.net/"
depends=('libjpeg>=8' 'libpng>=1.4.0' 'sdl' 'gcc-libs' 'libdv' 'libjpeg6')
makedepends=('gtk2>=2.18.6')
optdepends=('gtk2: glav GUI')
options=('!makeflags' '!libtool')
install=mjpegtools.install
source=(http://downloads.sourceforge.net/sourceforge/mjpeg/${pkgname}-${pkgver}.tar.gz
        mjpegtools-1.9.0-glibc-2.10.patch
        png2yuv-fix-memleak.patch
        mjpegtools-1.9.0-jpeg-7.patch)
md5sums=('309a6fcf0900a010d6a9c1e91afc2f5c' 'b8ae66237d83be533db8eea166fd3357'\
         '39e1def8fb0f7c58a217b22dc251a86a' 'ccc7562a3933877d3362da7cf4695ea0')
sha1sums=('1701233354c7ea86b5b7808c4dd5d03a71118e48' '3029f0e835e693b144298ed9f8143c9566be26f3'\
         '8af5c3747756353bef56d03bafbdd086ff15c02c' '2bdb1b3b8591cede11d4a133a758e8ead35db4dd')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure
  patch -Np1 -i "$srcdir/mjpegtools-1.9.0-glibc-2.10.patch"
  patch -Np1 -i "${srcdir}/png2yuv-fix-memleak.patch"
  patch -Np0 -i "${srcdir}/mjpegtools-1.9.0-jpeg-7.patch"
  env CPPFLAGS="-I/opt/libjpeg6/include" LDFLAGS="-L/opt/libjpeg6/lib"
  ./configure --prefix=/usr --enable-largefile
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -m644 mpeg2enc/mpeg2syntaxcodes.h "${pkgdir}/usr/include/mjpegtools/mpeg2enc/"
}