2013-07-11 17:36:15 +02:00
|
|
|
# Created by: Alexander Langer <alex@FreeBSD.org>
|
2001-06-08 17:15:50 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2001-11-29 07:57:22 +01:00
|
|
|
PORTNAME= tuxkart
|
2004-06-03 17:12:10 +02:00
|
|
|
PORTVERSION= 0.4.0
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 5
|
2001-11-29 07:57:22 +01:00
|
|
|
CATEGORIES= games
|
2013-07-11 17:36:15 +02:00
|
|
|
MASTER_SITES= http://tuxkart.sourceforge.net/dist/ \
|
2013-12-25 22:23:12 +01:00
|
|
|
SF/nemysisfreebsdp/${CATEGORIES}/:icons
|
2013-07-11 17:36:15 +02:00
|
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}.png:icons
|
|
|
|
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
|
2001-06-08 17:15:50 +02:00
|
|
|
|
2014-10-31 17:11:33 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-07-11 17:36:15 +02:00
|
|
|
COMMENT= Racing game starring Tux
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
2014-10-13 16:00:56 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2001-06-08 17:15:50 +02:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:x11-toolkits/plib
|
2001-06-08 17:15:50 +02:00
|
|
|
|
2013-12-25 22:23:12 +01:00
|
|
|
USES= gmake
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_GL= gl
|
2001-11-29 07:57:22 +01:00
|
|
|
GNU_CONFIGURE= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CONFIGURE_ARGS= --with-plib=${LOCALBASE}
|
2013-07-11 17:36:15 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2014-06-11 16:49:59 +02:00
|
|
|
LIBS+= -L${LOCALBASE}/lib -lusbhid
|
2013-07-11 17:36:15 +02:00
|
|
|
|
|
|
|
PORTDOCS= *
|
2001-11-29 07:57:22 +01:00
|
|
|
|
2013-07-11 17:36:15 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2013-12-25 22:23:12 +01:00
|
|
|
DESKTOP_ENTRIES="TuxKart" "" ${PORTNAME} \
|
|
|
|
"${PORTNAME}" "Game;SportsGame;" ""
|
2009-06-13 20:32:04 +02:00
|
|
|
|
2001-11-29 07:57:22 +01:00
|
|
|
post-patch:
|
2015-03-26 00:00:50 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|-O6||g ; s|datadir/games|datadir|g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} \
|
|
|
|
-e 's|$$(prefix)/games|@bindir@|g ; \
|
2013-07-11 17:36:15 +02:00
|
|
|
s|$$(datadir)/games|$$(datadir)|g'
|
|
|
|
@${REINPLACE_CMD} -e 's|doc contrib| contrib|' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
|
|
|
|
post-install:
|
2013-12-25 22:23:12 +01:00
|
|
|
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/
|
2014-10-13 16:00:56 +02:00
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} "AUTHORS CHANGES README doc/*.png doc/*.html" \
|
|
|
|
${STAGEDIR}${DOCSDIR}
|
2001-06-08 17:15:50 +02:00
|
|
|
|
2013-07-11 17:36:15 +02:00
|
|
|
.include <bsd.port.mk>
|