View | Details | Raw Unified | Return to bug 197707
Collapse All | Expand All

(-)devel/libosmo-netif/Makefile (-9 / +5 lines)
Lines 15-31 LICENSE_FILE= ${WRKSRC}/COPYING Link Here
15
LIB_DEPENDS=	libosmocore.so:${PORTSDIR}/devel/libosmocore \
15
LIB_DEPENDS=	libosmocore.so:${PORTSDIR}/devel/libosmocore \
16
		libosmoabis.so:${PORTSDIR}/devel/libosmo-abis
16
		libosmoabis.so:${PORTSDIR}/devel/libosmo-abis
17
17
18
USES=		libtool pkgconfig
18
USES=		autoreconf libtool pathfix pkgconfig
19
19
PATHFIX_MAKEFILEIN=Makefile.am
20
USE_AUTOTOOLS=	aclocal autoconf automake libtoolize autoheader
20
GNU_CONFIGURE=	yes
21
AUTOMAKE_ARGS=	--gnu --add-missing --copy
21
INSTALL_TARGET=	install-strip
22
USE_LDCONFIG=	yes
22
23
23
post-patch:
24
post-patch:
24
	${REINPLACE_CMD} -e 's|pkgconfigdir.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g' \
25
		${WRKSRC}/Makefile.am
