1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/net-p2p/solidcoin/Makefile
Martin Wilke 80074b27e9 - Fix build
PR:		177925
Submitted by:	Ports Fury
2013-04-30 02:24:08 +00:00

86 lines
2.0 KiB
Makefile

# Created by: Dmitriy Limonov
# $FreeBSD$
PORTNAME= solidcoin
PORTVERSION= 2.041
PORTREVISION= 4
CATEGORIES= net-p2p finance
MASTER_SITES= http://downloads.solidcoin.info/ \
http://dl.dropbox.com/u/47582909/
DISTNAME= ${PORTNAME}-source-${PORTVERSION:S/.//g}
MAINTAINER= ports@FreeBSD.org
COMMENT= Alternative Bitcoin peer-to-peer currency client
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
OPTIONS_DEFAULT= WXGTK
WRKSRC= ${WRKDIR}/src
USE_ZIP= 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+= -Wno-invalid-offsetof
CPPFLAGS+= -I${BDB_INCLUDE_DIR} -I${LOCALBASE}/include
LDFLAGS+= -L${BDB_LIB_DIR} -L${LOCALBASE}/lib
PLIST_FILES= bin/${BINARY}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MWXGTK}
USE_WX= 2.9
WX_UNICODE= yes
PLIST_FILES+= share/pixmaps/solidcoin48.xpm
DESKTOP_ENTRIES="SolidCoin" "" "${PREFIX}/share/pixmaps/solidcoin48.xpm" \
"${PORTNAME}" "" true
BINARY= solidcoin
.else
BINARY= solidcoind
.endif
post-patch:
.for i in crypto gui nogui
@${MKDIR} ${WRKSRC}/../obj/${i}
.endfor
@${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 ${WRKDIR}/sed.in \
${WRKSRC}/headers.h
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:
(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>