pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc honour LDFLAGS and LIBS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f8e4aa76db88
branches:  trunk
changeset: 497492:f8e4aa76db88
user:      grant <grant%pkgsrc.org@localhost>
date:      Fri Jul 29 04:40:47 2005 +0000

description:
honour LDFLAGS and LIBS.

diffstat:

 chat/bsflite/Makefile                |   5 ++++-
 chat/bsflite/distinfo                |   4 +++-
 chat/bsflite/patches/patch-aa        |  35 +++++++++++++++++++++++++++++++++++
 chat/bsflite/patches/patch-ab        |  13 +++++++++++++
 converters/rss2html/Makefile         |   5 ++++-
 converters/rss2html/distinfo         |   3 ++-
 converters/rss2html/patches/patch-aa |  13 +++++++++++++
 7 files changed, 74 insertions(+), 4 deletions(-)

diffs (130 lines):

diff -r 06e0fd3d10b8 -r f8e4aa76db88 chat/bsflite/Makefile
--- a/chat/bsflite/Makefile     Fri Jul 29 04:25:18 2005 +0000
+++ b/chat/bsflite/Makefile     Fri Jul 29 04:40:47 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2005/04/16 16:44:53 recht Exp $
+# $NetBSD: Makefile,v 1.4 2005/07/29 04:50:39 grant Exp $
 
 DISTNAME=      bsflite-0.80
 CATEGORIES=    chat
@@ -18,4 +18,7 @@
        ${INSTALL_DATA} ${WRKSRC}/config-example \
                ${PREFIX}/share/examples/bsflite
 
+LIBS.SunOS+=   -lnsl -lsocket
+MAKE_ENV+=     LIBS=${LIBS:Q}
+
 .include "../../mk/bsd.pkg.mk"
diff -r 06e0fd3d10b8 -r f8e4aa76db88 chat/bsflite/distinfo
--- a/chat/bsflite/distinfo     Fri Jul 29 04:25:18 2005 +0000
+++ b/chat/bsflite/distinfo     Fri Jul 29 04:40:47 2005 +0000
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.3 2005/04/16 16:44:53 recht Exp $
+$NetBSD: distinfo,v 1.4 2005/07/29 04:50:39 grant Exp $
 
 SHA1 (bsflite-0.80.tar.gz) = 228b02851dedc44a4ee6dbc2fd5dca6ff059c4e3
 RMD160 (bsflite-0.80.tar.gz) = cec3b13fcf4afc37f4ee0a382d63f024b1f31861
 Size (bsflite-0.80.tar.gz) = 50529 bytes
