- Update to 0.6
PR: 119829 Submitted by: Matthias Sund <m.sund@arcor.de> Approved by: maintainer timeout
This commit is contained in:
parent
76283fd6bb
commit
f5ea0501c5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=207301
3 changed files with 43 additions and 13 deletions
|
@ -6,12 +6,10 @@
|
|||
#
|
||||
|
||||
PORTNAME= pokerth
|
||||
PORTVERSION= 0.5
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 0.6
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
DISTNAME= PokerTH-${PORTVERSION}-src
|
||||
MASTER_SITES= SF
|
||||
DISTNAME= PokerTH-${PORTVERSION}-1.src
|
||||
|
||||
MAINTAINER= relaxbsd@gmail.com
|
||||
COMMENT= A poker game written in C++/QT4
|
||||
|
@ -21,6 +19,7 @@ LIB_DEPENDS= boost_thread.4:${PORTSDIR}/devel/boost \
|
|||
|
||||
MANUAL_PACKAGE_BUILD= requires large memory to build
|
||||
|
||||
USE_ICONV= yes
|
||||
USE_BZIP2= yes
|
||||
USE_GMAKE= yes
|
||||
USE_QT_VER= 4
|
||||
|
@ -29,10 +28,14 @@ USE_SDL= mixer
|
|||
|
||||
WRKSRC= ${WRKDIR}/PokerTH-${PORTVERSION}
|
||||
|
||||
PLIST_FILES= bin/pokerth share/pixmaps/pokerth.png
|
||||
PLIST_FILES= bin/pokerth %%DATADIR%%/pokerth share/pixmaps/pokerth.png
|
||||
|
||||
PORTDOCS= COPYING ChangeLog INSTALL TODO
|
||||
|
||||
PORTDATA= data
|
||||
|
||||
MAN1= pokerth.1
|
||||
|
||||
DESKTOP_ENTRIES= "PokerTH" \
|
||||
"A poker game written in C++/Qt 4" \
|
||||
"pokerth.png" \
|
||||
|
@ -43,16 +46,23 @@ DESKTOP_ENTRIES= "PokerTH" \
|
|||
MAKE_ENV+= QTDIR="${QT_PREFIX}"
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/usr/bin/|${PREFIX}|g' \
|
||||
-e 's|boost_thread-mt|boost_thread|g' \
|
||||
${WRKSRC}/pokerth.pro
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e 's|/usr/([a-z|/]+)|${LOCALBASE}/\1|g' \
|
||||
-e 's|(-lcrypto)|\1 -liconv|g' \
|
||||
-e 's:boost_([a-z]+)-[-|a-z|0-9|_]*:boost_\1:g' \
|
||||
${WRKSRC}/*.pro
|
||||
|
||||
do-configure:
|
||||
@cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} -unix pokerth.pro
|
||||
|
||||
do-install:
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/bin/pokerth ${PREFIX}/bin/pokerth
|
||||
@${MKDIR} ${DATADIR}
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/pokerth ${DATADIR}/pokerth
|
||||
@${CP} -R ${WRKSRC}/${PORTDATA} ${DATADIR}
|
||||
@${ECHO_CMD} "exec ${DATADIR}/pokerth" > ${WRKSRC}/pokerth.sh
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/pokerth.sh ${PREFIX}/bin/pokerth
|
||||
@${INSTALL_DATA} ${WRKSRC}/pokerth.png ${PREFIX}/share/pixmaps/pokerth.png
|
||||
@${INSTALL_MAN} ${WRKSRC}/docs/${MAN1} ${MANPREFIX}/man/man1/
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for doc in ${PORTDOCS}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
MD5 (PokerTH-0.5-src.tar.bz2) = 1009e927b5d26b4eeb89d00cd4b624f7
|
||||
SHA256 (PokerTH-0.5-src.tar.bz2) = a521aa9f4e47741c132ce5023b07e594ee267d1b3d99fa9b5e0d78b39502239d
|
||||
SIZE (PokerTH-0.5-src.tar.bz2) = 4123606
|
||||
MD5 (PokerTH-0.6-1.src.tar.bz2) = a30a19487319a61e033dd7be94b29e7d
|
||||
SHA256 (PokerTH-0.6-1.src.tar.bz2) = e2f8f84887d59de507425ad9e98c43d9e3f0f60c255e111b35cdeb9845a39086
|
||||
SIZE (PokerTH-0.6-1.src.tar.bz2) = 4276017
|
||||
|
|
20
games/pokerth/files/patch-src-core-linux-convhelper.cpp
Normal file
20
games/pokerth/files/patch-src-core-linux-convhelper.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- src/core/linux/convhelper.cpp.orig 2008-01-20 13:32:07.000000000 +0100
|
||||
+++ src/core/linux/convhelper.cpp 2008-01-20 12:56:03.000000000 +0100
|
||||
@@ -39,7 +39,7 @@
|
||||
#ifdef __APPLE__
|
||||
const char *inbuf = inStr.data();
|
||||
#else
|
||||
- char *inbuf = const_cast<char *>(inStr.data());
|
||||
+ const char *inbuf = const_cast<char *>(inStr.data());
|
||||
#endif
|
||||
|
||||
const size_t c_outsize = insize * 6; // max size of utf-8 char is 6 per input char
|
||||
@@ -74,7 +74,7 @@
|
||||
#ifdef __APPLE__
|
||||
const char *inbuf = inStr.data();
|
||||
#else
|
||||
- char *inbuf = const_cast<char *>(inStr.data());
|
||||
+ const char *inbuf = const_cast<char *>(inStr.data());
|
||||
#endif
|
||||
|
||||
const size_t c_outsize = insize;
|
Loading…
Reference in a new issue