mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
5f622f61b0
- Add master site - Transfer maintainership to games@ team - Remove DEPRECATED, EXPIRATION_DATE - Add USE_GCC=yes - Add DOCS and add Option - Install conditional NLS, add Option - Support STAGEDIR and add OPTIONS_SUB - Use patch instead of REINPLACE, remove setuid executable and change add patch-Makefile.in - Change REINPLACE, cosmetical changes - Fix GNU/Linux compatibility, proper install - Fix desktop entry file - Recreate patch with make makepatch - Change pkg-descr - Change pkg-plist
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# Created by: Kris Kennaway <kris@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gnomebreakout
|
|
PORTVERSION= 0.5.3
|
|
PORTREVISION= 12
|
|
CATEGORIES= games gnome
|
|
MASTER_SITES= SF/${PORTNAME:S/eb/e-b/}/${PORTNAME:S/eb/e-b/}/${PORTVERSION}/ \
|
|
http://www.users.on.net/~mipearson/
|
|
DISTNAME= gnome-breakout-${PORTVERSION}
|
|
|
|
MAINTAINER= games@FreeBSD.org
|
|
COMMENT= GNOME version of the classic breakout game
|
|
|
|
USES= pathfix pkgconfig
|
|
USE_GNOME= gnomeprefix libgnomeui
|
|
GNU_CONFIGURE= yes
|
|
USE_GCC= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lm
|
|
|
|
PORTDOCS= AUTHORS ChangeLog NEWS README
|
|
|
|
OPTIONS_DEFINE= DOCS NLS
|
|
OPTIONS_SUB= yes
|
|
|
|
NLS_USES= gettext:run
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-Werror||' ${WRKSRC}/src/Makefile.in
|
|
@${REINPLACE_CMD} -e \
|
|
's|@GETTEXT_PACKAGE@|@PACKAGE@|' ${WRKSRC}/po/Makefile.in.in
|
|
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|-DGNOME_DISABLE_DEPRECATED||; s|-DGTK_DISABLE_DEPRECATED||; \
|
|
s|-DGDK_PIXBUF_DISABLE_DEPRECATED||; s|-DG_DISABLE_DEPRECATED||'
|
|
|
|
.if ! ${PORT_OPTIONS:MNLS}
|
|
@${REINPLACE_CMD} -e 's|po src|src|' \
|
|
${WRKSRC}/Makefile.in
|
|
.endif
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|