head	1.17;
access;
symbols
	RELEASE_8_3_0:1.8
	RELEASE_9_0_0:1.7
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.5
	RELEASE_8_1_0:1.4;
locks; strict;
comment	@# @;


1.17
date	2013.03.22.23.30.10;	author svnexp;	state Exp;
branches;
next	1.16;

1.16
date	2012.12.10.13.48.08;	author svnexp;	state Exp;
branches;
next	1.15;

1.15
date	2012.11.17.06.01.18;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2012.09.24.14.22.28;	author ale;	state Exp;
branches;
next	1.13;

1.13
date	2012.06.13.14.22.45;	author ale;	state Exp;
branches;
next	1.12;

1.12
date	2012.06.13.14.06.25;	author ale;	state Exp;
branches;
next	1.11;

1.11
date	2012.06.06.08.11.11;	author miwi;	state Exp;
branches;
next	1.10;

1.10
date	2012.06.06.06.44.22;	author miwi;	state Exp;
branches;
next	1.9;

1.9
date	2012.06.01.05.24.08;	author dinoex;	state Exp;
branches;
next	1.8;

1.8
date	2011.12.15.14.04.37;	author ale;	state Exp;
branches;
next	1.7;

1.7
date	2011.05.27.12.41.13;	author ale;	state Exp;
branches;
next	1.6;

1.6
date	2011.04.10.08.48.14;	author makc;	state Exp;
branches;
next	1.5;

1.5
date	2010.11.03.10.47.57;	author ale;	state Exp;
branches;
next	1.4;

1.4
date	2010.06.29.10.00.46;	author ale;	state Exp;
branches;
next	1.3;

1.3
date	2010.06.12.10.30.11;	author ale;	state Exp;
branches;
next	1.2;

1.2
date	2010.06.12.06.54.13;	author ale;	state Exp;
branches;
next	1.1;

1.1
date	2010.06.01.15.16.46;	author ale;	state Exp;
branches;
next	;


desc
@@


1.17
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314960
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Alex Dupre <ale@@FreeBSD.org>
# $FreeBSD: head/security/quantis/Makefile 314960 2013-03-22 20:06:14Z makc $

