pkgsrc/multimedia/x264-devel/options.mk
2008-12-18 22:23:36 +00:00

23 lines
596 B
Makefile

# $NetBSD: options.mk,v 1.2 2008/12/18 22:23:36 bjs Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.x264-devel
PKG_SUPPORTED_OPTIONS= debug threads
.if !empty(X264_BUILD_THREADS_SUPPORT:M[Yy][Ee][Ss])
PKG_SUGGESTED_OPTIONS+= threads
.endif
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mthreads)
CONFIGURE_ARGS+= --enable-pthread
. include "../../mk/pthread.buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-pthread
.endif
.if !empty(PKG_OPTIONS:Mdebug) || \
!empty(INSTALL_UNSTRIPPED:Uno:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --enable-debug
BUILDLINK_TRANSFORM+= rm:-fomit-frame-pointer
.endif