Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / multimedia / xine-lib / Makefile.common
blobf55579f36ab6550b92ed81eff6a1b958607cc984
1 # $NetBSD: Makefile.common,v 1.78 2012/07/02 16:27:11 drochner Exp $
3 # used by audio/xine-alsa/Makefile
4 # used by audio/xine-esound/Makefile
5 # used by audio/xine-pulse/Makefile
6 # used by multimedia/xine-v4l/Makefile
7 # used by multimedia/xine-v4l2/Makefile
9 DISTNAME=               xine-lib-1.2.2
10 XINE_PKGNAME=           xine-lib-1.2.2
11 PKGNAME?=               ${XINE_PKGNAME}
12 CATEGORIES?=            multimedia
13 MASTER_SITES=           ${MASTER_SITE_SOURCEFORGE:=xine/}
14 EXTRACT_SUFX=           .tar.xz
16 MAINTAINER=             pkgsrc-users@NetBSD.org
17 HOMEPAGE=               http://xinehq.de/
19 MAKE_JOBS_SAFE=         no
21 XINE_MOD_DIR_VER=       2.2
22 PLIST_SUBST+=           XINE_MOD_DIR_VER=${XINE_MOD_DIR_VER:Q}
24 DISTINFO_FILE=          ${.CURDIR}/../../multimedia/xine-lib/distinfo
25 PATCHDIR=               ${.CURDIR}/../../multimedia/xine-lib/patches
27 GNU_CONFIGURE=          YES
28 USE_PKGLOCALEDIR=       YES
29 USE_LIBTOOL=            YES
30 LIBTOOL_OVERRIDE=       libtool libtool-nofpic
31 PKGCONFIG_OVERRIDE=     misc/libxine.pc.in
32 USE_TOOLS+=             autoconf automake gmake msgfmt pkg-config xmkmf perl
34 CONFIGURE_ARGS+=        --with-w32-path='${PREFIX}/lib/win32'
35 #CONFIGURE_ARGS+=       --without-external-ffmpeg --disable-ffmpegtest
36 CONFIGURE_ENV+=         have_libpng="yes"
37 CONFIGURE_ENV+=         PNG_CFLAGS="-I${PREFIX}/include"
38 CONFIGURE_ENV+=         PNG_LIBS="-L${PREFIX}/lib -Wl,-R${PREFIX}/lib -lpng"
39 # XXX broken configure check in 1.2.1
40 CONFIGURE_ENV+= cc_cv_cflags__Werror_implicit_function_declaration="no"
41 PKGSRC_MAKE_ENV+=       "mkdir_p"="mkdir -p"
43 .include "../../mk/bsd.prefs.mk"
45 PLIST_VARS+=            xv xvmc
46 .include "../../x11/libXv/buildlink3.mk"
47 .include "../../x11/libXvMC/buildlink3.mk"
49 .if ${X11_TYPE} == "modular"
50 PLIST.xv=               yes
51 PLIST.xvmc=             yes
52 .else
53 .if exists(${X11BASE}/lib/libXv.so)
54 CONFIGURE_ARGS+=        --with-xv-path='${X11BASE}/lib'
55 PLIST.xv=               yes
56 .endif
57 .if exists(${X11BASE}/lib/libXvMC.so)
58 CONFIGURE_ARGS+=        --with-xvmc-path='${X11BASE}/lib'
59 CONFIGURE_ARGS+=        --with-xxmc-path='${X11BASE}/lib'
60 PLIST.xvmc=             yes
61 .endif
62 .endif # X11_TYPE
64 .include "../../mk/bsd.prefs.mk"
65 .if ${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[1-4].*)
66 # --no-undefined causes errors if shlibs are not linked against libc
67 BUILDLINK_TRANSFORM+=   "rm:-Wl,--no-undefined"
68 .endif
70 pre-configure:
71         ${TOUCH} ${WRKSRC}/lib/dummy.c
72         cd ${WRKSRC} && aclocal -I m4
73         cd ${WRKSRC} && automake -Wnone
74         cd ${WRKSRC} && autoheader
75         cd ${WRKSRC} && autoconf
77 .include "../../converters/libiconv/buildlink3.mk"
78 .include "../../graphics/freetype2/buildlink3.mk"
79 .include "../../multimedia/ffmpeg/buildlink3.mk"
80 .include "../../mk/oss.buildlink3.mk"
81 .include "../../mk/pthread.buildlink3.mk"