blob: 36034261d3b08208f3a2a970b12569e110592482 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# New ports collection makefile for: pokerth
# Date created: 24 Jun 2007
# Whom: Yinghong.Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#
PORTNAME= pokerth
PORTVERSION= 0.9.4
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:R}
DISTNAME= PokerTH-${PORTVERSION}-src
MAINTAINER= madpilot@FreeBSD.org
COMMENT= A poker game written in C++/QT4
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= boost_thread:${PORTSDIR}/devel/boost-libs \
mikmod:${PORTSDIR}/audio/libmikmod \
gnutls:${PORTSDIR}/security/gnutls \
curl:${PORTSDIR}/ftp/curl \
gsasl5:${PORTSDIR}/security/gsasl \
tinyxml:${PORTSDIR}/textproc/tinyxml
BUILD_DEPENDS= ${LOCALBASE}/include/libircclient.h:${PORTSDIR}/irc/libircclient
USE_ICONV= yes
USE_BZIP2= yes
USE_GMAKE= yes
MAKE_JOBS_SAFE= yes
USE_QT_VER= 4
QT_COMPONENTS= gui corelib network sql sql-sqlite3 qmake_build \
moc_build rcc_build uic_build
USE_SDL= mixer
HAS_CONFIGURE= yes
QMAKE_ARGS+= PREFIX=${PREFIX}
PORTDOCS= server_setup_howto.txt
MAN1= pokerth.1
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -E \
-e 's|/usr([a-z|/]*)|${LOCALBASE}/\1|g' \
-e 's|(-lcurl)|\1 -liconv|g' \
-e 's:boost_([a-z]+)-[-|a-z|0-9|_]*:boost_\1:g' \
-e 's|LIB_DIRS =.*|LIB_DIRS = ${LOCALBASE}/lib|g' \
-e '/.*QMAKE_CXXFLAGS.*/d' \
${WRKSRC}/*.pro
do-configure:
@cd ${CONFIGURE_WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKE_ARGS} pokerth.pro
post-install:
@${INSTALL_PROGRAM} ${WRKSRC}/pokerth ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/bin/pokerth_server ${PREFIX}/bin
@${INSTALL_MAN} ${WRKSRC}/docs/${MAN1} ${MAN1PREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/docs/server_setup_howto.txt ${DOCSDIR}
.endif
.include <bsd.port.mk>
|