mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
ab35b658a2
- Add NLS Option and REINPLACE - Add OPTIONS_SUB - Strip executable - Recreate pkg-plist with make makeplist
48 lines
1.0 KiB
Makefile
48 lines
1.0 KiB
Makefile
# Created by: nemysis <nemysis@gmx.ch>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tanglet
|
|
PORTVERSION= 1.2.2
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://gottcode.org/${PORTNAME}/
|
|
EXTRACT_SUFX= -src.tar.bz2
|
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
|
|
|
COMMENT= Single player word finding game based on Boggle
|
|
|
|
LICENSE= GPLv3
|
|
|
|
USE_BZIP2= yes
|
|
USES= qmake
|
|
USE_QT4= moc_build rcc_build gui iconengines_run imageformats_run
|
|
LDFLAGS+= -lz
|
|
INSTALLS_ICONS= yes
|
|
|
|
PORTDOCS= CREDITS ChangeLog NEWS
|
|
|
|
OPTIONS_DEFINE= DOCS NLS
|
|
OPTIONS_SUB= yes
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -i '' -e '/PKGCONFIG += zlib/d' \
|
|
${WRKSRC}/${PORTNAME}.pro
|
|
|
|
.if ! ${PORT_OPTIONS:MNLS}
|
|
@${REINPLACE_CMD} -i '' '/qm.files/,/qm.path/s/^/#/' \
|
|
${WRKSRC}/${PORTNAME}.pro
|
|
.endif
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|