- Change master sites - Pass maintainership to submitter - Add USES desktop-file-utils - Support STAGEDIR and add OPTIONS_SUB - Add DOCS - Add DOCS and NLS Options - Change REINPLACE_CMD PR: ports/179327 Submitted by: nemysis <nemysis@gmx.ch> Approved by: pawel / wg (mentors, implicit)
56 lines
1.5 KiB
Makefile
56 lines
1.5 KiB
Makefile
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gtktetcolor
|
|
DISTVERSION= 0.6.5pre3
|
|
CATEGORIES= games gnome
|
|
MASTER_SITES= ftp://canopus.iacp.dvo.ru/pub/Games/gtktetcolor/ \
|
|
SF/nemysisfreebsdp/games/${PORTNAME}/:icons
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
|
|
${PORTNAME}.png:icons
|
|
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
|
COMMENT= Game for GNOME that resembles well-known Tetris and Columns
|
|
|
|
LICENSE= GPLv2 GPLv3
|
|
LICENSE_COMB= dual
|
|
|
|
USE_BZIP2= yes
|
|
USES= desktop-file-utils gmake pathfix pkgconfig
|
|
USE_GNOME= gnomeprefix intlhack libgnomeui
|
|
GNU_CONFIGURE= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
PORTDOCS= AUTHORS ChangeLog NEWS README TODO
|
|
|
|
OPTIONS_DEFINE= DOCS NLS
|
|
OPTIONS_SUB= yes
|
|
|
|
NLS_USES= gettext
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} \
|
|
-e 's|games.games|root.games|' \
|
|
-e 's|scoredir = $$(localstatedir)/games|scoredir = /var/games|' \
|
|
${WRKSRC}/Makefile.in
|
|
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|-D.*_DISABLE_DEPRECATED||g'
|
|
@${REINPLACE_CMD} -e 's|^Icon.*|Icon=${PORTNAME}|' \
|
|
${WRKSRC}/src/gtktetcolor.desktop.in
|
|
|
|
.if ! ${PORT_OPTIONS:MNLS}
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS/s|po||g' ${WRKSRC}/Makefile.in
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|