mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
- Support stage dir
- Install icon
This commit is contained in:
parent
0ecea0c78e
commit
6af7482ae8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340014
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= dogecoin
|
||||
PORTVERSION= 1.4
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net-p2p finance
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
||||
http://people.freebsd.org/~swills/ \
|
||||
@ -37,7 +38,6 @@ CXXFLAGS+= -I${LOCALBASE}/include -I${BDB_INCLUDE_DIR}
|
||||
CXXFLAGS+= -L${LOCALBASE}/lib -L${BDB_LIB_DIR}
|
||||
CXXFLAGS+= -Wno-invalid-offsetof
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11)
|
||||
@ -65,8 +65,14 @@ QMAKE_USE_UPNP= 1
|
||||
QMAKE_USE_UPNP= -
|
||||
.endif
|
||||
|
||||
SUB_FILES+= dogecoin-qt.desktop
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11)
|
||||
PLIST_FILES+= share/applications/dogecoin-qt.desktop share/pixmaps/dogecoin64.png
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.if !${PORT_OPTIONS:MGUI} || defined(WITHOUT_X11)
|
||||
@cd ${WRKSRC}/src && ${CP} -p makefile.unix Makefile
|
||||
@ -88,9 +94,11 @@ do-configure:
|
||||
do-install:
|
||||
@${MKDIR} ${PREFIX}/bin
|
||||
.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11)
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${PREFIX}/bin/
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${STAGEDIR}${PREFIX}/bin/
|
||||
${INSTALL} ${WRKDIR}/dogecoin-qt.desktop ${STAGEDIR}${PREFIX}/share/applications
|
||||
${INSTALL} ${WRKSRC}/src/qt/res/icons/bitcoin.png ${STAGEDIR}${PREFIX}/share/pixmaps/dogecoin64.png
|
||||
.else
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/${BINARY} ${PREFIX}/bin/
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/${BINARY} ${STAGEDIR}${PREFIX}/bin/
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
10
net-p2p/dogecoin/files/dogecoin-qt.desktop.in
Normal file
10
net-p2p/dogecoin/files/dogecoin-qt.desktop.in
Normal file
@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Dogecoin
|
||||
Comment=Dogecoin P2P Cryptocurrency
|
||||
Exec=%%PREFIX%%/bin/dogecoin-qt %u
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=%%PREFIX%%/share/pixmaps/dogecoin64.png
|
||||
MimeType=x-scheme-handler/dogecoin;
|
||||
Categories=Office;
|
Loading…
Reference in New Issue
Block a user