FreeBSD Bugzilla – Attachment 153371 Details for
Bug 197948
devel/libosmo*: simplify and misc fixes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v1
simplify.diff (text/plain), 8.96 KB, created by
Jan Beich
on 2015-02-23 11:18:16 UTC
(
hide
)
Description:
v1
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2015-02-23 11:18:16 UTC
Size:
8.96 KB
patch
obsolete
>diff --git devel/libosmo-abis/Makefile devel/libosmo-abis/Makefile >index b102727..563d598 100644 >--- devel/libosmo-abis/Makefile >+++ devel/libosmo-abis/Makefile >@@ -15,19 +15,13 @@ LICENSE_FILE= ${WRKSRC}/COPYING > LIB_DEPENDS= libosmocore.so:${PORTSDIR}/devel/libosmocore \ > libortp.so:${PORTSDIR}/net/ortp > >-USES= gmake libtool pkgconfig >- >-USE_AUTOTOOLS= aclocal autoconf automake libtoolize autoheader >-AUTOMAKE_ARGS= --gnu --add-missing --copy >+USES= autoreconf gmake libtool pathfix pkgconfig >+PATHFIX_MAKEFILEIN=Makefile.am >+GNU_CONFIGURE= yes >+INSTALL_TARGET= install-strip > USE_LDCONFIG= yes > > post-patch: >- ${REINPLACE_CMD} -e 's|pkgconfigdir.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g' \ >- ${WRKSRC}/Makefile.am > ${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version > >-post-stage: >- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libosmoabis.so.4 >- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libosmotrau.so.0 >- > .include <bsd.port.mk> >diff --git devel/libosmo-netif/Makefile devel/libosmo-netif/Makefile >index ef6cfc7..a7a770b 100644 >--- devel/libosmo-netif/Makefile >+++ devel/libosmo-netif/Makefile >@@ -22,6 +22,16 @@ INSTALL_TARGET= install-strip > USE_LDCONFIG= yes > > post-patch: >+ ${REINPLACE_CMD} -e 's,endian\.h,sys/endian.h,' \ >+ -e 's,__BYTE_ORDER,BYTE_ORDER,' \ >+ -e 's,__LITTLE_ENDIAN,LITTLE_ENDIAN,' \ >+ -e 's,__BIG_ENDIAN,BIG_ENDIAN,' \ >+ ${WRKSRC}/configure.ac \ >+ ${WRKSRC}/examples/rs232-write.c \ >+ ${WRKSRC}/include/osmocom/netif/amr.h \ >+ ${WRKSRC}/include/osmocom/netif/rtp.h \ >+ ${WRKSRC}/include/osmocom/netif/osmux.h \ >+ ${WRKSRC}/src/rtp.c > ${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version > > .include <bsd.port.mk> >diff --git devel/libosmo-netif/files/patch-configure.ac devel/libosmo-netif/files/patch-configure.ac >deleted file mode 100644 >index 8bcd178..0000000 >--- devel/libosmo-netif/files/patch-configure.ac >+++ /dev/null >@@ -1,11 +0,0 @@ >---- configure.ac.orig 2014-09-08 08:52:08.000000000 +0300 >-+++ configure.ac 2015-02-16 17:04:01.000000000 +0200 >-@@ -32,7 +32,7 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([char >- CFLAGS="$saved_CFLAGS" >- AC_SUBST(SYMBOL_VISIBILITY) >- >--AC_CHECK_HEADER([endian.h], [], [AC_MSG_ERROR([endian.h not found!]) ]) >-+AC_CHECK_HEADERS(endian.h sys/endian.h) >- >- dnl Generate the output >- AM_CONFIG_HEADER(config.h) >diff --git devel/libosmo-netif/files/patch-rtp.c devel/libosmo-netif/files/patch-rtp.c >deleted file mode 100644 >index 1cbfe8f..0000000 >--- devel/libosmo-netif/files/patch-rtp.c >+++ /dev/null >@@ -1,16 +0,0 @@ >---- src/rtp.c.orig 2014-09-08 08:52:08.000000000 +0300 >-+++ src/rtp.c 2015-02-16 11:54:11.000000000 +0200 >-@@ -1,6 +1,13 @@ >- #include <stdint.h> >- #include <sys/time.h> >-+#ifdef HAVE_CONFIG_H >-+#include "config.h" >-+#endif >-+#ifdef HAVE_SYS_ENDIAN_H >-+#include <sys/endian.h> >-+#else >- #include <endian.h> >-+#endif >- #include <errno.h> >- #include <string.h> /* for memcpy. */ >- #include <arpa/inet.h> /* for ntohs. */ >diff --git devel/libosmo-sccp/Makefile devel/libosmo-sccp/Makefile >index 1267b9c..5b88534 100644 >--- devel/libosmo-sccp/Makefile >+++ devel/libosmo-sccp/Makefile >@@ -2,9 +2,9 @@ > > PORTNAME= libosmo-sccp > PORTVERSION= 0.0.6.3 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= devel >-MASTER_SITES= http://chaosophia.net/downloads/osmocom/${PORTNAME}/ \ >+MASTER_SITES= http://chaosophia.net/downloads/osmocom/${PORTNAME}/ \ > http://ns1.chaosophia.net/downloads/osmocom/${PORTNAME}/ > > MAINTAINER= koue@chaosophia.net >@@ -15,14 +15,19 @@ LICENSE_FILE= ${WRKSRC}/COPYING > > LIB_DEPENDS= libosmocore.so:${PORTSDIR}/devel/libosmocore > >-USES= gmake pkgconfig >+CONFLICTS_INSTALL=libmtp-[0-9]* # lib/libmtp.a > >-USE_AUTOTOOLS= aclocal autoconf automake libtoolize >-AUTOMAKE_ARGS= --gnu --add-missing --copy >+USES= alias autoreconf gmake pathfix pkgconfig >+PATHFIX_MAKEFILEIN=Makefile.am >+GNU_CONFIGURE= yes > > post-patch: >- ${REINPLACE_CMD} -e 's|pkgconfigdir.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g' \ >- ${WRKSRC}/Makefile.am >+ ${REINPLACE_CMD} -e 's,endian\.h,sys/endian.h,' \ >+ -e 's,__BYTE_ORDER,BYTE_ORDER,' \ >+ -e 's,__LITTLE_ENDIAN,LITTLE_ENDIAN,' \ >+ -e 's,__BIG_ENDIAN,BIG_ENDIAN,' \ >+ ${WRKSRC}/include/mtp/mtp_level3.h \ >+ ${WRKSRC}/include/sccp/sccp_types.h > ${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version > > .include <bsd.port.mk> >diff --git devel/libosmo-sccp/files/patch-mtp_leve3.c devel/libosmo-sccp/files/patch-mtp_leve3.c >deleted file mode 100644 >index 0c67154..0000000 >--- devel/libosmo-sccp/files/patch-mtp_leve3.c >+++ /dev/null >@@ -1,13 +0,0 @@ >---- include/mtp/mtp_level3.h.org >-+++ include/mtp/mtp_level3.h >-@@ -23,7 +23,11 @@ >- #ifndef mtp_level3_h >- #define mtp_level3_h >- >-+#ifdef __FreeBSD__ >-+#include <sys/endian.h> >-+#else >- #include <endian.h> >-+#endif >- #include <stdint.h> >- #include <sys/types.h> >diff --git devel/libosmo-sccp/files/patch-sccp_types.c devel/libosmo-sccp/files/patch-sccp_types.c >deleted file mode 100644 >index 59c900d..0000000 >--- devel/libosmo-sccp/files/patch-sccp_types.c >+++ /dev/null >@@ -1,14 +0,0 @@ >---- include/sccp/sccp_types.h.org >-+++ include/sccp/sccp_types.h >-@@ -24,7 +24,11 @@ >- #ifndef SCCP_TYPES_H >- #define SCCP_TYPES_H >- >-+#ifdef __FreeBSD__ >-+#include <sys/endian.h> >-+#else >- #include <endian.h> >-+#endif >- >- /* Table 1/Q.713 - SCCP message types */ >- enum sccp_message_types { >diff --git devel/libosmocore/Makefile devel/libosmocore/Makefile >index c52e0ab..2c1ad2c 100644 >--- devel/libosmocore/Makefile >+++ devel/libosmocore/Makefile >@@ -2,6 +2,7 @@ > > PORTNAME= libosmocore > PORTVERSION= 0.8.0 >+PORTREVISION= 1 > CATEGORIES= devel > MASTER_SITES= http://git.osmocom.org/libosmocore/snapshot/ \ > http://chaosophia.net/downloads/osmocom/${PORTNAME}/ >@@ -14,39 +15,20 @@ LICENSE_FILE= ${WRKSRC}/COPYING > > LIB_DEPENDS= libpcsclite.so:${PORTSDIR}/devel/pcsc-lite > >-USES= gmake libtool pkgconfig execinfo >-USE_AUTOTOOLS= aclocal autoconf automake libtoolize autoheader >-AUTOMAKE_ARGS= --gnu --add-missing --copy >+USES= alias autoreconf execinfo gmake libtool pathfix pkgconfig >+PATHFIX_MAKEFILEIN=Makefile.am >+GNU_CONFIGURE= yes > LDFLAGS+= -L${LOCALBASE}/lib -lexecinfo > USE_LDCONFIG= yes > INSTALL_TARGET= install-strip > >-OPTIONS_DEFINE= DOCS >-DOCS_DESC= Build documentation >-OPTIONS_UNSET= DOCS >- >-.include <bsd.port.options.mk> >- >-.if ${PORT_OPTIONS:MDOCS} >-BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen \ >+OPTIONS_DEFINE= DOXYGEN >+DOXYGEN_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen \ > dot:${PORTSDIR}/graphics/graphviz >-.endif >+DOXYGEN_CONFIGURE_ENV_OFF=ac_cv_path_DOXYGEN=false >+PORTDOCS= * > > post-patch: >-.if ${PORT_OPTIONS:MDOCS} >- ${CP} ${WRKSRC}/Makefile.am.orig ${WRKSRC}/Makefile.am >-.endif >- ${REINPLACE_CMD} -e 's|pkgconfigdir.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g' \ >- ${WRKSRC}/Makefile.am > ${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version > >-.if ${PORT_OPTIONS:MDOCS} >-post-install: >- ${MKDIR} ${STAGEDIR}${DOCSDIR} >-.for i in codec core gsm vty >- ${FIND} ${WRKSRC}/doc/${i}/html -not -type d | ${SED} \ >- 's,^${WRKSRC}/doc/${i}/html,${DOCSDIR_REL}/${i}/html,' >> ${TMPPLIST} >-.endfor >-.endif >- > .include <bsd.port.mk> >diff --git devel/libosmocore/files/patch-Makefile.am devel/libosmocore/files/patch-Makefile.am >deleted file mode 100644 >index 5edb3e8..0000000 >--- devel/libosmocore/files/patch-Makefile.am >+++ /dev/null >@@ -1,46 +0,0 @@ >---- Makefile.am.orig 2015-01-22 11:13:28.000000000 +0200 >-+++ Makefile.am 2015-01-22 11:15:29.000000000 +0200 >-@@ -14,43 +14,3 @@ dist-hook: >- echo $(VERSION) > $(distdir)/.tarball-version >- >- EXTRA_DIST = git-version-gen .version >-- >--if HAVE_DOXYGEN >-- >--html_DATA = $(top_builddir)/doc/html.tar >-- >--$(html_DATA): $(top_builddir)/doc/core/html/index.html \ >-- $(top_builddir)/doc/gsm/html/index.html \ >-- $(top_builddir)/doc/vty/html/index.html \ >-- $(top_builddir)/doc/codec/html/index.html >-- cd $(top_builddir)/doc && tar cf html.tar */html >-- >--$(top_builddir)/doc/core/html/index.html: $(SOURCES) Doxyfile.core >-- @rm -rf doc/core >-- mkdir -p doc/core >-- $(DOXYGEN) Doxyfile.core >-- >--$(top_builddir)/doc/gsm/html/index.html: $(SOURCES) Doxyfile.gsm >-- @rm -rf doc/gsm >-- mkdir -p doc/gsm >-- $(DOXYGEN) Doxyfile.gsm >-- >--$(top_builddir)/doc/vty/html/index.html: $(SOURCES) Doxyfile.vty >-- @rm -rf doc/vty/{html,latex} >-- $(DOXYGEN) Doxyfile.vty >-- >--$(top_builddir)/doc/codec/html/index.html: $(SOURCES) Doxyfile.codec >-- @rm -rf doc/codec >-- mkdir -p doc/codec >-- $(DOXYGEN) Doxyfile.codec >-- >--install-data-hook: >-- cd $(DESTDIR)$(htmldir) && tar xf html.tar && rm -f html.tar >-- >--uninstall-hook: >-- cd $(DESTDIR)$(htmldir) && rm -rf {core,gsm,vty,codec} >-- >--DX_CLEAN = doc/{core,gsm,vty,codec}/{html,latex}/* doc/html.tar doc/{core,gsm,vty,codec}/doxygen_sqlite3.db >--endif >-- >--MOSTLYCLEANFILES = $(DX_CLEAN) >diff --git multimedia/libmtp/Makefile multimedia/libmtp/Makefile >index e51d415..caeb8da 100644 >--- multimedia/libmtp/Makefile >+++ multimedia/libmtp/Makefile >@@ -12,6 +12,8 @@ COMMENT= Media Transfer Protocol (MTP) library > > LICENSE= LGPL21 # or any later version > >+CONFLICTS_INSTALL=libosmo-sccp-[0-9]* # lib/libmtp.a >+ > OPTIONS_DEFINE= MTPZ > OPTIONS_DEFAULT= MTPZ > MTPZ_DESC= Enable functionality to connect to MTPZ devices
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197948
: 153371