net-p2p/bitcoin: How much of this sed script is actually required?

Robert Backhaus robbak at robbak.com
Wed Oct 10 06:36:27 UTC 2012


As the maintaner of this port, I'll be updating it soon, as the new
version is currently in rc.
I'd like to clean up this sed script applied to a makefile, but I
don't know how much of it might be requred. For reference, the port
builds and works with only the last one - removal of "-l dl".

Are any of these things required for reasons I am not aware of?

@cd ${WRKSRC}/src && ${CP} -p makefile.unix Makefile
        @${REINPLACE_CMD} \
                -e 's|^CXXFLAGS=.*$$|CXXFLAGS += $$(DEFS)|' \
                -e 's|^USE_UPNP.*$$||' \
                -e 's|-l pthread|${PTHREAD_LIBS}|g' \
                -e 's:-O3::' -e 's:-\(march=[A-Za-z0-9]*\)::g' \
                -e 's:-l dl::' \
                ${WRKSRC}/src/Makefile

Also worthy of note: These changes only have an effect when this port
is built as a command-line daemon. This Makefile is not used when
building it as a Qt GUI (default, and most common). If there are any
important items here, they could be applied to the GUI's makefile.

Diff from original to processed Makefile:

--- Makefile.bak        2012-10-05 12:30:57.000000000 +1000
+++ Makefile    2012-10-10 16:20:50.000000000 +1000
@@ -2,7 +2,7 @@
 # Distributed under the MIT/X11 software license, see the accompanying
 # file COPYING or http://www.opensource.org/licenses/mit-license.php.

-USE_UPNP:=0
+
 USE_IPV6:=1

 LINK:=$(CXX)
@@ -51,8 +51,8 @@
 LIBS+= \
  -Wl,-B$(LMODE2) \
    -l z \
-   -l dl \
-   -l pthread
+    \
+   -pthread

For reference, the original Makefile is attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.bak
Type: application/octet-stream
Size: 5021 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20121010/6b70d56e/attachment-0001.obj>


More information about the freebsd-ports mailing list