2004-11-10 02:42:24 +01:00
|
|
|
# New ports collection makefile for: mpeg4ip-libmp4v2
|
|
|
|
# Date created: 28 Sep 2004
|
|
|
|
# Whom: Michael Johnson <ahze@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mpeg4ip
|
2006-05-12 12:43:58 +02:00
|
|
|
PORTVERSION= 1.5
|
2004-11-10 02:42:24 +01:00
|
|
|
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
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2004-11-10 02:42:24 +01:00
|
|
|
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>
|
|
|
|
|
2005-03-14 03:10:35 +01:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
CFLAGS+= -O2
|
2004-11-10 02:42:24 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2005-05-19 14:42:11 +02:00
|
|
|
${TOUCH} -f ${WRKSRC}/bootstrapped
|
2005-03-21 05:56:31 +01:00
|
|
|
# Speed up configure by not using 2 unneeded configure scripts.
|
|
|
|
@${ECHO_CMD} "" > ${WRKSRC}/lib/rtp/configure
|
|
|
|
@${ECHO_CMD} "" > ${WRKSRC}/lib/SDLAudio/configure
|
2004-11-10 02:42:24 +01:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|>&/|>/|; s|-Wmissing-declarations||; \
|
|
|
|
s|-Wmissing-prototypes||' \
|
|
|
|
${WRKSRC}/configure
|
2005-05-19 14:42:11 +02:00
|
|
|
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
|
2004-11-10 02:42:24 +01:00
|
|
|
|
2004-11-28 15:41:55 +01:00
|
|
|
post-install:
|
|
|
|
.for i in include/mpeg4ip.h include/mpeg4ip_version.h mpeg4ip_config.h
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/include
|
|
|
|
.endfor
|
|
|
|
|
2004-11-10 02:42:24 +01:00
|
|
|
.include <bsd.port.post.mk>
|