2013-09-20 22:57:48 +02:00
|
|
|
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
2001-11-16 04:39:39 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libmovtar
|
2002-05-21 01:30:54 +02:00
|
|
|
PORTVERSION= 0.1.3
|
2012-02-18 11:18:33 +01:00
|
|
|
PORTREVISION= 9
|
2002-11-28 01:09:51 +01:00
|
|
|
CATEGORIES= multimedia
|
2009-08-22 02:28:34 +02:00
|
|
|
MASTER_SITES= SF/mjpeg/OldFiles
|
2001-11-16 04:39:39 +01:00
|
|
|
|
2005-04-03 23:32:58 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-23 20:58:35 +01:00
|
|
|
COMMENT= Supports reading/writing of MJPEG video in YUV 4:2:2 JPEG
|
2001-11-16 04:39:39 +01:00
|
|
|
|
2004-03-08 00:28:40 +01:00
|
|
|
USE_SDL= sdl
|
2005-04-10 04:32:57 +02:00
|
|
|
USE_GNOME= glib12
|
2014-02-03 14:57:46 +01:00
|
|
|
USES= gmake
|
2001-11-16 04:39:39 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2004-11-28 16:50:13 +01:00
|
|
|
CONFIGURE_ARGS= --with-m4data-prefix=${PREFIX}/share
|
|
|
|
CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"
|
2001-11-16 04:39:39 +01:00
|
|
|
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
|
|
PTHREAD_LIBS=${PTHREAD_LIBS}
|
|
|
|
|
2010-02-05 12:46:55 +01:00
|
|
|
LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg
|
2004-11-28 16:50:13 +01:00
|
|
|
|
2007-12-14 20:08:40 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-05-21 01:30:54 +02:00
|
|
|
post-patch:
|
2004-11-28 16:50:13 +01:00
|
|
|
# Add library patch when using -ljpeg
|
|
|
|
# Use proper locations when using -ljpeg-mmx
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|^(LIBS="-ljpeg )|\1 -L${LOCALBASE}/lib|' \
|
|
|
|
-e 's|(LIBS -ljpeg)"|\1 -L${LOCALBASE}/lib"|' \
|
|
|
|
-e 's|^(LIBS="-L) (\$$JPEGDIR) \$$DEFAULT_JPEGDIR_L|\1\2/lib|' \
|
|
|
|
-e 's|-I (\$$JPEGDIR) \$$DEFAULT_JPEGDIR_I|-I\1/include|' \
|
2002-05-21 01:30:54 +02:00
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
2010-02-05 12:46:55 +01:00
|
|
|
# Resolve name collision with jpeg-8
|
|
|
|
@${REINPLACE_CMD} -e 's|jpeg_mem_src|local_jpeg_mem_src|' \
|
|
|
|
${WRKSRC}/movtar_play.c
|
2003-05-14 18:15:34 +02:00
|
|
|
.if ${ARCH} != "i386"
|
|
|
|
# emms opcode should be noop in non-i386 non-MMX ARCH
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|^.*"emms".*$$||' \
|
|
|
|
${WRKSRC}/movtar_play.c
|
|
|
|
.endif
|
2002-05-21 01:30:54 +02:00
|
|
|
|
2003-05-14 18:15:34 +02:00
|
|
|
.include <bsd.port.post.mk>
|