Merge from vendor branch TNF:
[pkgsrcv2.git] / multimedia / transcode / Makefile
1 # $NetBSD: Makefile,v 1.72 2011/11/20 22:11:23 sbd Exp $
2
3 DISTNAME=       transcode-1.1.5
4 PKGREVISION=    12
5 CATEGORIES=     multimedia
6 MASTER_SITES=   http://download.berlios.de/tcforge/
7 EXTRACT_SUFX=   .tar.bz2
8
9 MAINTAINER=     pkgsrc-users@NetBSD.org
10 HOMEPAGE=       http://tcforge.berlios.de/
11 COMMENT=        Command line video-stream processing tool
12
13 PKG_DESTDIR_SUPPORT=    user-destdir
14
15 USE_LANGUAGES=          c c++
16 USE_LIBTOOL=            yes
17 USE_TOOLS+=             awk:run gmake pkg-config
18 GNU_CONFIGURE=          yes
19 CONFIGURE_ARGS+=        --disable-xio
20 CONFIGURE_ARGS+=        --enable-libpostproc
21 CONFIGURE_ARGS+=        --enable-oss
22 CONFIGURE_ARGS+=        --enable-ogg
23 CONFIGURE_ARGS+=        --enable-theora
24 CONFIGURE_ARGS+=        --enable-vorbis
25 CONFIGURE_ARGS+=        --enable-libmpeg2
26 CONFIGURE_ARGS+=        --enable-libmpeg2convert
27 CONFIGURE_ARGS+=        --enable-xvid
28 CONFIGURE_ARGS+=        --with-libavcodec-prefix=${BUILDLINK_PREFIX.ffmpeg}
29 CONFIGURE_ENV+=         PATH_TO_AWK=${AWK:Q}
30
31 PTHREAD_AUTO_VARS=      yes
32 PTHREAD_OPTS=           require
33 LIBS+=                  ${LIBOSSAUDIO}
34
35 .include "../../mk/bsd.prefs.mk"
36
37 .if ${MACHINE_ARCH} == "i386"
38 PLIST.i386=     yes
39 .endif
40
41 PLIST_VARS+=    i386
42
43 .include "options.mk"
44
45 .include "../../audio/lame/buildlink3.mk"
46 .include "../../audio/libvorbis/buildlink3.mk"
47 .include "../../converters/libiconv/buildlink3.mk"
48 .include "../../devel/zlib/buildlink3.mk"
49 .include "../../mk/jpeg.buildlink3.mk"
50 .include "../../graphics/png/buildlink3.mk"
51 .include "../../multimedia/ffmpeg/buildlink3.mk"
52 .include "../../multimedia/libdvdread/buildlink3.mk"
53 .include "../../multimedia/libmpeg2/buildlink3.mk"
54 .include "../../multimedia/libogg/buildlink3.mk"
55 .include "../../multimedia/libtheora/buildlink3.mk"
56 .include "../../x11/libXaw/buildlink3.mk"
57 .include "../../x11/libXext/buildlink3.mk"
58 .include "../../x11/libXpm/buildlink3.mk"
59 .include "../../x11/libXv/buildlink3.mk"
60 .include "../../x11/xextproto/buildlink3.mk"
61 .include "../../mk/oss.buildlink3.mk"
62 .include "../../mk/pthread.buildlink3.mk"
63 .include "../../mk/bsd.pkg.mk"