blob: 58341f03a1968361b72f6237f0e74150d0723312 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# $NetBSD: Makefile,v 1.37 2004/01/20 12:18:15 agc Exp $
#
DISTNAME= avifile-0.6.20010814
PKGREVISION= 4
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_LOCAL}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://avifile.sourceforge.net/
COMMENT= MPEG-4 (DivX) video player library
DEPENDS+= win32-codecs>=010122:../../graphics/win32-codecs
ONLY_FOR_PLATFORM= NetBSD-*-i386
NO_SRC_ON_FTP= "Already in MASTER_SITE_LOCAL"
BUILD_USES_GETTEXT_M4= YES
WRKSRC= ${WRKDIR}/avifile-0.6
AUTOMAKE_REQD= 1.4
USE_BUILDLINK2= YES
USE_X11= YES
USE_GMAKE= YES
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --with-win32-path=${LOCALBASE}/lib/win32
CONFIGURE_ARGS+= --disable-dpms
# ffmpeg codec *partially* works, but is incredibly slow so we don't want
# to use it
CONFIGURE_ARGS+= --disable-ffmpeg
CXXFLAGS+= -L${LOCALBASE}/lib -I${LOCALBASE}/include
.include "../../mk/bsd.prefs.mk"
AVIFILE_USE_QT?= NO
.if defined (AVIFILE_USE_QT) && ${AVIFILE_USE_QT} == "YES"
#
# it would be more logical to set PLIST_SRC to PLIST first and then add
# PLIST.qt to it, but @dirrm lib/avifile-0.6 will fail while processing
# pkg/PLIST, because the directory still contains files (they are listed in
# PLIST.qt) and isn't empty, thus can't be removed
#
PLIST_SRC= ${PKGDIR}/PLIST.qt
PLIST_SRC+= ${PKGDIR}/PLIST
CXXFLAGS+= -Wl,${RPATH_FLAG}${QTDIR}/lib
CXXFLAGS+= -Wl,${RPATH_FLAG}${LOCALBASE}/lib
CXXFLAGS+= -Wl,${RPATH_FLAG}${X11BASE}/lib
FIX_RPATH+= CXXFLAGS
CONFIGURE_ARGS+= --enable-qt
CONFIGURE_ARGS+= --with-qt-dir="${QTDIR}"
. include "../../x11/qt2-designer/buildlink2.mk"
.endif
pre-configure:
cd ${WRKSRC} && libtoolize --force --copy
cd ${WRKSRC} && ${ACLOCAL}
cd ${WRKSRC} && ${AUTOHEADER}
cd ${WRKSRC} && ${AUTOCONF}
cd ${WRKSRC} && ${AUTOMAKE} --add-missing --copy --foreign
.include "../../devel/SDL/buildlink2.mk"
.include "../../mk/automake.mk"
.include "../../mk/bsd.pkg.mk"
|