blob: 0ce711dd94454197099ff351ff1ed04a48b19070 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# New ports collection makefile for: xvid
# Date created: 04 April 2002
# Whom: Michael Nottebrock <michaelnottebrock@gmx.net> et al
#
# $FreeBSD$
#
PORTNAME= xvid
PORTVERSION= 0.20020412
CATEGORIES= graphics
MASTER_SITES= http://www.xvid.org/
DISTNAME= xvid_snapshot_${PORTVERSION:S/^0.//}
MAINTAINER= michaelnottebrock@gmx.net
BUILD_DEPENDS= ${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm
ONLY_FOR_ARCHS= i386
USE_AUTOCONF= yes
USE_GMAKE= yes
INSTALLS_SHLIB= yes
CONFIGURE_WRKSRC= ${WRKDIR}
WRKSRC= ${WRKDIR}/xvid_20020412/xvidcore/build/generic
pre-everything::
.if !defined(WITH_OPTIMIZED_CFLAGS)
@ ${ECHO_MSG} "You can enable additional compilation optimizations"
@ ${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
.endif
post-patch:
@ ${FIND} ${WRKDIR} -type f | \
${XARGS} -n 10 -x ${PERL} -pi -e \
's|<malloc.h>|<stdlib.h>|'
.ifndef(WITH_OPTIMIZED_CFLAGS)
@ ${PERL} -pi -e 's|(CFLAGS \+=).*|\1 ${CFLAGS}|' ${WRKSRC}/Makefile
.else
@ ${PERL} -pi -e 's|(CFLAGS \+=.*)|\1 ${CFLAGS}|' ${WRKSRC}/Makefile
.endif
# trick to detect existence of stdint.h
pre-configure:
.for file in configure.in config.h.in
@ ${CP} ${FILESDIR}/${file} ${WRKDIR}
.endfor
do-install:
@ ${INSTALL_DATA} ${WRKSRC}/libxvidcore.so ${PREFIX}/lib/libxvidcore.so.0
@ ${INSTALL_DATA} ${WRKSRC}/libcore.a ${PREFIX}/lib/libcore.a
@ ${LN} -s libxvidcore.so.0 ${PREFIX}/lib/libxvidcore.so
@ ${INSTALL_DATA} ${WRKSRC}/../../src/xvid.h ${PREFIX}/include
.include <bsd.port.mk>
|