aboutsummaryrefslogtreecommitdiff
path: root/graphics/gsculpt/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2012-03-25 03:55:50 +0000
committerMartin Wilke <miwi@FreeBSD.org>2012-03-25 03:55:50 +0000
commitcf43aeea37ac0c6b42f5b897094d92587306468f (patch)
tree1bd69fa0e1a567f83385e12272288550e5117941 /graphics/gsculpt/Makefile
parentf5b7a121320ece42e5ce7a90f713e0f2105f796b (diff)
downloadports-cf43aeea37ac0c6b42f5b897094d92587306468f.tar.gz
ports-cf43aeea37ac0c6b42f5b897094d92587306468f.zip
- Update to 0.99.47
PR: 166036 Submitted by: Ports Fury Feature safe: yes
Notes
Notes: svn path=/head/; revision=293789
Diffstat (limited to 'graphics/gsculpt/Makefile')
-rw-r--r--graphics/gsculpt/Makefile54
1 files changed, 32 insertions, 22 deletions
diff --git a/graphics/gsculpt/Makefile b/graphics/gsculpt/Makefile
index 9501a59c5c2d..d9723048444f 100644
--- a/graphics/gsculpt/Makefile
+++ b/graphics/gsculpt/Makefile
@@ -7,27 +7,31 @@
#
PORTNAME= gsculpt
-PORTVERSION= 0.99.46.2
-PORTREVISION= 6
+PORTVERSION= 0.99.47
CATEGORIES= graphics
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/gSculpt-${PORTVERSION}-alpha
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTNAME:S,-src,,}
DISTNAME= gSculpt-${PORTVERSION}-alpha-src
MAINTAINER= ports@FreeBSD.org
COMMENT= An Opensource 3D modelling application
-LIB_DEPENDS= boost_python:${PORTSDIR}/devel/boost-python-libs
-RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/gtkgl/__init__.py:${PORTSDIR}/x11-toolkits/py-gtkglext \
- ${PYTHON_SITELIBDIR}/OpenGL/__init__.py:${PORTSDIR}/graphics/py-opengl
+LICENSE= GPLv2
-WRKSRC= ${WRKDIR}/gSculpt-${PORTVERSION}-alpha
+LIB_DEPENDS= boost_python.4:${PORTSDIR}/devel/boost-python-libs
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}opengl>0:${PORTSDIR}/graphics/py-opengl \
+ ${PYTHON_PKGNAMEPREFIX}gtkglext>0:${PORTSDIR}/x11-toolkits/py-gtkglext
+
+WRKSRC= ${WRKDIR}/${DISTNAME:S,-src,,}
+
+USE_GNOME= pygtk2
+USE_GL= glu
+USE_XORG= x11
+USE_PYTHON= 2.4+
USE_SCONS= yes
SCONS_BUILDENV= ${SCONS_ENV}
-USE_PYTHON= 2.5+
-USE_XORG= x11
-USE_GL= yes
-USE_GNOME= pygtk2
USE_LDCONFIG= ${PREFIX}/lib/gSculpt
+MAKE_JOBS_SAFE= yes
+
DATADIR= ${PREFIX}/share/gSculpt
.include <bsd.port.pre.mk>
@@ -36,21 +40,27 @@ DATADIR= ${PREFIX}/share/gSculpt
BROKEN= Does not compile on ia64, powerpc, or sparc64
.endif
+.if ${ARCH} == "i386"
+CFLAGS+= -DGSCULPT_FPU_X86
+.endif
+
post-patch:
- @${REINPLACE_CMD} -e "s|gsculpt.py|${PYTHONPREFIX_SITELIBDIR}/gSculpt/gsculpt.py|" \
+ @${REINPLACE_CMD} -e \
+ "s| gsculpt.py| ${PYTHONPREFIX_SITELIBDIR}/gSculpt/gsculpt.py|" \
${WRKSRC}/gsculpt
- @${REINPLACE_CMD} -e "s|prefix = os.path.join( '/usr', 'local' )|prefix='${PREFIX}'|; \
- s|'bin', 'gSculpt'|'${PYTHONPREFIX_SITELIBDIR}'|;" \
- ${WRKSRC}/SConstruct-install
- @${REINPLACE_CMD} -e "s|-O2|-O1\|-O2|;s|'-Werror',||" \
+ @${REINPLACE_CMD} -e \
+ "s|'-Werror'|''| ; \
+ s|'-g'|''| ; \
+ s|'-DGSCULPT_FPU_X86'|''| ; \
+ s|'[(]-O2.*-O[)]'|''| ; \
+ /^cppLibs/s|BackgroundModel|BackgroundMesh|" \
${WRKSRC}/SConstruct
-.if ${ARCH} != "i386"
- @${REINPLACE_CMD} -e "s|, '-DGSCULPT_FPU_X86'||;" \
- ${WRKSRC}/SConstruct
-.endif
+ @${REINPLACE_CMD} -e \
+ "/^prefix/s|=.*|= '${PREFIX}'| ; \
+ /^gSculptStartDir/s|=.*|= os.path.join( pysitelibdir )|" \
+ ${WRKSRC}/SConstruct-install
do-install:
- @cd ${WRKSRC} && \
- ${SCONS_BIN} -f SConstruct-install ${PREFIX}
+ @cd ${WRKSRC} && ${SCONS_BIN} -f SConstruct-install ${PREFIX}
.include <bsd.port.post.mk>