blob: 80845a2a662e64c57ac5db877754e327af8e2b3b (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# $NetBSD: Makefile.common,v 1.4 2009/10/30 12:40:27 ahoka Exp $
# used by multimedia/ffplay/Makefile
DISTNAME= ffmpeg-${DISTVERSION:S/-//g}
CATEGORIES= multimedia
MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/ahoka/dist/ \
http://irkmaffia.com/~ahoka/distfiles/
EXTRACT_SUFX= .tar.bz2
DISTVERSION= 2009-06-11
PREV_PKGPATH= multimedia/ffmpeg-devel
WRKSRC= ${WRKDIR}/ffmpeg-export-${DISTVERSION}
PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg/patches
HAS_CONFIGURE= YES
USE_LIBTOOL= YES
USE_TOOLS+= gmake texi2html pod2man
BUILD_DEPENDS+= yasm>=0.7.2:../../devel/yasm
REPLACE_PERL+= doc/texi2pod.pl
SUBST_CLASSES+= conf
SUBST_STAGE.conf= post-patch
SUBST_FILES.conf= ffserver.c
SUBST_SED.conf= -e 's,/etc/ffserver.conf,${PKG_SYSCONFDIR}/ffserver.conf,g'
SUBST_MESSAGE.conf= Fixing configuration path.
PLIST_SRC+= ${PKGDIR}/PLIST
MAKE_ENV+= EXTRA_LIBS=${LIBGETOPT:Q}
# LOCALBASE=${LOCALBASE:Q}
# Let's not put garbage into /tmp
CONFIGURE_ENV+= TMPDIR=${WRKSRC:Q}/tmp
CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR} \
--cc=${CC:Q} \
--prefix=${PREFIX:Q} \
--disable-debug \
--disable-stripping \
--enable-shared \
--enable-runtime-cpudetect \
--enable-pthreads \
--enable-gpl
# No posix_memalign() in NetBSD 4.0 and earlier
#
.if !empty(MACHINE_PLATFORM:MNetBSD-[1-4].*-*)
CONFIGURE_ARGS+= --enable-memalign-hack
.endif
pre-configure:
mkdir ${WRKSRC}/tmp
.include "../../mk/pthread.buildlink3.mk"
.include "../../devel/libgetopt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|