diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2017-02-08 23:48:45 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2017-02-08 23:48:45 +0000 |
commit | e9df89e4bbd1b71b2c057cee491bff33f5a8d2f1 (patch) | |
tree | 42c22d1477041c9b7ca631502d2434af2119fc0b /net | |
parent | e142d2d1a5d5a0852dff4b4ca9a1745b662eb6ff (diff) | |
download | pkgsrc-e9df89e4bbd1b71b2c057cee491bff33f5a8d2f1.tar.gz |
add an option for static linking. No change to the default build
Diffstat (limited to 'net')
-rw-r--r-- | net/inadyn/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/net/inadyn/Makefile b/net/inadyn/Makefile index 06637e65cc3..b72895a055d 100644 --- a/net/inadyn/Makefile +++ b/net/inadyn/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2016/05/29 22:32:11 abs Exp $ +# $NetBSD: Makefile,v 1.14 2017/02/08 23:48:45 dmcmahill Exp $ DISTNAME= inadyn-1.99.15 CATEGORIES= net @@ -40,6 +40,20 @@ SUBST_FILES.var= man/inadyn.conf.5 man/inadyn.8 include/ddns.h SUBST_MESSAGE.var= Adjusting path to VARBASE SUBST_STAGE.var= pre-configure +.include "../../mk/bsd.prefs.mk" + +PKG_OPTIONS_VAR= PKG_OPTIONS.inadyn +PKG_SUPPORTED_OPTIONS= static + +.include "../../mk/bsd.options.mk" + +## +## Static link +## +.if !empty(PKG_OPTIONS:Mstatic) +LDFLAGS+= -static +.endif + pre-configure: cd ${WRKSRC} && autoreconf -i |