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
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 10
|
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}
|
2009-12-14 04:09:19 +01:00
|
|
|
EXTRACT_SUFX= -src.tgz
|
2006-03-18 23:07:55 +01:00
|
|
|
|
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
|
|
|
|
|
2009-12-14 04:09:19 +01:00
|
|
|
BUILD_DEPENDS= swig:${PORTSDIR}/devel/swig13
|
|
|
|
|
2009-12-18 01:45:20 +01:00
|
|
|
USE_PYTHON= 2.5+
|
2006-03-18 23:07:55 +01:00
|
|
|
USE_GMAKE= yes
|
2009-12-14 04:09:19 +01:00
|
|
|
USE_GL= gl glu 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
|
2009-12-14 04:09:19 +01:00
|
|
|
MAKE_ENV= PYTHON_VER=${PYTHON_VERSION:C/^python//}
|
|
|
|
MAKE_JOBS_SAFE= yes
|
2006-03-18 23:07:55 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/kiki
|
|
|
|
|
2009-12-14 04:09:19 +01:00
|
|
|
DESKTOP_ENTRIES="kiki the nanobot" \
|
|
|
|
"3-D puzzle game" \
|
|
|
|
"" \
|
|
|
|
"kiki" \
|
|
|
|
"Game;LogicGame;" \
|
|
|
|
false
|
|
|
|
|
2006-03-18 23:07:55 +01:00
|
|
|
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
|
2006-03-18 23:07:55 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|getenv("KIKI_HOME")|"${DATADIR}"|' ${WRKSRC}/src/main/KikiController.cpp
|
|
|
|
|
|
|
|
do-build:
|
2009-12-14 04:09:19 +01:00
|
|
|
cd ${WRKSRC}/SWIG && swig -c++ -python -globals kiki -o KikiPy_wrap.cpp KikiPy.i
|
|
|
|
cd ${WRKSRC}/kodilib/linux && ${SETENV} ${MAKE_ENV} ${GMAKE} ${_MAKE_JOBS}
|
|
|
|
cd ${WRKSRC}/linux && ${SETENV} ${MAKE_ENV} ${GMAKE} ${_MAKE_JOBS}
|
2006-03-18 23:07:55 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/linux/kiki ${PREFIX}/bin
|
2009-12-14 04:09:19 +01:00
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} "py sound" ${DATADIR}/
|
2006-03-18 23:07:55 +01:00
|
|
|
|
2007-10-04 03:02:44 +02:00
|
|
|
.include <bsd.port.mk>
|