pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/inadyn add an option for static linking. No chang...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e9d49ea06ab1
branches:  trunk
changeset: 358289:e9d49ea06ab1
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Wed Feb 08 23:48:45 2017 +0000

description:
add an option for static linking.  No change to the default build

diffstat:

 net/inadyn/Makefile |  16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r d335f393f26d -r e9d49ea06ab1 net/inadyn/Makefile
--- a/net/inadyn/Makefile       Wed Feb 08 21:59:38 2017 +0000
+++ b/net/inadyn/Makefile       Wed Feb 08 23:48:45 2017 +0000
@@ -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_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
 



Home | Main Index | Thread Index | Old Index