aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshaun <shaun@FreeBSD.org>2011-07-02 06:21:35 +0800
committershaun <shaun@FreeBSD.org>2011-07-02 06:21:35 +0800
commit524a29d7cdbe674ebb538bc8c4a5d72875a6456f (patch)
treee00a58c3076c4d3c0c78775bc1e61b339b032035
parent5ee080a967517d8e97cc1db5713e282b899d1cbd (diff)
downloadfreebsd-ports-gnome-524a29d7cdbe674ebb538bc8c4a5d72875a6456f.tar.gz
freebsd-ports-gnome-524a29d7cdbe674ebb538bc8c4a5d72875a6456f.tar.zst
freebsd-ports-gnome-524a29d7cdbe674ebb538bc8c4a5d72875a6456f.zip
- Upgrade to 0.3.23.
- Add missing wxGTK runtime dependency. [1] - Add missing glib dependency (when built without GUI) [2] Submitted by: Tim Bishop [1], netchild [2]
-rw-r--r--net-p2p/bitcoin/Makefile32
-rw-r--r--net-p2p/bitcoin/distinfo4
2 files changed, 27 insertions, 9 deletions
diff --git a/net-p2p/bitcoin/Makefile b/net-p2p/bitcoin/Makefile
index a345cca11272..9dbdeb34b05e 100644
--- a/net-p2p/bitcoin/Makefile
+++ b/net-p2p/bitcoin/Makefile
@@ -6,12 +6,11 @@
#
PORTNAME= bitcoin
-PORTVERSION= 0.3.21
-PORTREVISION= 1
+PORTVERSION= 0.3.23
CATEGORIES= net-p2p finance
MASTER_SITES= https://download.github.com/ \
http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/
-DISTFILES= bitcoin-bitcoin-v${PORTVERSION}-0-g64ad448.tar.gz
+DISTFILES= bitcoin-bitcoin-v${PORTVERSION}-0-gce14894.tar.gz
MAINTAINER= shaun@FreeBSD.org
COMMENT= Virtual Peer-to-Peer Currency Client
@@ -29,8 +28,11 @@ WANT_BDB_VER= 47 # 4.8 doesn't work
CXXFLAGS+= -I${LOCALBASE}/include -I${BDB_INCLUDE_DIR}
CXXFLAGS+= -L${LOCALBASE}/lib -L${BDB_LIB_DIR}
+CXXFLAGS+= -Wno-invalid-offsetof
-WRKSRC= ${WRKDIR}/bitcoin-bitcoin-1f578d2
+WRKSRC= ${WRKDIR}/bitcoin-bitcoin-ebdab6d/src
+
+LOCALES= cs de eo es fr it lt nl pt ru zh_cn
.include <bsd.port.options.mk>
@@ -40,11 +42,14 @@ USE_GNOME= gtk20
#USE_WX= 2.9+
BUILD_DEPENDS+= ${LOCALBASE}/include/wx-2.9/wx/aboutdlg.h:${PORTSDIR}/x11-toolkits/wxgtk29
+RUN_DEPENDS+= ${LOCALBASE}/include/wx-2.9/wx/aboutdlg.h:${PORTSDIR}/x11-toolkits/wxgtk29
WX_CONFIG= ${LOCALBASE}/bin/wxgtk2u-2.9-config
BINARY= bitcoin
PLIST_FILES= bin/${BINARY}
.else
+USE_GNOME= glib20
+
BINARY= bitcoind
ALL_TARGET= ${BINARY}
PLIST_FILES= bin/${BINARY}
@@ -55,6 +60,12 @@ LIB_DEPENDS+= miniupnpc:${PORTSDIR}/net/miniupnpc
MAKE_ENV+= USE_UPNP=yes
.endif
+.if !defined(WITHOUT_NLS)
+PLIST_FILES+= ${LOCALES:C|^|share/locale/|:C|$|/LC_MESSAGES/bitcoin.mo|}
+PLIST_DIRSTRY+= ${LOCALES:C|^|share/locale/|:C|$|/LC_MESSAGES|}
+PLIST_DIRSTRY+= ${LOCALES:C|^|share/locale/|}
+.endif
+
.include <bsd.port.pre.mk>
pre-fetch:
@@ -67,13 +78,12 @@ pre-fetch:
.endif
post-patch:
- cd ${WRKSRC} && ${CP} -p makefile.unix Makefile
- ${REINPLACE_CMD} \
+ @cd ${WRKSRC} && ${CP} -p makefile.unix Makefile
+ @${REINPLACE_CMD} \
-e 's|wx-config|${WX_CONFIG}|g' \
-e 's|^CXXFLAGS=.*$$|CXXFLAGS += $$(DEFS)|' \
-e 's|^USE_UPNP.*$$||' \
-e 's:-O3::' -e 's:-\(march=[A-Za-z0-9]*\)::g' \
- -e 's:-l z \\:-l z:' \
-e 's:-l dl::' \
${WRKSRC}/Makefile
@@ -81,4 +91,12 @@ do-install:
@${MKDIR} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${PREFIX}/bin/
+.if !defined(WITHOUT_NLS)
+. for lo in ${LOCALES}
+ ${MKDIR} -p ${PREFIX}/share/locale/${lo}/LC_MESSAGES
+ ${INSTALL_DATA} ${WRKSRC}/../locale/${lo}/LC_MESSAGES/bitcoin.mo \
+ ${PREFIX}/share/locale/${lo}/LC_MESSAGES/
+. endfor
+.endif
+
.include <bsd.port.post.mk>
diff --git a/net-p2p/bitcoin/distinfo b/net-p2p/bitcoin/distinfo
index 6ce1a5aac8be..19b848cb7001 100644
--- a/net-p2p/bitcoin/distinfo
+++ b/net-p2p/bitcoin/distinfo
@@ -1,2 +1,2 @@
-SHA256 (bitcoin-bitcoin-v0.3.21-0-g64ad448.tar.gz) = 8c62d735a13d89c25c35996c828bcee96aa6e00adcffd294c494ae8d8b5924bb
-SIZE (bitcoin-bitcoin-v0.3.21-0-g64ad448.tar.gz) = 383958
+SHA256 (bitcoin-bitcoin-v0.3.23-0-gce14894.tar.gz) = bf3e81e601839619597e88a51315780e2be1d0c320fab8303cdf63f94e0a81eb
+SIZE (bitcoin-bitcoin-v0.3.23-0-gce14894.tar.gz) = 446803