diff options
author | miwi <miwi@FreeBSD.org> | 2013-04-30 10:24:08 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2013-04-30 10:24:08 +0800 |
commit | 594ca4541dca28da6821ee3ab79faf18c22530e4 (patch) | |
tree | b04a8688737c87bd0b0e92ef53fc3a4bfe864020 /net-p2p | |
parent | c066aaf97f4fd1d105e8c6bd0b529b20975a4562 (diff) | |
download | freebsd-ports-gnome-594ca4541dca28da6821ee3ab79faf18c22530e4.tar.gz freebsd-ports-gnome-594ca4541dca28da6821ee3ab79faf18c22530e4.tar.zst freebsd-ports-gnome-594ca4541dca28da6821ee3ab79faf18c22530e4.zip |
- Fix build
PR: 177925
Submitted by: Ports Fury
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/solidcoin/Makefile | 79 | ||||
-rw-r--r-- | net-p2p/solidcoin/files/patch-uibase.cpp | 20 |
2 files changed, 64 insertions, 35 deletions
diff --git a/net-p2p/solidcoin/Makefile b/net-p2p/solidcoin/Makefile index 80a2b056a707..660ac1db50a8 100644 --- a/net-p2p/solidcoin/Makefile +++ b/net-p2p/solidcoin/Makefile @@ -3,74 +3,83 @@ PORTNAME= solidcoin PORTVERSION= 2.041 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= net-p2p finance -MASTER_SITES= http://solidcoin.info/downloads/ \ +MASTER_SITES= http://downloads.solidcoin.info/ \ http://dl.dropbox.com/u/47582909/ -DISTNAME= ${PORTNAME}-source-2041 +DISTNAME= ${PORTNAME}-source-${PORTVERSION:S/.//g} MAINTAINER= ports@FreeBSD.org COMMENT= Alternative Bitcoin peer-to-peer currency client -BROKEN= Does not build +LICENSE= MIT BUILD_DEPENDS= ${LOCALBASE}/include/boost/graph/parallel/algorithm.hpp:${PORTSDIR}/devel/boost-libs LIB_DEPENDS= boost_date_time:${PORTSDIR}/devel/boost-libs -OPTIONS_DEFINE= WXGTK X11 -OPTIONS_DEFAULT= WXGTK X11 +OPTIONS_DEFINE= WXGTK +OPTIONS_DEFAULT= WXGTK + +WRKSRC= ${WRKDIR}/src USE_ZIP= yes -USE_GMAKE= yes +USE_DOS2UNIX= yes +USE_GNOME= glib20 USE_OPENSSL= yes USE_BDB= yes WANT_BDB_VER= 47 +USE_GCC= any +USE_GMAKE= yes +ALL_TARGET= ${BINARY} MAKE_JOBS_SAFE= yes -CXXFLAGS+= -I${LOCALBASE}/include -I${BDB_INCLUDE_DIR} -CXXFLAGS+= -L${LOCALBASE}/lib -L${BDB_LIB_DIR} CXXFLAGS+= -Wno-invalid-offsetof +CPPFLAGS+= -I${BDB_INCLUDE_DIR} -I${LOCALBASE}/include +LDFLAGS+= -L${BDB_LIB_DIR} -L${LOCALBASE}/lib -WRKSRC= ${WRKDIR}/src +PLIST_FILES= bin/${BINARY} .include <bsd.port.options.mk> -.if ${PORT_OPTIONS:MWXGTK} && ${PORT_OPTIONS:MX11} +.if ${PORT_OPTIONS:MWXGTK} USE_WX= 2.9 -DESKTOP_ENTRIES="Solidcoin" "${COMMENT}" "" "${PORTNAME}" "" "true" - -WX_CONFIG= ${LOCALBASE}/bin/wxgtk2u-2.9-config +WX_UNICODE= yes +PLIST_FILES+= share/pixmaps/solidcoin48.xpm +DESKTOP_ENTRIES="SolidCoin" "" "${PREFIX}/share/pixmaps/solidcoin48.xpm" \ + "${PORTNAME}" "" true BINARY= solidcoin .else -USE_GNOME= glib20 - BINARY= solidcoind -ALL_TARGET= ${BINARY} .endif -PLIST_FILES= bin/${BINARY} - -post-extract: - @${CP} ${WRKSRC}/../build/makefile.unix ${WRKSRC}/Makefile - post-patch: .for i in crypto gui nogui - @${MKDIR} ${WRKSRC}/../obj/$i + @${MKDIR} ${WRKSRC}/../obj/${i} .endfor - @echo '18i\' > ${WRKSRC}/sed.in - @echo '#ifndef __STDC_LIMIT_MACROS' >> ${WRKSRC}/sed.in - @echo '19i\' >> ${WRKSRC}/sed.in - @echo '#endif' >> ${WRKSRC}/sed.in + @${ECHO_CMD} '18i\' > ${WRKDIR}/sed.in + @${ECHO_CMD} '#ifndef __STDC_LIMIT_MACROS' >> ${WRKDIR}/sed.in + @${ECHO_CMD} '19i\' >> ${WRKDIR}/sed.in + @${ECHO_CMD} '#endif' >> ${WRKDIR}/sed.in @${REINPLACE_CMD} \ - -f ${WRKSRC}/sed.in \ + -f ${WRKDIR}/sed.in \ ${WRKSRC}/headers.h - @${REINPLACE_CMD} \ - -e 's|^CXXFLAGS=.*$$|CXXFLAGS += $$(DEFS)|' \ - -e '/-l dl/d' \ - -e 's|../../wxWidgets-2.9.2/wx-config|${WX_CONFIG}|' \ - ${WRKSRC}/Makefile + +do-configure: + @cd ${WRKSRC} && ${SED} -e \ + 's|^CXX=|CXX?=| ; \ + s|shell .* |shell $$(WX_CONFIG) | ; \ + s|-Wl,-Bstatic|| ; ; \ + s|-Wl,-Bdynamic|| ; \ + /-l dl/d ; \ + s|-l pthread|$$(LDFLAGS)|; \ + s|^CXXFLAGS=-O2|CXXFLAGS+=$$(CPPFLAGS)|' \ + < ../build/makefile.unix > Makefile + do-install: - @${MKDIR} ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${PREFIX}/bin/ + (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${BINARY} ${PREFIX}/bin) +.if ${PORT_OPTIONS:MWXGTK} + (cd ${WRKSRC}/../share/xpm && ${INSTALL_DATA} solidcoin48.xpm \ + ${PREFIX}/share/pixmaps) +.endif .include <bsd.port.mk> diff --git a/net-p2p/solidcoin/files/patch-uibase.cpp b/net-p2p/solidcoin/files/patch-uibase.cpp new file mode 100644 index 000000000000..49345fdcd81c --- /dev/null +++ b/net-p2p/solidcoin/files/patch-uibase.cpp @@ -0,0 +1,20 @@ +--- uibase.cpp.orig ++++ uibase.cpp +@@ -139,7 +139,7 @@ + + m_WalletSelect = new wxComboBox(this, wxID_ANY, wxEmptyString,wxDefaultPosition,wxDefaultSize,0,0,wxCB_READONLY); + m_WalletSelect->SetToolTip(wxT("Change your wallet to view other transactions and address books")); +- wxFont font2(15, wxFONTFAMILY_TELETYPE, wxNORMAL, wxBOLD); ++ wxFont font2(15, wxFONTFAMILY_TELETYPE, wxNORMAL, wxBOLD, false, wxEmptyString, wxFONTENCODING_DEFAULT); + m_WalletSelect->SetFont(font2); + + +@@ -162,7 +162,7 @@ + wxBoxSizer* bSizer66; + bSizer66 = new wxBoxSizer( wxHORIZONTAL ); + +- wxFont font3(12, wxFONTFAMILY_DEFAULT, wxNORMAL, wxNORMAL); ++ wxFont font3(12, wxFONTFAMILY_DEFAULT, wxNORMAL, wxNORMAL, false, wxEmptyString, wxFONTENCODING_DEFAULT); + m_toolBar = new wxToolBar(this, wxID_ANY ,wxDefaultPosition,wxDefaultSize,wxTB_TEXT|wxTB_HORZ_LAYOUT |wxTB_FLAT ); + + m_toolBar->SetToolBitmapSize( wxSize( 20,20 ) ); |