b8d5702ec1
changes: -security fixes (were already patched in pkgsrc) -misc bugfixes -build fixes
73 lines
2.1 KiB
Text
73 lines
2.1 KiB
Text
# $NetBSD: Makefile.common,v 1.61 2009/04/17 16:35:40 drochner Exp $
|
|
#
|
|
|
|
# used by audio/xine-arts/Makefile
|
|
# used by audio/xine-esound/Makefile
|
|
# used by audio/xine-pulse/Makefile
|
|
|
|
DISTNAME= xine-lib-1.1.16.3
|
|
XINE_PKGNAME= xine-lib-1.1.16.3
|
|
PKGNAME?= ${XINE_PKGNAME}
|
|
CATEGORIES?= multimedia
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xine/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://xinehq.de/
|
|
|
|
XINE_LIB_VER= 1.1.16
|
|
XINE_MOD_DIR_VER= 1.26
|
|
PLIST_SUBST+= XINE_LIB_VER=${XINE_LIB_VER:Q}
|
|
PLIST_SUBST+= XINE_MOD_DIR_VER=${XINE_MOD_DIR_VER:Q}
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../multimedia/xine-lib/distinfo
|
|
PATCHDIR= ${.CURDIR}/../../multimedia/xine-lib/patches
|
|
|
|
GNU_CONFIGURE= YES
|
|
USE_PKGLOCALEDIR= YES
|
|
USE_LIBTOOL= YES
|
|
LIBTOOL_OVERRIDE= libtool libtool-nofpic
|
|
PKGCONFIG_OVERRIDE= misc/libxine.pc.in
|
|
USE_TOOLS+= autoconf gmake msgfmt pkg-config xmkmf perl
|
|
|
|
CONFIGURE_ARGS+= --with-w32-path='${PREFIX}/lib/win32'
|
|
CONFIGURE_ARGS+= --without-external-ffmpeg --disable-ffmpegtest
|
|
CONFIGURE_ENV+= have_libpng="yes"
|
|
CONFIGURE_ENV+= PNG_CFLAGS="-I${PREFIX}/include"
|
|
CONFIGURE_ENV+= PNG_LIBS="-L${PREFIX}/lib -Wl,-R${PREFIX}/lib -lpng"
|
|
PKGSRC_MAKE_ENV+= "mkdir_p"="mkdir -p"
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
PLIST_VARS+= xv xvmc
|
|
.include "../../x11/libXv/buildlink3.mk"
|
|
.include "../../x11/libXvMC/buildlink3.mk"
|
|
|
|
.if ${X11_TYPE} == "modular"
|
|
PLIST.xv= yes
|
|
PLIST.xvmc= yes
|
|
.else
|
|
.if exists(${X11BASE}/lib/libXv.so)
|
|
CONFIGURE_ARGS+= --with-xv-path='${X11BASE}/lib'
|
|
PLIST.xv= yes
|
|
.endif
|
|
.if exists(${X11BASE}/lib/libXvMCW.so)
|
|
CONFIGURE_ARGS+= --with-xvmc-path='${X11BASE}/lib'
|
|
CONFIGURE_ARGS+= --with-xxmc-path='${X11BASE}/lib'
|
|
PLIST.xvmc= yes
|
|
.endif
|
|
.endif # X11_TYPE
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.if ${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[1-4].*)
|
|
# --no-undefined causes errors if shlibs are not linked against libc
|
|
BUILDLINK_TRANSFORM+= "rm:-Wl,--no-undefined"
|
|
.endif
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && autoconf
|
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
.include "../../mk/oss.buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|