mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
238e1b9f97
- Change master sites remove GH - Change maintainer email to @FreeBSD.org - USE_GNOME cairo instead of graphics/cairo - Add DOCS Option - Support STAGEDIR and add OPTIONS_SUB - Add patch, fix build with Clang Approved by: pawel / wg (mentors, implicit)
75 lines
1.8 KiB
Makefile
75 lines
1.8 KiB
Makefile
# Created by: nemysis <nemysis@gmx.ch>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bomb-her-man
|
|
PORTVERSION= 0.3
|
|
PORTREVISION= 2
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/nemysisfreebsdp/:icons
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
|
|
${PORTNAME}_icons${EXTRACT_SUFX}:icons
|
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
|
COMMENT= Bomberman clone written in C++
|
|
|
|
LICENSE= GPLv3
|
|
|
|
BUILD_DEPENDS= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= Keruspe
|
|
GH_PROJECT= Bomb-her-man
|
|
GH_TAGNAME= ${GH_COMMIT}
|
|
GH_COMMIT= 8f5aa22
|
|
|
|
USES= gmake pkgconfig
|
|
USE_SDL= sdl image mixer ttf
|
|
USE_GNOME= cairo intltool librsvg2
|
|
GNU_CONFIGURE= yes
|
|
USE_AUTOTOOLS= automake:env
|
|
ALL_TARGET= # empty
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
PORTDOCS= AUTHORS ChangeLog NEWS README
|
|
|
|
INSTALLS_ICONS= yes
|
|
ICON_SIZES= 32x32 48x48 64x64 72x72 96x96
|
|
|
|
DESKTOP_ENTRIES="Bomb-her-man" "Bomberman clone" "${PORTNAME}" \
|
|
"${PORTNAME}" "Game;ArcadeGame;" false
|
|
|
|
OPTIONS_DEFINE= DOCS NLS
|
|
OPTIONS_SUB= yes
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
NLS_USES= gettext
|
|
|
|
# Wrong versioning upstream
|
|
PORTSCOUT= ignore:1
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
pre-configure:
|
|
@(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./autogen.sh)
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
@${REINPLACE_CMD} -e 's|$$(prefix)/$$(DATADIRNAME)/locale|$$(prefix)/share/locale|' \
|
|
${WRKSRC}/po/Makefile.in.in
|
|
.endif
|
|
|
|
post-install:
|
|
.for s in ${ICON_SIZES}
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
|
|
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
|
|
.endfor
|
|
${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>
|