+SHA1 (patch-aa) = e4afa22dab3b8538f490670c9e1474dba5eca079
+SHA1 (patch-ab) = 03dfe600654f9df4342fc7768665f5f9308e72d3
diff -r 06e0fd3d10b8 -r f8e4aa76db88 chat/bsflite/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/bsflite/patches/patch-aa     Fri Jul 29 04:40:47 2005 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-aa,v 1.1 2005/07/29 04:50:39 grant Exp $
+
+--- Makefile.orig      2005-04-14 02:23:06.000000000 +1000
++++ Makefile
+@@ -2,7 +2,7 @@ EXEC=bsflite
+ #EXEC=bsflite.exe
+ #CC=i386-pc-msdosdjgpp-gcc
+ #CC=mingw32-gcc
+-CC=gcc
++#CC=gcc
+ #
+ # Remove -DTIMESTAMPS to remove timestamps on messages/events
+ #
+@@ -23,10 +23,10 @@ CFLAGS=-O -DTIMESTAMPS
+ #
+ # Add -lsocket -lnsl for Solaris
+ #
+-LIBS=-limcomm
++#LIBS=-limcomm
+ #LIBS+=-lwatt
+ #LIBS+=-lwsock32
+-LDFLAGS=-Limcomm/ -s
++#LDFLAGS=-Limcomm/ -s
+ #LDFLAGS+=-L/usr/local/djgpp/watt/lib
+ OBJECTS=aim.o away.o bsf.o cleaner.o config.o conn.o input.o log.o out.o queue.o util.o
+ 
+@@ -35,7 +35,7 @@ all:
+       $(MAKE) $(MFLAGS) $(EXEC)
+ 
+ $(EXEC):$(OBJECTS)
+-      $(CC) $(CFLAGS) $(LDFLAGS) -o $(EXEC) $(OBJECTS) $(LIBS)
++      $(CC) $(CFLAGS) -Limcomm $(LDFLAGS) -o $(EXEC) $(OBJECTS) -limcomm $(LIBS)
+ 
+ clean:
+       rm -f *.o *~ $(EXEC)
diff -r 06e0fd3d10b8 -r f8e4aa76db88 chat/bsflite/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/bsflite/patches/patch-ab     Fri Jul 29 04:40:47 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2005/07/29 04:50:39 grant Exp $
+
+--- imcomm/Makefile.orig       2005-04-14 02:22:49.000000000 +1000
++++ imcomm/Makefile
+@@ -8,7 +8,7 @@ RANLIB=ranlib
+ LIB=libimcomm.a
+ #CC=i386-pc-msdosdjgpp-gcc
+ #CC=mingw32-gcc
+-CC=gcc
++#CC=gcc
+ CFLAGS=-O
+ RM=rm -f
+ #CFLAGS+=-I/usr/local/djgpp/watt/inc
diff -r 06e0fd3d10b8 -r f8e4aa76db88 converters/rss2html/Makefile
--- a/converters/rss2html/Makefile      Fri Jul 29 04:25:18 2005 +0000
+++ b/converters/rss2html/Makefile      Fri Jul 29 04:40:47 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2005/05/28 05:57:25 snj Exp $
+# $NetBSD: Makefile,v 1.8 2005/07/29 04:40:47 grant Exp $
 #
 
 DISTNAME=              rss2html-0.7.2
@@ -15,4 +15,7 @@
 
 INSTALLATION_DIRS+=    bin
 
+LIBS.SunOS+=           -lnsl -lsocket
+MAKE_ENV+=             LIBS=${LIBS:Q}
+
 .include "../../mk/bsd.pkg.mk"
diff -r 06e0fd3d10b8 -r f8e4aa76db88 converters/rss2html/distinfo
--- a/converters/rss2html/distinfo      Fri Jul 29 04:25:18 2005 +0000
+++ b/converters/rss2html/distinfo      Fri Jul 29 04:40:47 2005 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.7 2005/05/28 05:57:25 snj Exp $
+$NetBSD: distinfo,v 1.8 2005/07/29 04:40:47 grant Exp $
 
 SHA1 (rss2html-0.7.2.tar.gz) = 5acce10e8a1bcc290f05572b50a8085128e796d5
 RMD160 (rss2html-0.7.2.tar.gz) = fe5a2343fcc613c65731580061eda621a70486b1
 Size (rss2html-0.7.2.tar.gz) = 6242 bytes
+SHA1 (patch-aa) = 54b4460fe9019064870d363ebc4e57eb06589eb3
diff -r 06e0fd3d10b8 -r f8e4aa76db88 converters/rss2html/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/rss2html/patches/patch-aa      Fri Jul 29 04:40:47 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.3 2005/07/29 04:40:47 grant Exp $
+
+--- src/Makefile.orig  2004-11-28 07:57:28.000000000 +1100
++++ src/Makefile
+@@ -5,7 +5,7 @@ CFLAGS+=-DVERSION=\"${VERSION}\"
+ OBJ=main.o rsslist.o config.o rssshow.o download.o
+ 
+ all: ${OBJ}
+-      $(CC) ${CFLAGS} ${OBJ} -o ${BIN}
++      $(CC) ${CFLAGS} ${OBJ} ${LDFLAGS} ${LIBS} -o ${BIN}
+ 
+ clean:
+       rm -f ${BIN} ${OBJ}



Home | Main Index | Thread Index | Old Index