2005-10-09 02:17:17 +02:00
|
|
|
# New ports collection makefile for: py-soya3d
|
|
|
|
# Date created: 2005-10-04
|
|
|
|
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= soya3d
|
2009-04-27 03:16:35 +02:00
|
|
|
PORTVERSION= 0.14
|
2009-04-28 21:14:33 +02:00
|
|
|
PORTREVISION= 1
|
2008-12-28 11:54:08 +01:00
|
|
|
CATEGORIES= graphics python
|
2005-10-09 02:17:17 +02:00
|
|
|
MASTER_SITES= http://download.gna.org/soya/
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= Soya-${PORTVERSION}
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
2006-04-15 20:06:00 +02:00
|
|
|
DIST_SUBDIR= python
|
2005-10-09 02:17:17 +02:00
|
|
|
|
2006-07-23 04:45:24 +02:00
|
|
|
MAINTAINER= acm@FreeBSD.org
|
2005-10-10 19:37:16 +02:00
|
|
|
COMMENT= Very high level 3D engine for Python
|
2005-10-09 02:17:17 +02:00
|
|
|
|
2007-08-19 20:58:55 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libode.a:${PORTSDIR}/devel/ode \
|
2009-04-27 03:16:35 +02:00
|
|
|
${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
|
2006-08-21 18:09:18 +02:00
|
|
|
LIB_DEPENDS= cal3d.12:${PORTSDIR}/graphics/cal3d \
|
2005-10-09 02:17:17 +02:00
|
|
|
GLEW.1:${PORTSDIR}/graphics/glew \
|
2007-08-19 20:58:55 +02:00
|
|
|
openal.0:${PORTSDIR}/audio/openal \
|
|
|
|
alut.1:${PORTSDIR}/audio/freealut \
|
2005-10-09 02:17:17 +02:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/editobj/editor.py:${PORTSDIR}/graphics/py-editobj \
|
2006-06-15 18:04:37 +02:00
|
|
|
${PYTHON_SITELIBDIR}/tofu/client.py:${PORTSDIR}/net/py-tofu \
|
|
|
|
${PYTHON_SITELIBDIR}/cerealizer/__init__.py:${PORTSDIR}/security/py-cerealizer
|
2005-10-09 02:17:17 +02:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= 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
|
|
|
USE_GL= gl
|
2005-10-09 02:17:17 +02:00
|
|
|
USE_GMAKE= yes
|
2009-04-27 03:28:46 +02:00
|
|
|
USE_SDL= sdl
|
2005-10-09 02:17:17 +02:00
|
|
|
|
2007-07-30 11:42:28 +02:00
|
|
|
PYDISTUTILS_PKGNAME= Soya
|
|
|
|
|
2005-10-09 02:17:17 +02:00
|
|
|
MANDIR= ${WRKDIR}/${DISTNAME}/manpage/man1
|
|
|
|
MAN1= soya_editor.1
|
|
|
|
INSTALL_DIR= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
|
2009-04-27 03:16:35 +02:00
|
|
|
SOYATUTVER= 0.14
|
2005-10-09 02:17:17 +02:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
2006-05-07 20:49:33 +02:00
|
|
|
DISTFILES+= SoyaTutorial-${SOYATUTVER}${EXTRACT_SUFX}
|
2005-10-24 04:34:23 +02:00
|
|
|
.endif
|
|
|
|
|
2006-05-17 21:08:23 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
CFLAGS += -fPIC
|
|
|
|
.endif
|
|
|
|
|
2005-11-06 15:01:12 +01:00
|
|
|
post-patch:
|
2009-04-27 03:16:35 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py
|
2005-11-06 15:01:12 +01:00
|
|
|
|
2005-10-09 02:17:17 +02:00
|
|
|
post-install:
|
2006-06-15 18:04:37 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2005-10-09 02:17:17 +02:00
|
|
|
@${INSTALL_DIR} ${EXAMPLESDIR}
|
2006-05-07 20:49:33 +02:00
|
|
|
@${CP} -R ${WRKDIR}/SoyaTutorial-${SOYATUTVER}/tutorial/* ${EXAMPLESDIR}
|
2005-10-09 02:17:17 +02:00
|
|
|
@${FIND} ${EXAMPLESDIR}/* -type f -print0 | \
|
|
|
|
${XARGS} -0 ${CHMOD} ${SHAREMODE}
|
2006-06-15 18:04:37 +02:00
|
|
|
@${INSTALL_DIR} ${DOCSDIR}
|
|
|
|
.for FILE in AUTHORS README
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/SoyaTutorial-${SOYATUTVER}/${FILE} ${DOCSDIR}
|
2005-10-09 02:17:17 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2006-06-15 18:04:37 +02:00
|
|
|
.for FILE in ${MAN1}
|
|
|
|
${INSTALL_MAN} ${MANDIR}/${FILE} ${PREFIX}/man/man1
|
|
|
|
.endfor
|
|
|
|
|
2006-05-17 21:08:23 +02:00
|
|
|
.include <bsd.port.post.mk>
|