66a547c175
* xvidcore/examples/xvid_encraw.c: Help info about zones usage and various fixes for compiler warnings * xvidcore/examples/xvid_encraw.c: Improved help texts and defaults handling. * xvidcore/examples/Makefile, xvidcore/examples/xvid_encraw.c: Better environment detection for Makefile * xvidcore/examples/xvid_encraw.c: Fix out of bound access to framestats struct.
56 lines
1.7 KiB
Makefile
56 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.43 2014/06/04 11:40:41 adam Exp $
|
|
|
|
DISTNAME= xvidcore-1.3.3
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= http://downloads.xvid.org/downloads/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.xvid.org/
|
|
COMMENT= ISO MPEG-4 compliant video codec
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
USE_GCC_RUNTIME=yes
|
|
USE_TOOLS+= gmake
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# the resulting objects from the asm don't link correctly on Solaris.
|
|
# nor on amd64 -- they are not PIC, but the ABI demands it
|
|
# big patch available from Gentoo, if someone is interested:
|
|
# http://bugs.gentoo.org/show_bug.cgi?id=90287
|
|
.if ${OPSYS} == "SunOS" || ${MACHINE_ARCH} == "x86_64" || \
|
|
!empty(MACHINE_PLATFORM:MDarwin-*-i386)
|
|
CONFIGURE_ARGS+= --disable-assembly
|
|
.elif ${MACHINE_ARCH} == "i386"
|
|
BUILD_DEPENDS+= nasm>=0.98.39nb3:../../devel/nasm
|
|
#.elif ${MACHINE_ARCH} == "x86_64"
|
|
#BUILD_DEPENDS+= yasm>=0.4.0:../../devel/yasm
|
|
.endif
|
|
|
|
.if !empty(PKGSRC_COMPILER:Msunpro) || ${OPSYS} == "SunOS"
|
|
CFLAGS+= -D__inline=inline
|
|
SUBST_CLASSES+= ld
|
|
SUBST_MESSAGE.ld= Fixing linker arguments for Solaris
|
|
SUBST_STAGE.ld= pre-configure
|
|
SUBST_FILES.ld= build/generic/configure
|
|
SUBST_SED.ld= -e "s|-Wl,-soname,libxvidcore...(SHARED_EXTENSION)...(API_MAJOR)||"
|
|
SUBST_SED.ld+= -e "s|-Wl,--version-script=libxvidcore.ld||"
|
|
.endif
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
WRKSRC= ${WRKDIR}/xvidcore
|
|
CONFIGURE_DIRS= build/generic
|
|
GNU_CONFIGURE= YES
|
|
|
|
MAKE_ENV+= MKDIR=${MKDIR:Q}
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
post-install:
|
|
${RM} -f ${DESTDIR}${PREFIX}/lib/libxvidcore.so.4
|
|
${RM} -f ${DESTDIR}${PREFIX}/lib/libxvidcore.so
|
|
${LN} -sf ${DESTDIR}${PREFIX}/lib/libxvidcore.4.dylib ${DESTDIR}${PREFIX}/lib/libxvidcore.dylib
|
|
.endif
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|