aboutsummaryrefslogtreecommitdiffstats
path: root/cad/openscad/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'cad/openscad/Makefile')
-rw-r--r--cad/openscad/Makefile27
1 files changed, 14 insertions, 13 deletions
diff --git a/cad/openscad/Makefile b/cad/openscad/Makefile
index 8d816a896fde..a5b60433c208 100644
--- a/cad/openscad/Makefile
+++ b/cad/openscad/Makefile
@@ -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} && \