pkgsrc/multimedia/libdv/Makefile.common
tsutsui cb0e9a5964 libdv: disable asm to avoid text relocations on NetBSD/i386 8.0.
Bump PKGREVISION. Ok'ed by wiz@ in PR pkg/53319.
2018-05-27 15:21:09 +00:00

48 lines
1.3 KiB
Text

# $NetBSD: Makefile.common,v 1.16 2018/05/27 15:21:09 tsutsui Exp $
#
# used by multimedia/libdv-tools/Makefile
DISTNAME= libdv-1.0.0
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libdv/}
MAINTAINER= tech-pkg-ja@jp.NetBSD.org
HOMEPAGE= http://libdv.sourceforge.net/
COMMENT= DV video codec library
LICENSE= gnu-lgpl-v2.1
DISTINFO_FILE= ${.CURDIR}/../../multimedia/libdv/distinfo
PATCHDIR= ${.CURDIR}/../../multimedia/libdv/patches
USE_TOOLS+= pkg-config
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
PKGCONFIG_OVERRIDE= ${WRKSRC}/libdv.pc.in
PTHREAD_AUTO_VARS= yes
.include "../../mk/bsd.prefs.mk"
.if (${OPSYS} == "Darwin") || empty(MACHINE_PLATFORM:M*-*-i386) || \
(${OPSYS} == "Interix") || (${OPSYS} == "SunOS") || \
(${OPSYS} == "MirBSD") || \
!empty(MACHINE_PLATFORM:MNetBSD-[89].*-i386)
CONFIGURE_ARGS+= --disable-asm
.endif
.if ${X11_TYPE} != "native" && ${OPSYS} != "Darwin"
.include "../../x11/libXv/buildlink3.mk"
.elif !exists(${X11BASE}/include/X11/extensions/Xvlib.h)
CONFIGURE_ARGS+= --disable-xv
.endif
LIBS+= ${LIBOSSAUDIO}
.if empty(CFLAGS:M-O*)
CFLAGS+= -O
.endif
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/popt/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"