1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00

- Update to 2013.1 [1]

- Add LICENSE [1]
- Update MASTER_SITES [1]
- Fix the flex dependency [1]
- Fix the build with custom PREFIX and LOCALBASE
- Trim Makefile headers
- Update LIB_DEPENDS

PR:		177064 [1]
Submitted by:	Pedro Giffuni <giffunip@tutopia.com> [1]
Approved by:	maintainer(timeout, > 50 days)
This commit is contained in:
Wen Heping 2013-05-11 15:07:55 +00:00
parent f99cae6c11
commit 8165ca1912
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=317882
3 changed files with 24 additions and 16 deletions

View File

@ -1,29 +1,26 @@
# New ports collection makefile for: openscad
# Date created: 17 August 2011
# Whom: Michael Reifenberger <mr@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= openscad
PORTVERSION= 2011.12
PORTREVISION= 1
PORTVERSION= 2013.01
CATEGORIES= cad
MASTER_SITES= https://cloud.github.com/downloads/openscad/openscad/
MASTER_SITES= GOOGLE_CODE
DISTNAME= openscad-${PORTVERSION}.src
MAINTAINER= mr@FreeBSD.org
COMMENT= The programmer's solid 3D CAD modeller
LICENSE= GPLv2
BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison \
flex:${PORTSDIR}/textproc/flex \
${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex \
${LOCALBASE}/libdata/pkgconfig/eigen2.pc:${PORTSDIR}/math/eigen2 \
${LOCALBASE}/include/boost/tuple/tuple.hpp:${PORTSDIR}/devel/boost-libs
#RUN_DEPENDS= ${LOCALBASE}/include/boost/tuple/tuple.hpp:${PORTSDIR}/devel/boost-libs
LIB_DEPENDS= GLU.1:${PORTSDIR}/graphics/libGLU \
gmp.10:${PORTSDIR}/math/gmp \
mpfr.4:${PORTSDIR}/math/mpfr \
CGAL.5:${PORTSDIR}/math/cgal \
LIB_DEPENDS= GLU:${PORTSDIR}/graphics/libGLU \
gmp:${PORTSDIR}/math/gmp \
mpfr:${PORTSDIR}/math/mpfr \
CGAL:${PORTSDIR}/math/cgal \
opencsg:${PORTSDIR}/graphics/opencsg
USE_GL= glew
@ -35,11 +32,15 @@ QMAKE_FLAGS = VERSION=${PORTVERSION}
MAKE_ENV = INSTALL_ROOT=${DESTDIR}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
pre-configure:
post-patch:
${REINPLACE_CMD} -e 's,XXXFLEXXX,"${LOCALBASE}/bin/flex",' \
${WRKSRC}/openscad.pro
${REINPLACE_CMD} -e 's,XXXBISONXXX,"${LOCALBASE}/bin/bison",' \
${WRKSRC}/openscad.pro
${REINPLACE_CMD} -e 's,$$$$PREFIX,${PREFIX},' \
${WRKSRC}/openscad.pro
${REINPLACE_CMD} -e 's#/usr/local/bin/flex#${LOCALBASE}/bin/flex#g' \
${WRKSRC}/flex.pri
do-configure:
cd ${WRKSRC} && \

View File

@ -1,2 +1,2 @@
SHA256 (openscad-2011.12.src.tar.gz) = 507e12bb2a4bb556ee8fcdce9779860d89071e924678b2200d82fdb5fae7583d
SIZE (openscad-2011.12.src.tar.gz) = 3247723
SHA256 (openscad-2013.01.src.tar.gz) = 2ef078b588c42f7ba873850f40a4695c6a47f3805d1560717dd3f98fe8082007
SIZE (openscad-2013.01.src.tar.gz) = 3459766

View File

@ -1,4 +1,6 @@
bin/openscad
share/applications/openscad.desktop
share/pixmaps/openscad.png
%%DATADIR%%/examples/example001.scad
%%DATADIR%%/examples/example002.scad
%%DATADIR%%/examples/example003.scad
@ -28,13 +30,17 @@ bin/openscad
%%DATADIR%%/examples/example020.scad
%%DATADIR%%/examples/example021.scad
%%DATADIR%%/examples/example022.scad
%%DATADIR%%/examples/example023.scad
%%DATADIR%%/libraries/MCAD/openscad_testing.py
%%DATADIR%%/libraries/MCAD/bearing.scad
%%DATADIR%%/libraries/MCAD/boxes.scad
%%DATADIR%%/libraries/MCAD/fonts.scad
%%DATADIR%%/libraries/MCAD/hardware.scad
%%DATADIR%%/libraries/MCAD/lego_compatibility.scad
%%DATADIR%%/libraries/MCAD/math.scad
%%DATADIR%%/libraries/MCAD/multiply.scad
%%DATADIR%%/libraries/MCAD/servos.scad
%%DATADIR%%/libraries/MCAD/teardrop.scad
%%DATADIR%%/libraries/MCAD/math.scad
%%DATADIR%%/libraries/MCAD/transformations.scad
%%DATADIR%%/libraries/MCAD/gridbeam.scad
%%DATADIR%%/libraries/MCAD/curves.scad
@ -75,3 +81,4 @@ bin/openscad
@dirrm %%DATADIR%%/libraries
@dirrm %%DATADIR%%/examples
@dirrm %%DATADIR%%
@dirrmtry share/applications