freebsd-ports/multimedia/libfame/Makefile
Mikhail Teterin a0f2c30ec6 Fix configure to stop appending ``-march=i386'' to CFLAGS on i386.
Depending on other optimization options, compiler could get confused
into an internal error, and was, probably, building pessimized code
even when working.

Ensure warning-free build, while I'm here. Mark the SSE as having no
effect -- ``--enable-sse'' causes configure to add the HAS_SSE define
to CFLAGS, but nothing in the current release checks for that flag. Ha-ha.

There are SSE implementations of some parts of the code (they are just
no used), so, perhaps, someone can add another patch to make use of them,
when possible.
2005-07-12 23:41:42 +00:00

47 lines
1.0 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: libfame
# Date created: Mar 23, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= libfame
PORTVERSION= 0.9.1
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= fame
MAINTAINER= ports@FreeBSD.org
COMMENT= A video encoding library
USE_LIBTOOL_VER=15
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN3= fame_close.3 fame_encode_frame.3 fame_get_object.3 fame_init.3 \
fame_open.3 fame_register.3 fame_unregister.3 fame_encode_slice.3 \
fame_start_frame.3 fame_end_frame.3
OPTIONS= SSE "SSE optimized routines (no effect in this release)" off \
MMX "MMX optimized routines" on
.include <bsd.port.pre.mk>
.if defined(WITH_SSE)
CONFIGURE_ARGS+= --enable-sse
.endif
.if defined(WITHOUT_MMX)
CONFIGURE_ARGS+= --disable-mmx
.endif
post-patch:
@${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
${WRKSRC}/configure
.include <bsd.port.post.mk>