diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2013-12-27 14:05:59 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2013-12-27 14:05:59 +0000 |
commit | 825b73df7ddc3589162df07b91e8f6d154e0f76c (patch) | |
tree | d081df3e17bed8bf4c084fe876f9cc7f4f3f8800 /graphics/gsculpt | |
parent | 8290d526c151b838d3811e1e28042f5716d85779 (diff) |
Notes
Diffstat (limited to 'graphics/gsculpt')
-rw-r--r-- | graphics/gsculpt/Makefile | 29 | ||||
-rw-r--r-- | graphics/gsculpt/files/patch-cpp__Util__Pool.h | 10 | ||||
-rw-r--r-- | graphics/gsculpt/pkg-plist | 1 |
3 files changed, 31 insertions, 9 deletions
diff --git a/graphics/gsculpt/Makefile b/graphics/gsculpt/Makefile index 0d0d0526bba0..22827b029fce 100644 --- a/graphics/gsculpt/Makefile +++ b/graphics/gsculpt/Makefile @@ -3,13 +3,13 @@ PORTNAME= gsculpt PORTVERSION= 0.99.47 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= graphics MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTNAME:S,-src,,} DISTNAME= gSculpt-${PORTVERSION}-alpha-src MAINTAINER= ports@FreeBSD.org -COMMENT= An Opensource 3D modelling application +COMMENT= Opensource 3D modelling application LICENSE= GPLv2 @@ -19,18 +19,19 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}opengl>0:${PORTSDIR}/graphics/py-opengl \ WRKSRC= ${WRKDIR}/${DISTNAME:S,-src,,} -USES= pkgconfig +USES= pkgconfig scons USE_GNOME= pygtk2 USE_GL= glu USE_XORG= x11 -USE_PYTHON= 2.4+ -USE_SCONS= yes -SCONS_BUILDENV= ${SCONS_ENV} +USE_PYTHON= 2 USE_LDCONFIG= ${PREFIX}/lib/gSculpt DATADIR= ${PREFIX}/share/gSculpt -NO_STAGE= yes +DESKTOP_ENTRIES="gSculpt" "" \ + "${DATADIR}/gsimages/gSculpt_Glass_Master_by_Gary_Rose.png" \ + "${PORTNAME}" "Graphics;GTK;" "" + .include <bsd.port.pre.mk> .if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" @@ -53,11 +54,21 @@ post-patch: /^cppLibs/s|BackgroundModel|BackgroundMesh|" \ ${WRKSRC}/SConstruct @${REINPLACE_CMD} -e \ - "/^prefix/s|=.*|= '${PREFIX}'| ; \ + "/^prefix/s|=.*|= '${STAGEDIR}${PREFIX}'| ; \ /^gSculptStartDir/s|=.*|= os.path.join( pysitelibdir )|" \ ${WRKSRC}/SConstruct-install + @${REINPLACE_CMD} -e \ + "s|#GSCULPT_LIBRARY_PATH#|${LOCALBASE}/lib/gSculpt|; \ + s|python|${PYTHON_CMD}|; \ + s|#GSCULPT_START#|${PYTHONPREFIX_SITELIBDIR}/gsculpt.py|" \ + ${WRKSRC}/posixbuild/gsculpt do-install: - @cd ${WRKSRC} && ${SCONS_BIN} -f SConstruct-install ${PREFIX} + @(cd ${WRKSRC} && ${SCONS} -f SConstruct-install install) + @(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -m compileall \ + -d ${PREFIX} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}) + @${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Britefury \ + -name "*.so" -exec ${STRIP_CMD} {} \; + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gSculpt/*.so .include <bsd.port.post.mk> diff --git a/graphics/gsculpt/files/patch-cpp__Util__Pool.h b/graphics/gsculpt/files/patch-cpp__Util__Pool.h new file mode 100644 index 000000000000..96f063378434 --- /dev/null +++ b/graphics/gsculpt/files/patch-cpp__Util__Pool.h @@ -0,0 +1,10 @@ +--- cpp/Util/Pool.h.orig ++++ cpp/Util/Pool.h +@@ -8,6 +8,7 @@ + #ifndef POOL_H__ + #define POOL_H__ + ++#include <cstdlib> + #include <memory.h> + + #include <Util/Array.h> diff --git a/graphics/gsculpt/pkg-plist b/graphics/gsculpt/pkg-plist index 11eaaa01d485..4ae82253c015 100644 --- a/graphics/gsculpt/pkg-plist +++ b/graphics/gsculpt/pkg-plist @@ -486,6 +486,7 @@ lib/gSculpt/libView.so %%PYTHON_SITELIBDIR%%/Britefury/gSculptConfig/gSculptConfig.pyc %%PYTHON_SITELIBDIR%%/Britefury/gSculptConfig/gSculptUserConfig.pyc %%PYTHON_SITELIBDIR%%/gsculpt.py +%%PYTHON_SITELIBDIR%%/gsculpt.pyc %%DATADIR%%/gsimages/background_images.png %%DATADIR%%/gsimages/background_models.png %%DATADIR%%/gsimages/draw_backg_transparent.png |