2009-06-02 19:10:53 +02:00
|
|
|
# $NetBSD: Makefile,v 1.35 2009/06/02 17:10:53 drochner Exp $
|
2004-01-26 13:38:26 +01:00
|
|
|
|
2009-06-02 19:10:53 +02:00
|
|
|
DISTNAME= xvidcore-1.2.2
|
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
|
|
|
|
2009-01-21 00:25:55 +01:00
|
|
|
.if !empty(PKGSRC_COMPILER:Msunpro)
|
|
|
|
CFLAGS+= -D__inline=inline
|
|
|
|
SUBST_CLASSES+= ld
|
|
|
|
SUBST_MESSAGE.ld= Fixing linker arguments for Solaris
|
|
|
|
SUBST_STAGE.ld= pre-configure
|
|
|
|
SUBST_FILES.ld= configure
|
|
|
|
SUBST_SED.ld= -e "s|-Wl,-soname,libxvidcore...(SHARED_EXTENSION)...(API_MAJOR)||"
|
|
|
|
SUBST_SED.ld+= -e "s|-Wl,--version-script=libxvidcore.ld||"
|
|
|
|
.endif
|
|
|
|
|
2004-05-31 18:47:47 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2009-01-07 11:52:12 +01:00
|
|
|
WRKSRC= ${WRKDIR}/xvidcore/build/generic
|
2004-01-26 13:38:26 +01:00
|
|
|
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
|
2009-01-28 17:03:37 +01:00
|
|
|
${RM} -f ${DESTDIR}${PREFIX}/lib/libxvidcore.so
|
|
|
|
${LN} -sf ${DESTDIR}${PREFIX}/lib/libxvidcore.4.dylib ${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"
|