mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
- Fix build with clang
- Remove leading article from COMMENT - Add desktop entry file - Strip library objects - Support staging Yes, I use prefix=${STAGEDIR}${PREFIX} here, after a long while it was 5 lines of REINPLACE_CMD vs rewriting scons install script. <badmouthing of scons goes here> PR: ports/184868 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
This commit is contained in:
parent
8290d526c1
commit
825b73df7d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337731
@ -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>
|
||||
|
10
graphics/gsculpt/files/patch-cpp__Util__Pool.h
Normal file
10
graphics/gsculpt/files/patch-cpp__Util__Pool.h
Normal file
@ -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>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user