Add files from parent branch HEAD:
[pkgsrc.git] / multimedia / x264-devel / options.mk
1 # $NetBSD: options.mk,v 1.1 2008/12/18 22:22:47 bjs Exp $
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.x264-devel
4 PKG_SUPPORTED_OPTIONS=  debug threads
5
6 .if !empty(X264_BUILD_THREADS_SUPPORT:M[Yy][Ee][Ss])
7 PKG_SUGGESTED_OPTIONS+= threads
8 .endif
9
10 .include "../../mk/bsd.options.mk"
11
12 .if !empty(PKG_OPTIONS:Mthreads)
13 CONFIGURE_ARGS+=        --enable-pthread
14 .  include "../../mk/pthread.buildlink3.mk"
15 .else
16 CONFIGURE_ARGS+=        --disable-pthread
17 .endif
18
19 .if !empty(PKG_OPTIONS:Mdebug) || \
20     !empty(INSTALL_UNSTRIPPED:Uno:M[Yy][Ee][Ss])
21 CONFIGURE_ARGS+=        --enable-debug
22 BUILDLINK_TRANSFORM+=   rm:-fomit-frame-pointer
23 .endif