2012-09-23 17:38:58 +02:00
|
|
|
# Created by: Girish <girish.rao.dev@gmail.com>
|
2009-05-21 20:59:06 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= spellathon
|
2012-10-31 22:42:03 +01:00
|
|
|
PORTVERSION= 6.0
|
2012-12-10 20:11:11 +01:00
|
|
|
PORTREVISION= 1
|
2009-05-21 20:59:06 +02:00
|
|
|
CATEGORIES= games
|
2012-10-31 22:42:03 +01:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/Spellathon%20${PORTVERSION}
|
2009-05-21 20:59:06 +02:00
|
|
|
|
2012-09-22 17:57:57 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2009-05-21 20:59:06 +02:00
|
|
|
COMMENT= Word game to test your English vocabulary skills
|
|
|
|
|
2012-10-31 22:42:03 +01:00
|
|
|
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
|
|
|
|
|
2012-11-08 09:39:12 +01:00
|
|
|
CXXFLAGS+= -fPIC
|
2012-10-31 22:42:03 +01:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
USE_ICONV= yes
|
|
|
|
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}" "" "true"
|
2009-05-21 20:59:06 +02:00
|
|
|
|
|
|
|
post-patch:
|
2012-10-31 22:42:03 +01:00
|
|
|
@${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})
|
2009-05-21 20:59:06 +02:00
|
|
|
|
|
|
|
do-install:
|
2012-10-31 22:42:03 +01:00
|
|
|
${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
|
2012-09-23 17:38:58 +02:00
|
|
|
@${MKDIR} ${DATADIR}
|
2009-05-21 20:59:06 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/dict/words.txt ${DATADIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|