2007-12-17 23:13:42 +01:00
|
|
|
# $NetBSD: Makefile,v 1.30 2007/12/17 22:13:42 tron Exp $
|
2004-01-26 13:38:26 +01:00
|
|
|
|
2007-07-03 21:53:00 +02:00
|
|
|
DISTNAME= xvidcore-1.1.3
|
2004-01-26 13:38:26 +01:00
|
|
|
CATEGORIES= multimedia
|
2005-05-28 02:20:05 +02:00
|
|
|
MASTER_SITES= http://downloads.xvid.org/downloads/
|
2004-01-26 13:38:26 +01:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-01-26 13:38:26 +01:00
|
|
|
HOMEPAGE= http://www.xvid.org/
|
|
|
|
COMMENT= ISO MPEG-4 compliant video codec
|
|
|
|
|
2006-10-09 14:52:34 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2006-08-04 17:09:51 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2006-10-11 02:04:39 +02:00
|
|
|
# the resulting objects from the asm don't link correctly on Solaris.
|
2006-10-19 02:15:15 +02:00
|
|
|
# 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
|
2007-12-17 23:13:42 +01:00
|
|
|
.if ${OPSYS} == "SunOS" || ${MACHINE_ARCH} == "x86_64" || \
|
|
|
|
!empty(MACHINE_PLATFORM:MDarwin-[9].*-i386)
|
2006-10-11 02:04:39 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-assembly
|
|
|
|
.elif ${MACHINE_ARCH} == "i386"
|
2007-01-06 17:31:48 +01:00
|
|
|
BUILD_DEPENDS+= nasm>=0.98.39nb3:../../devel/nasm
|
2006-10-19 02:15:15 +02:00
|
|
|
#.elif ${MACHINE_ARCH} == "x86_64"
|
|
|
|
#BUILD_DEPENDS+= yasm>=0.4.0:../../devel/yasm
|
2006-02-12 15:36:43 +01:00
|
|
|
.endif
|
2004-01-26 13:38:26 +01:00
|
|
|
|
2004-05-31 18:47:47 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2004-01-26 13:38:26 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/build/generic
|
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= MKDIR=${MKDIR:Q}
|
2004-03-29 01:09:51 +02:00
|
|
|
|
2006-08-04 17:09:51 +02:00
|
|
|
.if ${OPSYS} == "Darwin"
|
|
|
|
post-install:
|
2006-10-09 14:52:34 +02:00
|
|
|
${RM} -f ${DESTDIR}${PREFIX}/lib/libxvidcore.so.4
|
|
|
|
${MV} -f ${DESTDIR}${PREFIX}/lib/libxvidcore.so ${DESTDIR}${PREFIX}/lib/libxvidcore.dylib
|
2006-08-04 17:09:51 +02:00
|
|
|
.endif
|
|
|
|
|
2004-01-26 13:38:26 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|