aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2003-02-08 13:56:07 +0800
committernork <nork@FreeBSD.org>2003-02-08 13:56:07 +0800
commit9629b2745802fdb9ab5b6efea998e79ff3ea4c82 (patch)
treed7b513e066d1b09cf211447027c7e54cbc2bac85 /multimedia
parent550f04c9169dff07751159a2b3ef644a15a2487d (diff)
downloadfreebsd-ports-gnome-9629b2745802fdb9ab5b6efea998e79ff3ea4c82.tar.gz
freebsd-ports-gnome-9629b2745802fdb9ab5b6efea998e79ff3ea4c82.tar.zst
freebsd-ports-gnome-9629b2745802fdb9ab5b6efea998e79ff3ea4c82.zip
o update MASTER_SITES.
o fix up platforms (remove alpha). o introduce in-place patch to not link the shared lib against libc. PR: ports/48067 Submitted by: Michael Nottebrock <michaelnottebrock@gmx.net> (maintainer)
Diffstat (limited to 'multimedia')
-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>