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

Robert Backhaus robbak at robbak.com
Fri Oct 12 01:48:12 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.

P.S. Appologies if this message has already been recieved - I have my
mailing list mail sent to a +address, and my normal address was not
subscribed to the list, so I was not sure if it had perhaps been
rejected. So I am resending it after subscribing my unadorned address.
-------------- 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/20121012/dfb0dc50/attachment.obj>


More information about the freebsd-ports mailing list