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

(-)devel/libosmo-abis/Makefile (-10 / +4 lines)
Lines 15-33 LICENSE_FILE= ${WRKSRC}/COPYING Link Here
15
LIB_DEPENDS=	libosmocore.so:${PORTSDIR}/devel/libosmocore \
15
LIB_DEPENDS=	libosmocore.so:${PORTSDIR}/devel/libosmocore \
16
		libortp.so:${PORTSDIR}/net/ortp
16
		libortp.so:${PORTSDIR}/net/ortp
17
17
18
USES=		gmake libtool pkgconfig
18
USES=		autoreconf gmake 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
USE_LDCONFIG=	yes
23
23
24
post-patch:
24
post-patch:
25
	${REINPLACE_CMD} -e 's|pkgconfigdir.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g' \
26
		${WRKSRC}/Makefile.am
27
	${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version
25
	${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version
28
26
29
post-stage:
30
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libosmoabis.so.4
31
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libosmotrau.so.0
32
33
.include <bsd.port.mk>
27
.include <bsd.port.mk>
(-)devel/libosmo-netif/Makefile (+10 lines)
Lines 22-27 INSTALL_TARGET= install-strip Link Here
22
USE_LDCONFIG=	yes
22
USE_LDCONFIG=	yes
23
23
24
post-patch:
24
post-patch:
25
	${REINPLACE_CMD} -e 's,endian\.h,sys/endian.h,' \
26
		-e 's,__BYTE_ORDER,BYTE_ORDER,' \
27
		-e 's,__LITTLE_ENDIAN,LITTLE_ENDIAN,' \
28
		-e 's,__BIG_ENDIAN,BIG_ENDIAN,' \
29
		${WRKSRC}/configure.ac \
30
		${WRKSRC}/examples/rs232-write.c \
31
		${WRKSRC}/include/osmocom/netif/amr.h \
32
		${WRKSRC}/include/osmocom/netif/rtp.h \
33
		${WRKSRC}/include/osmocom/netif/osmux.h \
34
		${WRKSRC}/src/rtp.c
25
	${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version
35
	${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version
26
36
27
.include <bsd.port.mk>
37
.include <bsd.port.mk>
(-)devel/libosmo-netif/files/patch-configure.ac (-11 lines)
Removed Link Here
1
--- configure.ac.orig	2014-09-08 08:52:08.000000000 +0300
2
+++ configure.ac	2015-02-16 17:04:01.000000000 +0200
3
@@ -32,7 +32,7 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([char 
4
 CFLAGS="$saved_CFLAGS"
5
 AC_SUBST(SYMBOL_VISIBILITY)
6
 
7
-AC_CHECK_HEADER([endian.h], [], [AC_MSG_ERROR([endian.h not found!]) ])
8
+AC_CHECK_HEADERS(endian.h sys/endian.h)
9
 
10
 dnl Generate the output
11
 AM_CONFIG_HEADER(config.h)
(-)devel/libosmo-netif/files/patch-rtp.c (-16 lines)
Removed Link Here
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
3
@@ -1,6 +1,13 @@
4
 #include <stdint.h>
5
 #include <sys/time.h>
6
+#ifdef HAVE_CONFIG_H
7
+#include "config.h"
8
+#endif
9
+#ifdef HAVE_SYS_ENDIAN_H
10
+#include <sys/endian.h>
11
+#else
12
 #include <endian.h>
13
+#endif
14
 #include <errno.h>
15
 #include <string.h>	/* for memcpy. */
16
 #include <arpa/inet.h>	/* for ntohs. */
(-)devel/libosmo-sccp/Makefile (-7 / +12 lines)
Lines 2-10 Link Here
2
2
3
PORTNAME=	libosmo-sccp
3
PORTNAME=	libosmo-sccp
4
PORTVERSION=	0.0.6.3
4
PORTVERSION=	0.0.6.3
5
PORTREVISION=	1
5
PORTREVISION=	2
6
CATEGORIES=	devel
6
CATEGORIES=	devel
7
MASTER_SITES=   http://chaosophia.net/downloads/osmocom/${PORTNAME}/ \
7
MASTER_SITES=	http://chaosophia.net/downloads/osmocom/${PORTNAME}/ \
8
		http://ns1.chaosophia.net/downloads/osmocom/${PORTNAME}/
8
		http://ns1.chaosophia.net/downloads/osmocom/${PORTNAME}/
9
9
10
MAINTAINER=	koue@chaosophia.net
10
MAINTAINER=	koue@chaosophia.net
Lines 15-28 LICENSE_FILE= ${WRKSRC}/COPYING Link Here
15
15
16
LIB_DEPENDS=	libosmocore.so:${PORTSDIR}/devel/libosmocore
16
LIB_DEPENDS=	libosmocore.so:${PORTSDIR}/devel/libosmocore
17
17
18
USES=		gmake pkgconfig
18
CONFLICTS_INSTALL=libmtp-[0-9]* # lib/libmtp.a
19
19
20
USE_AUTOTOOLS=	aclocal autoconf automake libtoolize
20
USES=		alias autoreconf gmake pathfix pkgconfig
21
AUTOMAKE_ARGS=	--gnu --add-missing --copy
21
PATHFIX_MAKEFILEIN=Makefile.am
22
GNU_CONFIGURE=	yes
22
23
23
post-patch:
24
post-patch:
24
	${REINPLACE_CMD} -e 's|pkgconfigdir.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g' \
25
	${REINPLACE_CMD} -e 's,endian\.h,sys/endian.h,' \
25
		${WRKSRC}/Makefile.am
26
		-e 's,__BYTE_ORDER,BYTE_ORDER,' \
27
		-e 's,__LITTLE_ENDIAN,LITTLE_ENDIAN,' \
28
		-e 's,__BIG_ENDIAN,BIG_ENDIAN,' \
29
		${WRKSRC}/include/mtp/mtp_level3.h \
30
		${WRKSRC}/include/sccp/sccp_types.h
26
	${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version
31
	${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version
27
32
28
.include <bsd.port.mk>
33
.include <bsd.port.mk>
(-)devel/libosmo-sccp/files/patch-mtp_leve3.c (-13 lines)
Removed Link Here
1
--- include/mtp/mtp_level3.h.org
2
+++ include/mtp/mtp_level3.h
3
@@ -23,7 +23,11 @@
4
 #ifndef mtp_level3_h
5
 #define mtp_level3_h
6
 
7
+#ifdef __FreeBSD__
8
+#include <sys/endian.h>
9
+#else
10
 #include <endian.h>
11
+#endif
12
 #include <stdint.h>
13
 #include <sys/types.h>
(-)devel/libosmo-sccp/files/patch-sccp_types.c (-14 lines)
Removed Link Here
1
--- include/sccp/sccp_types.h.org
2
+++ include/sccp/sccp_types.h
3
@@ -24,7 +24,11 @@
4
 #ifndef SCCP_TYPES_H
5
 #define SCCP_TYPES_H
6
 
7
+#ifdef __FreeBSD__
8
+#include <sys/endian.h>
9
+#else
10
 #include <endian.h>
11
+#endif
12
 
13
 /* Table 1/Q.713 - SCCP message types */
14
 enum sccp_message_types {
(-)devel/libosmocore/Makefile (-26 / +8 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	libosmocore
3
PORTNAME=	libosmocore
4
PORTVERSION=	0.8.0
4
PORTVERSION=	0.8.0
5
PORTREVISION=	1
5
CATEGORIES=	devel
6
CATEGORIES=	devel
6
MASTER_SITES=	http://git.osmocom.org/libosmocore/snapshot/ \
7
MASTER_SITES=	http://git.osmocom.org/libosmocore/snapshot/ \
7
		http://chaosophia.net/downloads/osmocom/${PORTNAME}/
8
		http://chaosophia.net/downloads/osmocom/${PORTNAME}/
Lines 14-52 LICENSE_FILE= ${WRKSRC}/COPYING Link Here
14
15
15
LIB_DEPENDS=	libpcsclite.so:${PORTSDIR}/devel/pcsc-lite
16
LIB_DEPENDS=	libpcsclite.so:${PORTSDIR}/devel/pcsc-lite
16
17
17
USES=		gmake libtool pkgconfig execinfo
18
USES=		alias autoreconf execinfo gmake libtool pathfix pkgconfig
18
USE_AUTOTOOLS=	aclocal autoconf automake libtoolize autoheader
19
PATHFIX_MAKEFILEIN=Makefile.am
19
AUTOMAKE_ARGS=	--gnu --add-missing --copy
20
GNU_CONFIGURE=	yes
20
LDFLAGS+=	-L${LOCALBASE}/lib -lexecinfo
21
LDFLAGS+=	-L${LOCALBASE}/lib -lexecinfo
21
USE_LDCONFIG=	yes
22
USE_LDCONFIG=	yes
22
INSTALL_TARGET=	install-strip
23
INSTALL_TARGET=	install-strip
23
24
24
OPTIONS_DEFINE=	DOCS
25
OPTIONS_DEFINE=	DOXYGEN
25
DOCS_DESC=	Build documentation
26
DOXYGEN_BUILD_DEPENDS=	doxygen:${PORTSDIR}/devel/doxygen \
26
OPTIONS_UNSET=	DOCS
27
28
.include <bsd.port.options.mk>
29
30
.if ${PORT_OPTIONS:MDOCS}
31
BUILD_DEPENDS+=	doxygen:${PORTSDIR}/devel/doxygen \
32
		dot:${PORTSDIR}/graphics/graphviz
27
		dot:${PORTSDIR}/graphics/graphviz
33
.endif
28
DOXYGEN_CONFIGURE_ENV_OFF=ac_cv_path_DOXYGEN=false
29
PORTDOCS=	*
34
30
35
post-patch:
31
post-patch:
36
.if ${PORT_OPTIONS:MDOCS}
37
	${CP} ${WRKSRC}/Makefile.am.orig ${WRKSRC}/Makefile.am
38
.endif
39
	${REINPLACE_CMD} -e 's|pkgconfigdir.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g' \
40
		${WRKSRC}/Makefile.am
41
	${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version
32
	${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version
42
33
43
.if ${PORT_OPTIONS:MDOCS}
44
post-install:
45
	${MKDIR} ${STAGEDIR}${DOCSDIR}
46
.for i in codec core gsm vty
47
	${FIND} ${WRKSRC}/doc/${i}/html -not -type d | ${SED} \
48
	  's,^${WRKSRC}/doc/${i}/html,${DOCSDIR_REL}/${i}/html,' >> ${TMPPLIST}
49
.endfor
50
.endif
51
52
.include <bsd.port.mk>
34
.include <bsd.port.mk>
(-)devel/libosmocore/files/patch-Makefile.am (-46 lines)
Removed Link Here
1
--- Makefile.am.orig	2015-01-22 11:13:28.000000000 +0200
2
+++ Makefile.am	2015-01-22 11:15:29.000000000 +0200
3
@@ -14,43 +14,3 @@ dist-hook:
4
 	echo $(VERSION) > $(distdir)/.tarball-version
5
 
6
 EXTRA_DIST = git-version-gen .version
7
-
8
-if HAVE_DOXYGEN
9
-
10
-html_DATA = $(top_builddir)/doc/html.tar
11
-
12
-$(html_DATA): $(top_builddir)/doc/core/html/index.html \
13
-		  $(top_builddir)/doc/gsm/html/index.html \
14
-		  $(top_builddir)/doc/vty/html/index.html \
15
-		  $(top_builddir)/doc/codec/html/index.html
16
-	cd $(top_builddir)/doc && tar cf html.tar */html
17
-
18
-$(top_builddir)/doc/core/html/index.html: $(SOURCES) Doxyfile.core
19
-	@rm -rf doc/core
20
-	mkdir -p doc/core
21
-	$(DOXYGEN) Doxyfile.core
22
-
23
-$(top_builddir)/doc/gsm/html/index.html: $(SOURCES) Doxyfile.gsm
24
-	@rm -rf doc/gsm
25
-	mkdir -p doc/gsm
26
-	$(DOXYGEN) Doxyfile.gsm
27
-
28
-$(top_builddir)/doc/vty/html/index.html: $(SOURCES) Doxyfile.vty
29
-	@rm -rf doc/vty/{html,latex}
30
-	$(DOXYGEN) Doxyfile.vty
31
-
32
-$(top_builddir)/doc/codec/html/index.html: $(SOURCES) Doxyfile.codec
33
-	@rm -rf doc/codec
34
-	mkdir -p doc/codec
35
-	$(DOXYGEN) Doxyfile.codec
36
-
37
-install-data-hook:
38
-	cd $(DESTDIR)$(htmldir) && tar xf html.tar && rm -f html.tar
39
-
40
-uninstall-hook:
41
-	cd $(DESTDIR)$(htmldir) && rm -rf {core,gsm,vty,codec}
42
-
43
-DX_CLEAN = doc/{core,gsm,vty,codec}/{html,latex}/* doc/html.tar doc/{core,gsm,vty,codec}/doxygen_sqlite3.db
44
-endif
45
-
46
-MOSTLYCLEANFILES = $(DX_CLEAN)
(-)multimedia/libmtp/Makefile (+2 lines)
Lines 12-17 COMMENT= Media Transfer Protocol (MTP) library Link Here
12
12
13
LICENSE=	LGPL21 # or any later version
13
LICENSE=	LGPL21 # or any later version
14
14
15
CONFLICTS_INSTALL=libosmo-sccp-[0-9]* # lib/libmtp.a
16
15
OPTIONS_DEFINE=	MTPZ
17
OPTIONS_DEFINE=	MTPZ
16
OPTIONS_DEFAULT=	MTPZ
18
OPTIONS_DEFAULT=	MTPZ
17
MTPZ_DESC=	Enable functionality to connect to MTPZ devices
19
MTPZ_DESC=	Enable functionality to connect to MTPZ devices

Return to bug 197948