pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/fdtools Link with -lsocket on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8347c5b9bc7a
branches:  trunk
changeset: 381049:8347c5b9bc7a
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Mon May 28 12:00:39 2018 +0000

description:
Link with -lsocket on SunOS.

diffstat:

 sysutils/fdtools/Makefile                                             |  6 +++++-
 sysutils/fdtools/distinfo                                             |  6 +++---
 sysutils/fdtools/patches/patch-conf-compile_defaults_host__compile.sh |  6 +++---
 sysutils/fdtools/patches/patch-conf-compile_defaults_host__link.sh    |  6 +++---
 4 files changed, 14 insertions(+), 10 deletions(-)

diffs (76 lines):

diff -r 3344a2e20521 -r 8347c5b9bc7a sysutils/fdtools/Makefile
--- a/sysutils/fdtools/Makefile Mon May 28 08:46:32 2018 +0000
+++ b/sysutils/fdtools/Makefile Mon May 28 12:00:39 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2017/10/03 00:43:22 schmonz Exp $
+# $NetBSD: Makefile,v 1.2 2018/05/28 12:00:39 schmonz Exp $
 
 DISTNAME=              fdtools-2015.03.28
 CATEGORIES=            sysutils
@@ -15,6 +15,10 @@
 WRKSRC=                        ${WRKDIR}/misc/${PKGNAME_NOREV}
 DJB_SLASHPACKAGE=      YES
 
+CPPFLAGS+=             -I ${PREFIX:Q}/include
+LDFLAGS+=              -L ${PREFIX:Q}/lib/skalibs
+LDFLAGS.SunOS+=                -lsocket
+
 INSTALLATION_DIRS+=    bin
 
 do-configure:
diff -r 3344a2e20521 -r 8347c5b9bc7a sysutils/fdtools/distinfo
--- a/sysutils/fdtools/distinfo Mon May 28 08:46:32 2018 +0000
+++ b/sysutils/fdtools/distinfo Mon May 28 12:00:39 2018 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.1 2017/10/03 00:43:22 schmonz Exp $
+$NetBSD: distinfo,v 1.2 2018/05/28 12:00:39 schmonz Exp $
 
 SHA1 (fdtools-2015.03.28.tar.bz2) = 7bd1c9e067df8297e1f4bc430c33903899585aee
 RMD160 (fdtools-2015.03.28.tar.bz2) = d1bfed8c1718b5ec178cc763416f677f4cc26f0d
 SHA512 (fdtools-2015.03.28.tar.bz2) = e6b5665869538758edd90876c1696d753aa5859e9dc2ceffbcac98ea682e730424ea972126d20d90945d554a833278059558d85ce5290c09b3f339d0191f565c
 Size (fdtools-2015.03.28.tar.bz2) = 40057 bytes
-SHA1 (patch-conf-compile_defaults_host__compile.sh) = 07d7dcb943e664f838c7b1a72f8bb92d4ad994a0
-SHA1 (patch-conf-compile_defaults_host__link.sh) = d7e2ba5574885e4f09158678681f58e457a14732
+SHA1 (patch-conf-compile_defaults_host__compile.sh) = d30f146419e30cd717c299b8196918db3095f3e8
+SHA1 (patch-conf-compile_defaults_host__link.sh) = 77e80f0ed9adc0ead6f9afea9b76dbb630ff2ce0
 SHA1 (patch-src_recvfd.c) = 4fe086cae8fa9623e29954cb03ee5a63a72d25af
 SHA1 (patch-src_sigsched.c) = ed4cf2111ab65fb80f5cbcfd6aa0c49db12a845a
diff -r 3344a2e20521 -r 8347c5b9bc7a sysutils/fdtools/patches/patch-conf-compile_defaults_host__compile.sh
--- a/sysutils/fdtools/patches/patch-conf-compile_defaults_host__compile.sh     Mon May 28 08:46:32 2018 +0000
+++ b/sysutils/fdtools/patches/patch-conf-compile_defaults_host__compile.sh     Mon May 28 12:00:39 2018 +0000
@@ -1,13 +1,13 @@
-$NetBSD: patch-conf-compile_defaults_host__compile.sh,v 1.1 2017/10/03 00:43:22 schmonz Exp $
+$NetBSD: patch-conf-compile_defaults_host__compile.sh,v 1.2 2018/05/28 12:00:39 schmonz Exp $
 
 Find skalibs.
 
---- conf-compile/defaults/host_compile.sh.orig 2015-03-28 22:14:58.000000000 +0000
+--- conf-compile/defaults/host_compile.sh.orig 2015-03-28 22:14:58.219617961 +0000
 +++ conf-compile/defaults/host_compile.sh
 @@ -4,5 +4,5 @@
  # create, respectively.  The arguments are -I search directives; make sure to
  # include them in the compilation command.
  
 -gcc -O2 ${1+"$@"} -c "${input?}" -o "${output?}" \
-+gcc -O2 -I ${PREFIX}/include ${1+"$@"} -c "${input?}" -o "${output?}" \
++gcc ${CFLAGS} ${CPPFLAGS} ${1+"$@"} -c "${input?}" -o "${output?}" \
    -Wall -W -Wpointer-arith -Wcast-align -Wwrite-strings
diff -r 3344a2e20521 -r 8347c5b9bc7a sysutils/fdtools/patches/patch-conf-compile_defaults_host__link.sh
--- a/sysutils/fdtools/patches/patch-conf-compile_defaults_host__link.sh        Mon May 28 08:46:32 2018 +0000
+++ b/sysutils/fdtools/patches/patch-conf-compile_defaults_host__link.sh        Mon May 28 12:00:39 2018 +0000
@@ -1,12 +1,12 @@
-$NetBSD: patch-conf-compile_defaults_host__link.sh,v 1.1 2017/10/03 00:43:22 schmonz Exp $
+$NetBSD: patch-conf-compile_defaults_host__link.sh,v 1.2 2018/05/28 12:00:39 schmonz Exp $
 
 Find skalibs.
 
---- conf-compile/defaults/host_link.sh.orig    2015-03-28 22:14:58.000000000 +0000
+--- conf-compile/defaults/host_link.sh.orig    2015-03-28 22:14:58.223617960 +0000
 +++ conf-compile/defaults/host_link.sh
 @@ -3,4 +3,4 @@
  # variable $output names the library file to create.  The arguments are -L
  # search directives and the input object files and libraries.
  
 -gcc -o "${output?}" -s ${1+"$@"}
-+gcc -o "${output?}" -s -L ${PREFIX}/lib/skalibs ${1+"$@"}
++gcc ${LDFLAGS} -o "${output?}" -s ${1+"$@"}



Home | Main Index | Thread Index | Old Index