# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # bluez-libs # bluez-libs/files # bluez-libs/files/patch-include_bluetooth.h # bluez-libs/files/patch-src_sdp.c # bluez-libs/Makefile # bluez-libs/distinfo # bluez-libs/pkg-descr # bluez-libs/pkg-plist # echo c - bluez-libs mkdir -p bluez-libs > /dev/null 2>&1 echo c - bluez-libs/files mkdir -p bluez-libs/files > /dev/null 2>&1 echo x - bluez-libs/files/patch-include_bluetooth.h sed 's/^X//' >bluez-libs/files/patch-include_bluetooth.h << 'END-of-bluez-libs/files/patch-include_bluetooth.h' X--- include/bluetooth.h.orig Fri Apr 8 10:42:34 2005 X+++ include/bluetooth.h Fri Apr 8 10:45:14 2005 X@@ -36,9 +36,17 @@ X #endif X X #include X-#include X-#include X #include X+ X+#ifdef __FreeBSD__ X+# include X+# define bswap_16 bswap16 X+# define bswap_32 bswap32 X+# define bswap_64 bswap64 X+#else X+# include X+# include X+#endif X X #ifndef AF_BLUETOOTH X #define AF_BLUETOOTH 31 END-of-bluez-libs/files/patch-include_bluetooth.h echo x - bluez-libs/files/patch-src_sdp.c sed 's/^X//' >bluez-libs/files/patch-src_sdp.c << 'END-of-bluez-libs/files/patch-src_sdp.c' X--- src/sdp.c.orig Fri Apr 8 10:50:58 2005 X+++ src/sdp.c Fri Apr 8 10:51:33 2005 X@@ -33,6 +33,10 @@ X #include X #endif X X+#ifdef __FreeBSD__ X+# include X+#endif X+ X #include X #include X #include END-of-bluez-libs/files/patch-src_sdp.c echo x - bluez-libs/Makefile sed 's/^X//' >bluez-libs/Makefile << 'END-of-bluez-libs/Makefile' X# New ports collection makefile for: bluez-libs X# Date created: Apr 7 2005 X# Whom: Florent Thoumie X# X# $FreeBSD$ X# X XPORTNAME= bluez-libs XPORTVERSION= 2.15 XCATEGORIES= net XMASTER_SITES= http://bluez.sourceforge.net/download/ X XMAINTAINER= flz@FreeBSD.org XCOMMENT= Bluetooth Library X XINSTALLS_SHLIB= yes XUSE_REINPLACE= yes XUSE_GNOME= pkgconfig gnomehack XGNU_CONFIGURE= yes XCONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} X Xpost-patch: X @${REINPLACE_CMD} -Ee "s#(EBADRQC|EPROTO|ENODATA);#0;#;/malloc.h/d" \ X ${WRKSRC}/src/sdp.c ${WRKSRC}/src/bluetooth.c X X.include END-of-bluez-libs/Makefile echo x - bluez-libs/distinfo sed 's/^X//' >bluez-libs/distinfo << 'END-of-bluez-libs/distinfo' XMD5 (bluez-libs-2.15.tar.gz) = 07dbca15a1edbd6178401f7912d158c0 XSIZE (bluez-libs-2.15.tar.gz) = 271387 END-of-bluez-libs/distinfo echo x - bluez-libs/pkg-descr sed 's/^X//' >bluez-libs/pkg-descr << 'END-of-bluez-libs/pkg-descr' END-of-bluez-libs/pkg-descr echo x - bluez-libs/pkg-plist sed 's/^X//' >bluez-libs/pkg-plist << 'END-of-bluez-libs/pkg-plist' Xinclude/bluetooth/bluetooth.h Xinclude/bluetooth/hci.h Xinclude/bluetooth/hci_lib.h Xinclude/bluetooth/hci_uart.h Xinclude/bluetooth/hci_vhci.h Xinclude/bluetooth/l2cap.h Xinclude/bluetooth/sco.h Xinclude/bluetooth/rfcomm.h Xinclude/bluetooth/sdp.h Xinclude/bluetooth/sdp_lib.h Xinclude/bluetooth/bnep.h Xinclude/bluetooth/cmtp.h Xinclude/bluetooth/hidp.h Xlib/libbluetooth.so Xlib/libbluetooth.so.1 Xlib/libbluetooth.la Xlib/libbluetooth.a Xlibdata/pkgconfig/bluez.pc Xshare/aclocal/bluez.m4 END-of-bluez-libs/pkg-plist exit