1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

- Use new options framework.

Feature safe:	yes
This commit is contained in:
Stephen Montgomery-Smith 2012-11-22 04:51:11 +00:00
parent b7061fab00
commit eba0950b8e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=307638

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: netgen
# Date created: 29 April 2004
# Whom: Thierry Thomas <thierry@FreeBSD.org>
#
# Created by: Thierry Thomas <thierry@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= netgen
PORTVERSION= 4.9.13
@ -31,18 +27,20 @@ CONFIGURE_ARGS+= --with-tcl=${TCL_LIBDIR} --with-tk=${TK_LIBDIR} --enable-jpegli
FETCH_BEFORE_ARGS+= -o ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
OPTIONS= OCC "Compile with OpenCascade geometry kernel" on \
FFMPEG "video recording with FFmpeg" off
OPTIONS_DEFINE= OCC FFMPEG
OCC_DESC= Compile with OpenCascade geometry kernel
FFMPEG_DESC= video recording with FFmpeg
OPTIONS_DEFAULTS= OCC
.include <bsd.port.options.mk>
.if defined(WITH_OCC)
.if ${PORT_OPTIONS:MOCC}
LIB_DEPENDS+= TKernel.0:${PORTSDIR}/cad/opencascade
CXXFLAGS+= -DOCCGEOMETRY -DOCC63 -DHAVE_WOK_CONFIG_H -DHAVE_CONFIG_H -D${ARCH} -I${LOCALBASE}/OpenCAS/ros/inc
CONFIGURE_ARGS+= --enable-occ
.endif
.if defined(WITH_FFMPEG)
.if ${PORT_OPTIONS:MFFMPEG}
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
CONFIGURE_ARGS+= --enable-ffmpeg
.endif
@ -56,6 +54,7 @@ MAKE_ENV= TK_VER=${TK_VER} TCL_VER=${TCL_VER} \
TK_INCLUDEDIR="${TK_INCLUDEDIR}" \
MACHINE=${MACHINE} MAKE=${GMAKE} \
PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS}
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"