[Bug 197605] games/{assaultcube,bloodfrontier,redeclipse,sauerbraten}: unbundle libenet

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Feb 13 23:52:48 UTC 2015


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 at FreeBSD.org
          Reporter: jbeich at FreeBSD.org
                CC: acm at FreeBSD.org, amdmi3 at FreeBSD.org,
                    games at FreeBSD.org, lightside at gmx.com,
                    nemysis at FreeBSD.org
                CC: games at FreeBSD.org, nemysis at 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 at FreeBSD.org> ---
Maintainers CC'd

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list