PORTNAME=	quantis
DISTVERSION=	v12.09.12
CATEGORIES=	security devel java
MASTER_SITES=	http://www.idquantique.com/files/products/quantis/ \
		${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	ale
DISTNAME=	${PORTNAME}-${DISTVERSION}-src

MAINTAINER=	ale@@FreeBSD.org
COMMENT=	Libraries and utilities to access Quantis devices

LICENSE=	BSD GPLv2
LICENSE_COMB=	dual
LICENSE_FILE=	${WRKSRC}/Quantis-${DISTVERSION}/License.txt

OPTIONS_DEFINE=	PCI USB JAVA COMPAT TOOL GUI DOCS EXAMPLES
OPTIONS_DEFAULT=PCI USB JAVA TOOL GUI
NO_OPTIONS_SORT=yes

PCI_DESC=	Enable Quantis PCI support
USB_DESC=	Enable Quantis USB support (FreeBSD >= 8.1)
JAVA_DESC=	Enable Java support
COMPAT_DESC=	Build API v1 compatibility libraries
TOOL_DESC=	Build EasyQuantis application
GUI_DESC=	Build QT4 GUI for EasyQuantis application

USE_ZIP=	yes
EXTRACT_BEFORE_ARGS=	-aqo
USES=		cmake
USE_QT4=	# empty but required
USE_LDCONFIG=	yes

WRKSRC=		${WRKDIR}/Quantis-${DISTVERSION}/Libs-Apps

KMODDIR?=	/boot/modules

PORTDOCS=	*
PORTEXAMPLES=	*

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 700000
IGNORE=		requires FreeBSD >= 7
.endif

.if ${PORT_OPTIONS:MPCI}
RUN_DEPENDS+=	${KMODDIR}/quantis.ko:${PORTSDIR}/security/quantis-kmod
.else
CMAKE_ARGS+=	-DDISABLE_QUANTIS_PCI=1
.endif

.if empty(PORT_OPTIONS:MUSB) || ${OSVERSION} < 801000
CMAKE_ARGS+=	-DDISABLE_QUANTIS_USB=1
.endif

.if ${PORT_OPTIONS:MJAVA}
USE_JAVA=	yes
JAVA_VERSION=	1.6+
JAVA_OS=	native
.else
CMAKE_ARGS+=	-DDISABLE_QUANTIS_JAVA=1
.endif

.if ${PORT_OPTIONS:MCOMPAT}
CMAKE_ARGS+=	-DENABLE_QUANTIS_COMPAT=1

PLIST_SUB+=	COMPAT=""
.else
PLIST_SUB+=	COMPAT="@@comment "
.endif

.if ${PORT_OPTIONS:MTOOL}
BUILD_DEPENDS+=	${LOCALBASE}/lib/libboost_date_time.a:${PORTSDIR}/devel/boost-libs
CXXFLAGS+=	-I${LOCALBASE}/include

. if ${PORT_OPTIONS:MGUI}
USE_QT4+=	gui moc_build uic_build rcc_build qmake_build
. else
CMAKE_ARGS+=	-DDISABLE_EASYQUANTIS_GUI=1
. endif

PLIST_SUB+=	TOOL=""
.else
CMAKE_ARGS+=	-DDISABLE_EASYQUANTIS=1

PLIST_SUB+=	TOOL="@@comment "
.endif

post-patch:
	@@${REINPLACE_CMD} '/  if(CMAKE_COMPILER_IS_GNU/s/)/ MATCHES "0")/' \
		${WRKSRC}/CMake/CompilersFlags.cmake

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
	@@${INSTALL_DATA} ${WRKSRC}/../*.txt ${DOCSDIR}
	@@${INSTALL_DATA} ${WRKSRC}/../User_Manual.pdf ${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
	@@${MKDIR} ${EXAMPLESDIR}
	@@(cd ${WRKSRC}/../Samples; ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.if ${PORT_OPTIONS:MUSB} && ${OSVERSION} >= 801000
	@@${MKDIR} ${EXAMPLESDIR}/devd
	${INSTALL_DATA} ${FILESDIR}/quantis.conf ${EXAMPLESDIR}/devd
	@@${CAT} ${PKGMESSAGE}
.endif
.endif

.include <bsd.port.post.mk>
@


1.16
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308605
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308605 | bapt | 2012-12-10 13:43:43 +0000 (Mon, 10 Dec 2012) | 3 lines
## SVN ##
## SVN ## Decommissioning java 1.5 (EOLed since October 2009):
## SVN ## suppress any reference to JAVA_VERSION=	1.5+ (part3)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/security/quantis/Makefile 308605 2012-12-10 13:43:43Z bapt $
d32 1
a32 1
USE_CMAKE=	yes
@


1.15
log
@Switch exporter over
@
text
@d2 1
a2 1
# $FreeBSD: head/security/quantis/Makefile 304779 2012-09-24 14:22:28Z ale $
d61 1
a61 1
JAVA_VERSION=	1.5+
@


1.14
log
@SVN rev 304779 on 2012-09-24 14:22:28Z by ale

- Update to v12.09.12 release
- Switch to OptionsNG
- Pet portlint
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.13
log
@Use an empty USE_QT4.

Requested by:	avilla
@
text
@d1 1
a1 4
# New ports collection makefile for:	quantis
# Date created:			10 May 2010
# Whom:				Alex Dupre <ale@@FreeBSD.org>
#
a2 1
#
d5 1
a5 2
DISTVERSION=	v11.12.13
PORTREVISION=	1
d15 1
a15 7
OPTIONS=	PCI "Enable Quantis PCI support" on \
		USB "Enable Quantis USB support (FreeBSD >= 8.1)" on \
		JAVA "Enable Java support" on \
		COMPAT "Build API v1 compatibility libraries" off \
		TOOL "Build EasyQuantis application" on \
		GUI "Build QT4 GUI for EasyQuantis application" on

a16 1
LICENSE=	BSD GPLv2
d19 11
d49 1
a49 1
.if defined(WITH_PCI)
d55 1
a55 1
.if defined(WITHOUT_USB) || ${OSVERSION} < 801000
d59 1
a59 1
.if defined(WITH_JAVA)
d67 1
a67 1
.if defined(WITH_COMPAT)
d75 1
a75 1
.if defined(WITH_TOOL)
d79 1
a79 1
. if defined(WITH_GUI)
d97 1
a97 1
.if !defined(NOPORTDOCS)
d102 1
a102 1
.if !defined(NOPORTEXAMPLES)
d105 1
a105 1
.if defined(WITH_USB) && ${OSVERSION} >= 801000
@


1.12
log
@Restore USE_QT_VER to fix build.
@
text
@d34 1
a34 1
USE_QT_VER=	4
@


1.11
log
@- Unbreak INDEX
@
text
@d34 1
a34 1
USE_QT4=	yes
@


1.10
log
@- Convert USE_QT_VER=4 and QT_COMPONETS to USE_QT4

Review by:	bapt, David Naylor (kde team)
@
text
@d34 1
@


1.9
log
@- update png to 1.5.10
@
text
@a33 1
USE_QT_VER=	4
d80 1
a80 1
QT_COMPONENTS+=	gui moc_build uic_build rcc_build qmake_build
@


1.8
log
@Update to v11.12.13 release.
@
text
@d10 1
@


1.7
log
@Update to v11.05.20 release.
@
text
@d9 1
a9 1
DISTVERSION=	v11.05.20
@


1.6
log
@CMAKE_BUILD_TYPE is set in bsd.cmake.mk now, remove it from Makefiles
@
text
@d9 1
a9 1
DISTVERSION=	v10.10.08
@


1.5
log
@Update to v10.10.08 release.
@
text
@a42 4
.if defined(WITH_DEBUG)
CMAKE_BUILD_TYPE=Debug
.endif

@


1.4
log
@Update to v10.06.29 release.

Feature safe:	yes
@
text
@d9 1
a9 1
DISTVERSION=	v10.06.29
@


1.3
log
@Fix typo: s/WITHOUT_/NO/
@
text
@d9 1
a9 1
DISTVERSION=	v10.06.01
d14 1
@


1.2
log
@This port is useless with FreeBSD < 7.
@
text
@d100 1
a100 1
.if !defined(WITHOUT_PORTDOCS)
d105 1
a105 1
.if !defined(WITHOUT_PORTEXAMPLES)
@


1.1
log
@Quantis is a physical random number generator exploiting
an elementary quantum optics process.

This port contains the user library and a CLI/GUI application
to access such devices.

WWW:	http://www.idquantique.com/
@
text
@d18 1
a18 1
OPTIONS=	PCI "Enable Quantis PCI support (FreeBSD >= 7.0)" on \
d48 5
a52 1
.if defined(WITH_PCI) && ${OSVERSION} >= 700000
@

