- Don't use ${CONFIGURE_SHARED} since this isn't autoconf proper

- Add missing --prefix
- Remove no longer used pre-configure target
This commit is contained in:
brad 2008-08-22 12:43:33 +00:00
parent 7dbaaa1ccf
commit 7117b44c59

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.6 2008/08/20 01:44:44 jakemsr Exp $
# $OpenBSD: Makefile,v 1.7 2008/08/22 12:43:33 brad Exp $
COMMENT= free H264/AVC encoder
@ -21,10 +21,9 @@ PERMIT_DISTFILES_FTP= Yes
WANTLIB= c m pthread
USE_GMAKE= Yes
CONFIGURE_STYLE=simple
CONFIGURE_STYLE= simple
CONFIGURE_ENV= API=${LIBx264_VERSION}
CONFIGURE_ARGS+=${CONFIGURE_SHARED} \
--enable-pic \
CONFIGURE_ARGS+=--prefix=${PREFIX} \
--disable-mp4-output
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
@ -33,8 +32,9 @@ BUILD_DEPENDS+= ::devel/yasm
NO_REGRESS= Yes
pre-configure:
@perl -pi -e 's,!!PREFIX!!,${PREFIX},g; s,!!X11BASE!!,${X11BASE},g' \
${WRKSRC}/configure
.include <bsd.port.mk>
.if ${NO_SHARED_LIBS:L} == "no"
CONFIGURE_ARGS+=--enable-shared \
--enable-pic
.endif