blob: 469ae09381b6d5cff2cce3a63f08b1efc3b8481c (
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
59
|
# $NetBSD: Makefile,v 1.14 2008/12/18 16:19:07 bjs Exp $
SNAPSHOT_DATE= 20081217
DISTNAME= x264-snapshot-${SNAPSHOT_DATE}-2245
PKGNAME= x264-devel-${SNAPSHOT_DATE}
CATEGORIES= multimedia
MASTER_SITES= ftp://ftp.videolan.org/pub/videolan/x264/snapshots/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= joerg@NetBSD.org
HOMEPAGE= http://www.videolan.org/developers/x264.html
COMMENT= GPL licensed H.264 encoder
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../mk/bsd.prefs.mk"
.if exists(/usr/include/stdlib.h) && ${OPSYS} != Linux # XXX should be fine
CFLAGS+= -DHAVE_STDLIB_H
.endif
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
BUILD_DEPENDS+= yasm>=0.4.0:../../devel/yasm
.endif
USE_TOOLS+= gmake
USE_LIBTOOL= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-pic # uses libtool's -prefer-pic
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
CONFIGURE_ARGS+= --disable-mp4-output # needs GPAC, not in pkgsrc
MAKE_ENV+= SH=${SH:Q}
BUILD_TARGET= default
BUILDLINK_TRANSFORM+= rm:-O4 # XXX does this mean anything to any compiler?
REPLACE_SH= strip_fopt.sh
.include "../../mk/dlopen.buildlink3.mk"
CHECK_BUILTIN.pthread:= yes
.include "../../mk/pthread.builtin.mk"
CHECK_BUILTIN.pthread:= no
.if !empty(USE_BUILTIN.pthread:M[Yy][Ee][Ss])
X264_BUILD_THREADS_SUPPORT= yes
.else
X264_BUILD_THREADS_SUPPORT= ${DLOPEN_REQUIRE_PTHREADS}
.endif
.include "options.mk"
post-extract:
${CP} ${FILESDIR}/strip_fopt.sh ${WRKSRC}/ && \
${CHMOD} +x ${WRKSRC}/strip_fopt.sh
.include "../../mk/bsd.pkg.mk"
|