aboutsummaryrefslogtreecommitdiffstats
path: root/games/spellathon/Makefile
blob: 3b8c885cbf6173f143534e72105766c337bfc5c2 (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
# Created by: Girish <girish.rao.dev@gmail.com>
# $FreeBSD$

PORTNAME=   spellathon
PORTVERSION=    6.0
PORTREVISION=   2
CATEGORIES= games
MASTER_SITES=   SF/${PORTNAME}/Spellathon%20${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Word game to test your English vocabulary skills

LICENSE=    BSD

LIB_DEPENDS=    pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
        pcre:${PORTSDIR}/devel/pcre \
        png15:${PORTSDIR}/graphics/png \
        freetype:${PORTSDIR}/print/freetype2 \
        expat:${PORTSDIR}/textproc/expat2 \
        fontconfig:${PORTSDIR}/x11-fonts/fontconfig \
        xcb:${PORTSDIR}/x11/libxcb

CXXFLAGS+=  -fPIC
USES=       gettext iconv
USE_GNOME=  glib20
USE_QT4=    corelib gui moc_build qmake_build rcc_build uic_build
USE_XORG=   ice sm x11 xau xdmcp xext xrender
USE_LDCONFIG=   yes
MAKE_JOBS_SAFE= yes

DESKTOP_ENTRIES="Spellathon" "${COMMENT}" "" "${PORTNAME}" "Education;Languages;" "true"

post-patch:
    @${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
        's|$${CC}|$${CXX}|g ; \
         s|$${CFLAGS}|$${CXXFLAGS}|g ; \
         s|qmake-qt4|${TRUE}|'
    @${REINPLACE_CMD} \
        's|dict/words.txt|${DATADIR}/words.txt|' ${WRKSRC}/src/logic/defines.h

do-configure:
    @(cd ${WRKSRC}/src/gui && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS})

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/spellathon ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/spellathon-cl ${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/libspellathon.so.0.0 ${PREFIX}/lib
    ${LN} -sf libspellathon.so.0.0 ${PREFIX}/lib/libspellathon.so
    ${LN} -sf libspellathon.so.0.0 ${PREFIX}/lib/libspellathon.so.0
    @${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/dict/words.txt ${DATADIR}

.include <bsd.port.mk>