Date: Fri, 13 Feb 2015 23:52:47 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 197605] games/{assaultcube,bloodfrontier,redeclipse,sauerbraten}: unbundle libenet Message-ID: <bug-197605-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197605 Bug ID: 197605 Summary: games/{assaultcube,bloodfrontier,redeclipse,sauerbrate n}: unbundle libenet Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: acm@FreeBSD.org, amdmi3@FreeBSD.org, games@FreeBSD.org, lightside@gmx.com, nemysis@FreeBSD.org CC: games@FreeBSD.org, nemysis@FreeBSD.org Ports of Cube-based games all build libenet, newer version of which is available as net/enet port. It maybe worth to investigate API difference[1] with bundled versions, convert to system one and check interoperability with existing servers/clients doesn't degrade. games/cube switched a long time ago (see ports r173704). It no longer uses static library since net/libenet started providing shared one. games/tesseract (in bug 189829) switched by me. It only required the following: LIB_DEPENDS= libenet.so:${PORTSDIR}/net/enet USES+= pkgconfig EXTRACT_AFTER_ARGS= --exclude src/enet post-patch: @${REINPLACE_CMD} \ -e 's,-Ienet/include,`pkg-config --cflags libenet`,' \ -e 's,-Lenet -lenet,`pkg-config --libs libenet`,' \ -e 's,enet/libenet.a,${LOCALBASE}/lib/libenet.so,' \ ${BUILD_WRKSRC}/Makefile with the following intent: - do not extract src/enet to avoid accidentally picking up its headers - replace flags with whatever pkg-config knows about libenet - force make target to believe libenet was already built [1] http://upstream.rosalinux.ru/versions/enet.html --- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> --- Maintainers CC'd -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197605-13>