blob: e0941819c2ec547887793f23f2447501d8da6b0b (
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
55
56
|
# New ports collection makefile for: mpeg4ip-libmp4v2
# Date created: 28 Sep 2004
# Whom: Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= mpeg4ip
PORTVERSION= 1.4.1
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMESUFFIX= -libmp4v2
MAINTAINER= ahze@FreeBSD.org
COMMENT= Mpeg-4 library and tools from mpeg4ip
USE_GMAKE= yes
USE_GNOME= gnometarget
USE_AUTOTOOLS= libtool:15
USE_REINPLACE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
CFLAGS+= -O2
.endif
post-patch:
${TOUCH} -f ${WRKSRC}/bootstrapped
# Speed up configure by not using 2 unneeded configure scripts.
@${ECHO_CMD} "" > ${WRKSRC}/lib/rtp/configure
@${ECHO_CMD} "" > ${WRKSRC}/lib/SDLAudio/configure
@${REINPLACE_CMD} \
-e 's|>&/|>/|; s|-Wmissing-declarations||; \
s|-Wmissing-prototypes||' \
${WRKSRC}/configure
do-build:
.for dir in lib/gnu lib/mp4av lib/mp4v2
@(cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
.endfor
do-install:
.for dir in lib/gnu lib/mp4av lib/mp4v2
@(cd ${WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
.endfor
post-install:
.for i in include/mpeg4ip.h include/mpeg4ip_version.h mpeg4ip_config.h
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/include
.endfor
.include <bsd.port.post.mk>
|