From 8f2a9d1543a9652dda7ad4aad44dcbce3b731bfc Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Sat, 7 Oct 2017 12:19:41 +0200 Subject: net-misc/ipsorcery: EAPI bump. Add USE=gtk. Package-Manager: Portage-2.3.11, Repoman-2.3.3 --- .../files/ipsorcery-2.0.9-_BSD_SOURCE.patch | 13 +++++++++++++ .../ipsorcery/files/ipsorcery-2.0.9-gentoo.patch | 21 +++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 net-misc/ipsorcery/files/ipsorcery-2.0.9-_BSD_SOURCE.patch create mode 100644 net-misc/ipsorcery/files/ipsorcery-2.0.9-gentoo.patch (limited to 'net-misc/ipsorcery/files') diff --git a/net-misc/ipsorcery/files/ipsorcery-2.0.9-_BSD_SOURCE.patch b/net-misc/ipsorcery/files/ipsorcery-2.0.9-_BSD_SOURCE.patch new file mode 100644 index 000000000000..ef0fca666f6c --- /dev/null +++ b/net-misc/ipsorcery/files/ipsorcery-2.0.9-_BSD_SOURCE.patch @@ -0,0 +1,13 @@ +--- a/wand.h ++++ b/wand.h +@@ -19,8 +19,8 @@ + #ifndef _WAND_H + #define _WAND_H + +-#ifndef _BSD_SOURCE +-#define _BSD_SOURCE ++#ifndef _DEFAULT_SOURCE ++#define _DEFAULT_SOURCE + #endif + + #ifndef __FAVOR_BSD diff --git a/net-misc/ipsorcery/files/ipsorcery-2.0.9-gentoo.patch b/net-misc/ipsorcery/files/ipsorcery-2.0.9-gentoo.patch new file mode 100644 index 000000000000..6a0932c84e2f --- /dev/null +++ b/net-misc/ipsorcery/files/ipsorcery-2.0.9-gentoo.patch @@ -0,0 +1,21 @@ +--- a/Makefile ++++ b/Makefile +@@ -12,15 +12,15 @@ + all: con gtk + + con: +- $(CC) -g -O2 -Wall -ansi -D_VERSION_=\"2.0.9\" -D_CON_ $(CON) -o ipmagic ++ $(CC) $(LDFLAGS) $(CFLAGS) -Wall -ansi -D_VERSION_=\"2.0.9\" -D_CON_ $(CON) -o ipmagic + + + gtk: +- $(CC) -g -O2 -Wall -ansi -D_GTK_ -DGTK_ENABLE_BROKEN $(SRC) -o $(SPELL) `pkg-config --libs gtk+-2.0` `pkg-config --cflags gtk+-2.0` ++ $(CC) $(LDFLAGS) $(CFLAGS) $(shell $(PKG_CONFIG) --cflags gtk+-2.0) -Wall -ansi -D_GTK_ -DGTK_ENABLE_BROKEN $(SRC) -o $(SPELL) $(shell $(PKG_CONFIG) --libs gtk+-2.0) + + + solaris: +- $(CC) -g -O2 -Wall -ansi -D_CON_ $(CON) -o $(SPELL) -lsocket -lnsl ++ $(CC) $(LDFLAGS) $(CFLAGS) -Wall -ansi -D_CON_ $(CON) -o $(SPELL) -lsocket -lnsl + + + install: con-install -- cgit v1.2.3-65-gdbad