2013-01-31 14:38:42 +01:00
|
|
|
# Created by: ijliao
|
2001-10-10 04:54:00 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gsculpt
|
2012-03-25 05:55:50 +02:00
|
|
|
PORTVERSION= 0.99.47
|
2017-05-23 07:03:14 +02:00
|
|
|
PORTREVISION= 13
|
2001-10-10 04:54:00 +02:00
|
|
|
CATEGORIES= graphics
|
2012-03-25 05:55:50 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTNAME:S,-src,,}
|
2007-02-25 08:15:48 +01:00
|
|
|
DISTNAME= gSculpt-${PORTVERSION}-alpha-src
|
2001-10-10 04:54:00 +02:00
|
|
|
|
2009-08-02 04:51:50 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-12-27 15:05:59 +01:00
|
|
|
COMMENT= Opensource 3D modelling application
|
2001-10-10 04:54:00 +02:00
|
|
|
|
2012-03-25 05:55:50 +02:00
|
|
|
LICENSE= GPLv2
|
2016-05-11 15:08:13 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2007-02-25 08:15:48 +01:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libboost_python.so:devel/boost-python-libs
|
2016-05-10 23:36:33 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}PyOpenGL>0:graphics/py-PyOpenGL \
|
2016-04-01 16:00:51 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}gtkglext>0:x11-toolkits/py-gtkglext
|
2012-03-25 05:55:50 +02:00
|
|
|
|
2017-06-25 02:29:09 +02:00
|
|
|
BROKEN_powerpc= fails to compile
|
|
|
|
BROKEN_sparc64= fails to compile
|
|
|
|
|
2012-03-25 05:55:50 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S,-src,,}
|
|
|
|
|
2014-10-21 18:36:12 +02:00
|
|
|
USES= pkgconfig python:2 scons
|
2012-03-25 05:55:50 +02:00
|
|
|
USE_GNOME= pygtk2
|
|
|
|
USE_GL= glu
|
|
|
|
USE_XORG= x11
|
2007-02-25 08:15:48 +01:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/gSculpt
|
2012-03-25 05:55:50 +02:00
|
|
|
|
2007-09-27 21:07:05 +02:00
|
|
|
DATADIR= ${PREFIX}/share/gSculpt
|
2003-06-05 00:43:38 +02:00
|
|
|
|
2013-12-27 15:05:59 +01:00
|
|
|
DESKTOP_ENTRIES="gSculpt" "" \
|
|
|
|
"${DATADIR}/gsimages/gSculpt_Glass_Master_by_Gary_Rose.png" \
|
|
|
|
"${PORTNAME}" "Graphics;GTK;" ""
|
|
|
|
|
2003-05-18 12:15:24 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2017-06-25 02:29:09 +02:00
|
|
|
.if ${ARCH} == i386
|
2012-03-25 05:55:50 +02:00
|
|
|
CFLAGS+= -DGSCULPT_FPU_X86
|
|
|
|
.endif
|
|
|
|
|
2001-10-10 04:54:00 +02:00
|
|
|
post-patch:
|
2012-03-25 05:55:50 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
"s| gsculpt.py| ${PYTHONPREFIX_SITELIBDIR}/gSculpt/gsculpt.py|" \
|
2007-03-02 18:26:49 +01:00
|
|
|
${WRKSRC}/gsculpt
|
2012-03-25 05:55:50 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
"s|'-Werror'|''| ; \
|
|
|
|
s|'-g'|''| ; \
|
|
|
|
s|'-DGSCULPT_FPU_X86'|''| ; \
|
|
|
|
s|'[(]-O2.*-O[)]'|''| ; \
|
|
|
|
/^cppLibs/s|BackgroundModel|BackgroundMesh|" \
|
2007-09-27 21:07:05 +02:00
|
|
|
${WRKSRC}/SConstruct
|
2012-03-25 05:55:50 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
2013-12-27 15:05:59 +01:00
|
|
|
"/^prefix/s|=.*|= '${STAGEDIR}${PREFIX}'| ; \
|
2012-03-25 05:55:50 +02:00
|
|
|
/^gSculptStartDir/s|=.*|= os.path.join( pysitelibdir )|" \
|
|
|
|
${WRKSRC}/SConstruct-install
|
2013-12-27 15:05:59 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
"s|#GSCULPT_LIBRARY_PATH#|${LOCALBASE}/lib/gSculpt|; \
|
|
|
|
s|python|${PYTHON_CMD}|; \
|
|
|
|
s|#GSCULPT_START#|${PYTHONPREFIX_SITELIBDIR}/gsculpt.py|" \
|
|
|
|
${WRKSRC}/posixbuild/gsculpt
|
2007-09-27 21:07:05 +02:00
|
|
|
|
2001-10-10 04:54:00 +02:00
|
|
|
do-install:
|
2013-12-27 15:05:59 +01:00
|
|
|
@(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
|
2001-10-10 04:54:00 +02:00
|
|
|
|
2003-05-18 12:15:24 +02:00
|
|
|
.include <bsd.port.post.mk>
|