summaryrefslogtreecommitdiff
path: root/net/irrd/options.mk
diff options
context:
space:
mode:
authorspz <spz@pkgsrc.org>2011-10-17 20:14:50 +0000
committerspz <spz@pkgsrc.org>2011-10-17 20:14:50 +0000
commit18444b458deb91f04c11683cd1ea1194a0eef555 (patch)
treea1257dd12cdf684eac0356e09347cbd1c46f280d /net/irrd/options.mk
parent0c4d99007a5c4d651eb929f746c0449c5183bbc2 (diff)
downloadpkgsrc-18444b458deb91f04c11683cd1ea1194a0eef555.tar.gz
teach the package options for cases where pthreads would be used, but are
broken
Diffstat (limited to 'net/irrd/options.mk')
-rw-r--r--net/irrd/options.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/irrd/options.mk b/net/irrd/options.mk
new file mode 100644
index 00000000000..174301aea00
--- /dev/null
+++ b/net/irrd/options.mk
@@ -0,0 +1,15 @@
+PKG_OPTIONS_VAR= PKG_OPTIONS.irrd
+PKG_SUPPORTED_OPTIONS= pthreads
+PKG_SUGGESTED_OPTIONS= pthreads
+
+.include "../../mk/bsd.options.mk"
+
+# include support for pthreads
+.if !empty(PKG_OPTIONS:Mpthreads)
+CONFIGURE_ARGS+= --enable-thread
+PTHREAD_AUTO_VARS= yes
+.include "../../mk/pthread.buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-thread
+.endif
+