aboutsummaryrefslogtreecommitdiff
path: root/multimedia/xvid
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/xvid')
-rw-r--r--multimedia/xvid/Makefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/multimedia/xvid/Makefile b/multimedia/xvid/Makefile
index eb01c6ad348a..233bcc434e26 100644
--- a/multimedia/xvid/Makefile
+++ b/multimedia/xvid/Makefile
@@ -7,21 +7,22 @@
PORTNAME= xvid
PORTVERSION= 0.9.0
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= graphics
-MASTER_SITES= http://cvs.xvid.org/downloads/xvidcore-0.9.0/
+MASTER_SITES= http://files.xvid.org/downloads/
DISTNAME= xvidcore-${PORTVERSION}
MAINTAINER= michaelnottebrock@gmx.net
BUILD_DEPENDS= ${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm
-MAKEFILE= Makefile.linuxx86
-ONLY_FOR_ARCHS= i386 alpha sparc64
+ONLY_FOR_ARCHS= i386 sparc64
USE_AUTOCONF_VER= 253
USE_PERL5_BUILD=yes
USE_GMAKE= yes
INSTALLS_SHLIB= yes
+USE_REINPLACE= yes
CONFIGURE_WRKSRC= ${WRKDIR}
WRKSRC= ${WRKDIR}/${DISTNAME}/build/generic
@@ -36,6 +37,11 @@ pre-configure:
@ ${CP} ${FILESDIR}/${file} ${WRKDIR}
.endfor
+post-patch:
+.for file in Makefile.linuxx86 Makefile.sparc
+ ${REINPLACE_CMD} -e 's|-lc||' ${WRKSRC}/$(file)
+.endfor
+
do-install:
@ ${INSTALL_DATA} ${WRKSRC}/libxvidcore.so ${PREFIX}/lib/libxvidcore.so.0
@ ${LN} -s libxvidcore.so.0 ${PREFIX}/lib/libxvidcore.so
@@ -47,14 +53,10 @@ do-install:
.include <bsd.port.pre.mk>
-CFLAGS+= -DLINUX
-
.if ${ARCH:L} == i386
-CFLAGS+= -DARCH_X86
-.elif ${ARCH:L} == alpha
-CFLAGS+= -DARCH_PPC
+MAKEFILE= Makefile.linuxx86
.elif ${ARCH:L} == sparc64
-CFLAGS+= -DARCH_SPARC
+MAKEFILE= Makefile.sparc
.endif
.include <bsd.port.post.mk>