2006-03-18 23:07:55 +01:00
|
|
|
# New ports collection makefile for: kiki
|
|
|
|
# Date created: 24 Oct 2006
|
2006-12-21 21:41:33 +01:00
|
|
|
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
2006-03-18 23:07:55 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= kiki
|
|
|
|
PORTVERSION= 1.0.2
|
2009-07-31 15:57:52 +02:00
|
|
|
PORTREVISION= 6
|
2006-03-18 23:07:55 +01:00
|
|
|
CATEGORIES= games
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-src/${PORTVERSION}
|
2006-03-18 23:07:55 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2008-06-19 19:28:24 +02:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2006-03-18 23:07:55 +01:00
|
|
|
COMMENT= Kiki the nanobot is a 3-D puzzle game
|
|
|
|
|
|
|
|
USE_PYTHON= 2.3
|
|
|
|
USE_GMAKE= yes
|
2009-01-23 17:28:36 +01:00
|
|
|
USE_GL= glut
|
2006-03-18 23:07:55 +01:00
|
|
|
USE_SDL= sdl mixer image
|
2006-09-30 14:12:16 +02:00
|
|
|
USE_DOS2UNIX= kodilib/linux/Makefile src/main/KikiController.cpp linux/Makefile kodilib/src/types/KVector.h src/main/KikiPythonWidget.h
|
2006-03-18 23:07:55 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/kiki
|
|
|
|
|
|
|
|
post-patch:
|
- 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
|
|
|
@${REINPLACE_CMD} -e '/^CXXFLAGS/ s|.*|CXXFLAGS+=$$(KODI_INCLUDES) -I${LOCALBASE}/include `${SDL_CONFIG} --cflags`|' ${WRKSRC}/kodilib/linux/Makefile
|
|
|
|
@${REINPLACE_CMD} -e '/^X11_INCLUDES/ s|/.*/|${LOCALBASE}/include|' ${WRKSRC}/linux/Makefile
|
2006-03-18 23:07:55 +01:00
|
|
|
@${REINPLACE_CMD} -e '/PYTHON/ s|/usr|${LOCALBASE}|' ${WRKSRC}/linux/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/linux/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's|CXXFLAGS =|CXXFLAGS +=|' ${WRKSRC}/linux/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's|PYTHON_VERSION|PYTHON_VER|' ${WRKSRC}/linux/Makefile
|
- 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
|
|
|
@${REINPLACE_CMD} -e '/^GLLIBS/ s|$$| -L${LOCALBASE}/lib|' ${WRKSRC}/linux/Makefile
|
2006-03-18 23:07:55 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|getenv("KIKI_HOME")|"${DATADIR}"|' ${WRKSRC}/src/main/KikiController.cpp
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@cd ${WRKSRC}/kodilib/linux && ${SETENV} ${MAKE_ENV} ${GMAKE}
|
|
|
|
@cd ${WRKSRC}/linux && ${SETENV} ${MAKE_ENV} ${GMAKE}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/linux/kiki ${PREFIX}/bin
|
|
|
|
.for d in py sound
|
|
|
|
@cd ${WRKSRC}/${d} && \
|
|
|
|
${FIND} . -type d -exec ${MKDIR} ${DATADIR}/${d}/{} \; ;\
|
|
|
|
${FIND} . -type f -exec ${INSTALL_DATA} {} ${DATADIR}/${d}/{} \;
|
|
|
|
.endfor
|
|
|
|
|
2007-10-04 03:02:44 +02:00
|
|
|
.include <bsd.port.mk>
|