openbsd-ports/multimedia/x264/Makefile
ajacoutot 53a08955f5 - really use nasm to build x264 under i386 and use yasm under amd64
- dont't add -fPIC to $CFLAGS automatically (even though we set --enable-pic) ;
this is handled in the Makefile so that we can build the static lib from
non-pic objects

Tested by sthen and myself
2007-07-20 20:11:48 +00:00

49 lines
987 B
Makefile

# $OpenBSD: Makefile,v 1.3 2007/07/20 20:11:48 ajacoutot Exp $
COMMENT= free h264/avc encoder
V= 20070325
DISTNAME= x264-snapshot-${V}-2245
PKGNAME= x264-${V}p1
SHARED_LIBS= x264 0.0 # 5.0
CATEGORIES= multimedia
HOMEPAGE= http://www.videolan.org/developers/x264.html
EXTRACT_SUFX= .tar.bz2
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ftp://ftp.videolan.org/pub/videolan/x264/snapshots/
WANTLIB= c m pthread
NO_REGRESS= Yes
USE_GMAKE= Yes
CONFIGURE_STYLE=simple
CONFIGURE_ENV= API=${LIBx264_VERSION}
CONFIGURE_ARGS+=${CONFIGURE_SHARED} \
--enable-pthread \
--enable-pic
.if ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS+= ::devel/nasm
.endif
.if ${MACHINE_ARCH} == "amd64"
BUILD_DEPENDS+= ::devel/yasm
.endif
pre-configure:
@perl -pi -e 's,!!PREFIX!!,${PREFIX},g; s,!!X11BASE!!,${X11BASE},g' \
${WRKSRC}/configure
.include <bsd.port.mk>