# 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: # # devel/linux_libusb/ # devel/linux_libusb/Makefile # devel/linux_libusb/distinfo # devel/linux_libusb/pkg-descr # echo c - devel/linux_libusb/ mkdir -p devel/linux_libusb/ > /dev/null 2>&1 echo x - devel/linux_libusb/Makefile sed 's/^X//' >devel/linux_libusb/Makefile << '60d61686e15f0ed4ca9e6466d78b9754' X# Created by: nox@FreeBSD.org X# $FreeBSD:$ X XPORTNAME= linux_libusb XPORTVERSION= 11.0r${FSVN_REV} XPORTREVISION= 1 XCATEGORIES= devel linux XMASTER_SITES= LOCAL/nox X XMAINTAINER= emulation@FreeBSD.org XCOMMENT= Linux-compatibility libusb X X#BUILD_DEPENDS= ${LINUXBASE}/usr/bin/gcc:${PORTSDIR}/emulators/linux_base-gentoo-stage3 XBUILD_DEPENDS= ${LINUXBASE}/usr/bin/gcc:${PORTSDIR}/devel/linux-f10-devtools X XUSES= tar:bzip2 XONLY_FOR_ARCHS= i386 amd64 XUSE_LINUX_PREFIX= yes XPLIST_FILES= usr/lib/libusb.so \ X usr/lib/libusb-0.1.so.4 \ X "@exec ${LDCONFIG_CMD}" \ X "@unexec ${LDCONFIG_CMD}" XCC= ${LINUXBASE}/usr/bin/gcc XCFLAGS+= -I${WRKDIR}/sys XMAKE_ARGS+= LIBUSB_GLOBAL_INCLUDE_FILE=libusb_global_linux.h XMAKE_ARGS+= PTHREAD_LIBS="-lpthread -lrt" X# XXX ${LINUXBASE}/usr/bin/ld is a broken link with gentoo atm? X#MAKE_ENV+= COMPILER_PATH=/usr/i486-pc-linux-gnu/binutils-bin/2.22 X X# see: sysutils/pc-sysinstall/Makefile XFSVN_REV= 261448 XFSVNPATH?= http://svn.freebsd.org/base/head XFSVNDIR= lib/libusb X X.include X X.if ${ARCH} == "amd64" XMAKE_ARGS+= COMPAT_32BIT=YES X.endif X Xpre-everything:: X @${ECHO_MSG} '===> Using the FreeBSD source tree under ${SRC_BASE}' X @${ECHO_MSG} '===> Set SRC_BASE to use an alternate source tree' X X.if ${OSVERSION} < 1000000 XIGNORE= doesn't build on < 10.x X.endif X.if !exists(${SRC_BASE}/sys/i386/linux/syscalls.master) XIGNORE= requires kernel source present in ${SRC_BASE}/sys X.endif X#.if !exists(${SRC_BASE}/lib/libusb/Makefile) X#IGNORE= requires libusb source present in ${SRC_BASE}/lib/libusb X#.endif X#.if exists(${LINUXBASE}/etc/fedora-release) X#IGNORE= does not build with the default linux base, use the package instead X#.endif X Xpost-patch: X ${MKDIR} ${WRKDIR}/sys X ${LN} -s ${SRC_BASE}/sys/compat ${SRC_BASE}/sys/dev ${WRKDIR}/sys X X# XXX: Due to problems with ports/ infrastructure, we don't seem to be able X# to symlink files. I provide hardlink instead. If fixed, remember to remove X# link name from PLIST_FILES. Xdo-install: X ${MKDIR} ${STAGEDIR}${PREFIX}/usr/lib X ${INSTALL_DATA} ${WRKSRC}/libusb.so ${STAGEDIR}${PREFIX}/usr/lib X# Xilinx ISE requirement. X ${LN} -f ${STAGEDIR}${PREFIX}/usr/lib/libusb.so ${STAGEDIR}${PREFIX}/usr/lib/libusb-0.1.so.4 X X.if defined(BOOTSTRAP) || defined(SVN_FETCH) X#FETCH_DEPENDS+= svn:${PORTSDIR}/devel/subversion XSVN?= svnlite X Xdo-fetch: X ${MKDIR} ${WRKDIR} X ${SVN} export -r ${FSVN_REV} ${FSVNPATH}/${FSVNDIR} ${WRKDIR}/${DISTNAME} X cd ${WRKDIR}; tar cvfy ${DISTDIR}/${DISTNAME}.tar.bz2 ${DISTNAME} X.if ${USER} == noxNOTYET X scp ${DISTDIR}/${DISTNAME}.tar.bz2 \ X nox@freefall.freebsd.org:public_distfiles/ X.endif X.endif X X.include 60d61686e15f0ed4ca9e6466d78b9754 echo x - devel/linux_libusb/distinfo sed 's/^X//' >devel/linux_libusb/distinfo << 'd46b29fbc1af6062fe710a5461440007' XSHA256 (linux_libusb-11.0r261448.tar.bz2) = e1013ccd0181e00a55bb786be54d125b71462492442122350d820b98fef97f81 XSIZE (linux_libusb-11.0r261448.tar.bz2) = 45739 d46b29fbc1af6062fe710a5461440007 echo x - devel/linux_libusb/pkg-descr sed 's/^X//' >devel/linux_libusb/pkg-descr << '71049d9256d3444ef83d0d650384d9c5' X X linux-libusb takes advantage of FreeBSD libusb(8) library, which got X prepared to work correctly within linux(4) emulation layer. It lets X you to take Linux binary linked with libusb.so and use it on X FreeBSD. X X Additional information: This port has been prepared under FreeBSD X with kern.osreldate = 1000510. It relies on the fact the libusb(8) X API seems to be stable and no changes have been made to internal API X for a long time. If this assumption isn't true, port won't work. X Please submit bug report to the port maintainter in that case. 71049d9256d3444ef83d0d650384d9c5 exit