26
	${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version
25
	${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version
27
26
28
post-stage:
29
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libosmonetif.so.2.0.0
30
31
.include <bsd.port.mk>
27
.include <bsd.port.mk>
(-)devel/libosmo-netif/files/patch-abis-ipa-stream-client.c (-3 / +1 lines)
Lines 1-10 Link Here
1
--- src/channel/abis/ipa_stream_client.c.orig	2015-02-16 17:12:17.000000000 +0200
1
--- src/channel/abis/ipa_stream_client.c.orig	2015-02-16 17:12:17.000000000 +0200
2
+++ src/channel/abis/ipa_stream_client.c	2015-02-16 17:09:59.000000000 +0200
2
+++ src/channel/abis/ipa_stream_client.c	2015-02-16 17:09:59.000000000 +0200
3
@@ -1,4 +1,7 @@
3
@@ -1,4 +1,5 @@
4
 #include <stdlib.h>
4
 #include <stdlib.h>
5
+#ifdef __FreeBSD__
6
+#include <sys/types.h>
5
+#include <sys/types.h>
7
+#endif
8
 #include <netinet/in.h>
6
 #include <netinet/in.h>
9
 #include <netinet/tcp.h>
7
 #include <netinet/tcp.h>
10
 #include <sys/socket.h>
8
 #include <sys/socket.h>
(-)devel/libosmo-netif/files/patch-abis-ipa-stream-server.c (-3 / +1 lines)
Lines 1-10 Link Here
1
--- src/channel/abis/ipa_stream_server.c.orig	2015-02-16 17:09:48.000000000 +0200
1
--- src/channel/abis/ipa_stream_server.c.orig	2015-02-16 17:09:48.000000000 +0200
2
+++ src/channel/abis/ipa_stream_server.c	2015-02-16 17:08:09.000000000 +0200
2
+++ src/channel/abis/ipa_stream_server.c	2015-02-16 17:08:09.000000000 +0200
3
@@ -1,4 +1,7 @@
3
@@ -1,4 +1,5 @@
4
 #include <stdlib.h>
4
 #include <stdlib.h>
5
+#ifdef __FreeBSD__
6
+#include <sys/types.h>
5
+#include <sys/types.h>
7
+#endif
8
 #include <netinet/in.h>
6
 #include <netinet/in.h>
9
 #include <netinet/tcp.h>
7
 #include <netinet/tcp.h>
10
 #include <sys/socket.h>
8
 #include <sys/socket.h>
(-)devel/libosmo-netif/files/patch-configure.ac (-1 / +1 lines)
Lines 5-11 Link Here
5
 AC_SUBST(SYMBOL_VISIBILITY)
5
 AC_SUBST(SYMBOL_VISIBILITY)
6
 
6
 
7
-AC_CHECK_HEADER([endian.h], [], [AC_MSG_ERROR([endian.h not found!]) ])
7
-AC_CHECK_HEADER([endian.h], [], [AC_MSG_ERROR([endian.h not found!]) ])
8
+AC_CHECK_HEADER([sys/endian.h], [], [AC_MSG_ERROR([endian.h not found!]) ])
8
+AC_CHECK_HEADERS([endian.h sys/endian.h])
9
 
9
 
10
 dnl Generate the output
10
 dnl Generate the output
11
 AM_CONFIG_HEADER(config.h)
11
 AM_CONFIG_HEADER(config.h)
(-)devel/libosmo-netif/files/patch-datagram.c (-3 / +1 lines)
Lines 1-12 Link Here
1
--- src/datagram.c.orig	2015-02-16 11:44:42.000000000 +0200
1
--- src/datagram.c.orig	2015-02-16 11:44:42.000000000 +0200
2
+++ src/datagram.c	2015-02-16 11:44:12.000000000 +0200
2
+++ src/datagram.c	2015-02-16 11:44:12.000000000 +0200
3
@@ -19,6 +19,10 @@
3
@@ -19,6 +19,8 @@
4
 
4
 
5
 #include <osmocom/netif/datagram.h>
5
 #include <osmocom/netif/datagram.h>
6
 
6
 
7
+#ifdef __FreeBSD__
8
+#include <netinet/in.h>
7
+#include <netinet/in.h>
9
+#endif
10
+
8
+
11
 /*
9
 /*
12
  * Client side.
10
  * Client side.
(-)devel/libosmo-netif/files/patch-ipa-stream-client.c (-3 / +1 lines)
Lines 1-13 Link Here
1
--- examples/ipa-stream-client.c.orig	2014-09-08 08:52:08.000000000 +0300
1
--- examples/ipa-stream-client.c.orig	2014-09-08 08:52:08.000000000 +0300
2
+++ examples/ipa-stream-client.c	2015-02-16 17:06:50.000000000 +0200
2
+++ examples/ipa-stream-client.c	2015-02-16 17:06:50.000000000 +0200
3
@@ -6,6 +6,10 @@
3
@@ -6,6 +6,8 @@
4
 #include <signal.h>
4
 #include <signal.h>
5
 #include <sys/time.h>
5
 #include <sys/time.h>
6
 #include <arpa/inet.h>
6
 #include <arpa/inet.h>
7
+#ifdef __FreeBSD__
8
+#include <sys/types.h>
7
+#include <sys/types.h>
9
+#include <netinet/in.h>
8
+#include <netinet/in.h>
10
+#endif
11
 #include <netinet/tcp.h>
9
 #include <netinet/tcp.h>
12
 
10
 
13
 #include <osmocom/core/select.h>
11
 #include <osmocom/core/select.h>
(-)devel/libosmo-netif/files/patch-ipa-stream-server.c (-3 / +1 lines)
Lines 1-13 Link Here
1
--- examples/ipa-stream-server.c.orig	2014-09-08 08:52:08.000000000 +0300
1
--- examples/ipa-stream-server.c.orig	2014-09-08 08:52:08.000000000 +0300
2
+++ examples/ipa-stream-server.c	2015-02-16 17:05:21.000000000 +0200
2
+++ examples/ipa-stream-server.c	2015-02-16 17:05:21.000000000 +0200
3
@@ -4,6 +4,10 @@
3
@@ -4,6 +4,8 @@
4
 #include <string.h>
4
 #include <string.h>
5
 #include <unistd.h>
5
 #include <unistd.h>
6
 #include <arpa/inet.h>
6
 #include <arpa/inet.h>
7
+#ifdef __FreeBSD__
8
+#include <sys/types.h>
7
+#include <sys/types.h>
9
+#include <netinet/in.h>
8
+#include <netinet/in.h>
10
+#endif
11
 #include <netinet/tcp.h>
9
 #include <netinet/tcp.h>
12
 
10
 
13
 #include <osmocom/core/select.h>
11
 #include <osmocom/core/select.h>
(-)devel/libosmo-netif/files/patch-rtp.c (-2 / +5 lines)
Lines 1-9 Link Here
1
--- src/rtp.c.orig	2014-09-08 08:52:08.000000000 +0300
1
--- src/rtp.c.orig	2014-09-08 08:52:08.000000000 +0300
2
+++ src/rtp.c	2015-02-16 11:54:11.000000000 +0200
2
+++ src/rtp.c	2015-02-16 11:54:11.000000000 +0200
3
@@ -1,6 +1,10 @@
3
@@ -1,6 +1,13 @@
4
 #include <stdint.h>
4
 #include <stdint.h>
5
 #include <sys/time.h>
5
 #include <sys/time.h>
6
+#ifdef __FreeBSD__
6
+#ifdef HAVE_CONFIG_H
7
+#include "config.h"
8
+#endif
9
+#ifdef HAVE_SYS_ENDIAN_H
7
+#include <sys/endian.h>
10
+#include <sys/endian.h>
8
+#else
11
+#else
9
 #include <endian.h>
12
 #include <endian.h>
(-)devel/libosmo-netif/files/patch-stream.c (-3 / +1 lines)
Lines 1-12 Link Here
1
--- src/stream.c.orig	2015-02-16 11:47:30.000000000 +0200
1
--- src/stream.c.orig	2015-02-16 11:47:30.000000000 +0200
2
+++ src/stream.c	2015-02-16 11:48:03.000000000 +0200
2
+++ src/stream.c	2015-02-16 11:48:03.000000000 +0200
3
@@ -19,6 +19,10 @@
3
@@ -19,6 +19,8 @@
4
 
4
 
5
 #include <osmocom/netif/stream.h>
5
 #include <osmocom/netif/stream.h>
6
 
6
 
7
+#ifdef __FreeBSD__
8
+#include <netinet/in.h>
7
+#include <netinet/in.h>
9
+#endif
10
+
8
+
11
 /*
9
 /*
12
  * Client side.
10
  * Client side.
(-)devel/libosmo-netif/pkg-descr (-2 lines)
Lines 1-5 Link Here
1
Library containing common/shared code regarding network interface.
1
Library containing common/shared code regarding network interface.
2
Development headers for Osmocom network interface.
3
Debug symbols for Osmocom network interface.
4
2
5
WWW: http://git.osmocom.org/libosmo-netif/
3
WWW: http://git.osmocom.org/libosmo-netif/

Return to bug 197707