mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
b7aac35e1b
- Change default jpeg implementation from jpeg to jpeg-turbo Reviewed by: bapt, mat Differential Revision: https://reviews.freebsd.org/D2884
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libmovtar
|
|
PORTVERSION= 0.1.3
|
|
PORTREVISION= 13
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= SF/mjpeg/OldFiles
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Supports reading/writing of MJPEG video in YUV 4:2:2 JPEG
|
|
|
|
USE_SDL= sdl
|
|
USE_GNOME= glib12
|
|
USES= gmake jpeg
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-m4data-prefix=${PREFIX}/share
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
# 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|' \
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
|
# Resolve name collision with jpeg-8
|
|
@${REINPLACE_CMD} -e 's|jpeg_mem_src|local_jpeg_mem_src|' \
|
|
${WRKSRC}/movtar_play.c
|
|
.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
|
|
|
|
.include <bsd.port.post.mk>
|