# $OpenBSD: Makefile,v 1.14 2012/01/25 15:34:02 ajacoutot Exp $ COMMENT= ISO MPEG-4 compliant video codec DISTNAME= xvidcore-1.3.2 REVISION= 0 CATEGORIES= multimedia MASTER_SITES= http://downloads.xvid.org/downloads/ SHARED_LIBS= xvidcore 4.3 HOMEPAGE= http://www.xvid.org/ MAINTAINER= Brad Smith # GPLv2+ PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes WANTLIB= m WRKDIST= ${WRKDIR}/xvidcore WRKBUILD= ${WRKSRC}/build/generic .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" BUILD_DEPENDS+= devel/yasm .endif USE_GMAKE= Yes CONFIGURE_STYLE= gnu CONFIGURE_ENV= API_MAJOR=${LIBxvidcore_VERSION:R} \ API_MINOR=${LIBxvidcore_VERSION:E} .if ${MACHINE_ARCH} != "amd64" && ${MACHINE_ARCH} != "i386" CONFIGURE_ARGS+=--disable-assembly .endif NO_REGRESS= Yes do-install: ${INSTALL_DATA} ${WRKBUILD}/=build/libxvidcore.{a,so*} ${PREFIX}/lib ${INSTALL_DATA} ${WRKSRC}/src/xvid.h ${PREFIX}/include .include .if ${NO_SHARED_LIBS:L} == "yes" MAKE_FLAGS+= SHARED_LIB="" .endif