summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/mjpegtools/PKGBUILD
blob: 340b25b0cab208ee5e66ec5c36560356ba5b0134 (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
pkgname=mjpegtools
pkgver=1.9.0
pkgrel=1
pkgdesc="The mjpeg programs are a set of tools that can do recording of videos and playback, simple cut-and-paste editing and the MPEG compression of audio and video under Linux. "
arch=(i686 x86_64)
license=('GPL')
url="http://mjpeg.sourceforge.net/"
#depends=('libjpeg' 'libpng' 'sdl' 'gcc' 'libdv')
depends=('libjpeg' 'libpng'  'gcc-libs' 'libdv')
makedepends=('gtk2')
options=('!makeflags' '!libtool')
source=(http://downloads.sourceforge.net/sourceforge/mjpeg/${pkgname}-${pkgver}rc3.tar.gz
	mjpegtools-1.8.0-gcc41.patch  mjpegtools-1.8.0-libc.patch 1.9.patch)
#md5sums=('6fd98362310480bdaf7171e9659f165f' '803eccd889c60a442ee23ba65951fadc')

build() {
  cd ${startdir}/src/${pkgname}-${pkgver}rc3
#  patch -Np1 -i ${startdir}/src/mjpegtools-1.8.0-gcc41.patch || return 1
#  patch -Np1 -i ${startdir}/src/mjpegtools-1.8.0-libc.patch || return 1
  patch -Np1 -i ${startdir}/src/1.9.patch || return 1
  ./configure --prefix=/usr
  find -name Makefile -exec sed -i -e 's:-march=k8 -mtune=k8::' -e 's:-march=pentium3 -mtune=pentium3::' {} \;

  make || return 1
  make DESTDIR=${startdir}/pkg install

  install -m644 mpeg2enc/mpeg2syntaxcodes.h \
      ${startdir}/pkg/usr/include/mjpegtools/mpeg2enc/
}