1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/games/tuxkart/Makefile
Rusmir Dusko 66e9463da8 - Change master sites
- USES gmake instead of USE_GMAKE
- Support STAGEDIR
- Change Desktop entry file

Approved by:	pawel / wg (mentors, implicit)
2013-12-25 21:23:12 +00:00

62 lines
1.6 KiB
Makefile

# Created by: Alexander Langer <alex@FreeBSD.org>
# $FreeBSD$
PORTNAME= tuxkart
PORTVERSION= 0.4.0
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= http://tuxkart.sourceforge.net/dist/ \
SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Racing game starring Tux
LICENSE= GPLv2
BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib
USES= gmake
USE_GL= gl
GNU_CONFIGURE= yes
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib -lusbhid"
CONFIGURE_ARGS= --with-plib=${LOCALBASE}
CPPFLAGS+= -I${LOCALBASE}/include
PORTDOCS= *
DOCSRCDIR1= ${WRKSRC}
DOC_FILES1= AUTHORS CHANGES README
DOCSRCDIR2= ${WRKSRC}/doc
DOCSDIR2= ${DOCSDIR}/doc
DOC_FILES2= *.png *.html
OPTIONS_DEFINE= DOCS
DESKTOP_ENTRIES="TuxKart" "" ${PORTNAME} \
"${PORTNAME}" "Game;SportsGame;" ""
post-patch:
@${REINPLACE_CMD} -e 's|-O6|${PTHREAD_CFLAGS}|g ; \
s|-lpthread|${PTHREAD_LIBS}|g ; \
s|datadir/games|datadir|g' ${WRKSRC}/configure
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|$$(prefix)/games|@bindir@|g ; \
s|$$(datadir)/games|$$(datadir)|g'
@${REINPLACE_CMD} -e 's|doc contrib| contrib|' \
${WRKSRC}/Makefile.in
post-install:
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR2}
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
.include <bsd.port.mk>