mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
b924964cfa
- Get rid of QMAKEFLAGS - Use globally provided LRELEASE
51 lines
1.6 KiB
Makefile
51 lines
1.6 KiB
Makefile
# 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= libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs \
|
|
libpcre.so:${PORTSDIR}/devel/pcre \
|
|
libpng15.so:${PORTSDIR}/graphics/png \
|
|
libfreetype.so:${PORTSDIR}/print/freetype2 \
|
|
libexpat.so:${PORTSDIR}/textproc/expat2 \
|
|
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
|
|
|
|
CXXFLAGS+= -fPIC
|
|
USES= gettext iconv qmake
|
|
USE_GNOME= glib20
|
|
USE_QT4= corelib gui moc_build rcc_build uic_build
|
|
USE_XORG= ice sm x11 xau xcb xdmcp xext xrender
|
|
USE_LDCONFIG= yes
|
|
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/src/gui
|
|
|
|
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-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/spellathon ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/spellathon-cl ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/libspellathon.so.0.0 ${STAGEDIR}${PREFIX}/lib
|
|
${LN} -sf libspellathon.so.0.0 ${STAGEDIR}${PREFIX}/lib/libspellathon.so
|
|
${LN} -sf libspellathon.so.0.0 ${STAGEDIR}${PREFIX}/lib/libspellathon.so.0
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/dict/words.txt ${STAGEDIR}${DATADIR}
|
|
|
|
.include <bsd.port.mk>
|