mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
3e4ed01146
- 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)
54 lines
1.8 KiB
Makefile
54 lines
1.8 KiB
Makefile
# New ports collection makefile for: kiki
|
|
# Date created: 24 Oct 2006
|
|
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= kiki
|
|
PORTVERSION= 1.0.2
|
|
PORTREVISION= 4
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= amdmi3@amdmi3.ru
|
|
COMMENT= Kiki the nanobot is a 3-D puzzle game
|
|
|
|
LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut
|
|
|
|
USE_PYTHON= 2.3
|
|
USE_GMAKE= yes
|
|
USE_GL= gl
|
|
USE_SDL= sdl mixer image
|
|
USE_DOS2UNIX= kodilib/linux/Makefile src/main/KikiController.cpp linux/Makefile kodilib/src/types/KVector.h src/main/KikiPythonWidget.h
|
|
|
|
MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
|
|
|
|
WRKSRC= ${WRKDIR}/kiki
|
|
|
|
post-patch:
|
|
@${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
|
|
@${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
|
|
@${REINPLACE_CMD} -e '/^GLLIBS/ s|$$| -L${LOCALBASE}/lib|' ${WRKSRC}/linux/Makefile
|
|
@${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
|
|
|
|
.include <bsd.port.mk>
|