2001-02-12 15:55:43 +01:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: cln
|
|
|
|
# Date created: Fab 11, 2001
|
|
|
|
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= cln
|
2008-04-20 17:31:14 +02:00
|
|
|
PORTVERSION= 1.2.2
|
2009-05-13 11:46:02 +02:00
|
|
|
PORTREVISION= 1
|
2001-02-12 15:55:43 +01:00
|
|
|
CATEGORIES= math devel
|
2005-11-03 22:21:35 +01:00
|
|
|
MASTER_SITES= http://www.ginac.de/CLN/ \
|
|
|
|
http://www.mirrors.wiretapped.net/security/cryptography/libraries/math/cln/ \
|
|
|
|
ftp://ftpthep.physik.uni-mainz.de/pub/gnu/
|
2001-02-12 15:55:43 +01:00
|
|
|
|
2007-06-29 18:29:19 +02:00
|
|
|
MAINTAINER= araujo@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= Class Library for Numbers
|
2002-03-13 04:18:40 +01:00
|
|
|
|
2009-05-13 11:46:02 +02:00
|
|
|
LIB_DEPENDS= gmp.8:${PORTSDIR}/math/libgmp4
|
2001-02-12 15:55:43 +01:00
|
|
|
|
2007-01-28 10:07:47 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2004-01-31 05:09:48 +01:00
|
|
|
USE_BZIP2= yes
|
2005-06-07 10:39:31 +02:00
|
|
|
USE_GNOME= gnomehack gnometarget pkgconfig
|
2001-02-12 15:55:43 +01:00
|
|
|
USE_GMAKE= yes
|
2005-06-07 10:39:31 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2003-10-10 19:52:21 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2007-07-23 11:36:51 +02:00
|
|
|
CONFIGURE_ARGS= --with-gmp
|
2003-10-10 19:52:21 +02:00
|
|
|
MAKE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2006-08-15 02:29:13 +02:00
|
|
|
USE_LDCONFIG= yes
|
2001-02-12 15:55:43 +01:00
|
|
|
|
2003-10-10 19:52:21 +02:00
|
|
|
INFO= cln
|
|
|
|
|
|
|
|
STRIP= # none
|
|
|
|
|
2005-11-02 00:58:14 +01:00
|
|
|
CFLAGS+= -fPIC
|
2003-10-10 19:52:21 +02:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-10-29 01:20:45 +02:00
|
|
|
.if ${ARCH} == "sparc64" || ${ARCH} == "ia64"
|
2007-01-18 09:28:48 +01:00
|
|
|
BROKEN= Does not compile on sparc64 or ia64
|
2004-03-07 06:43:33 +01:00
|
|
|
.endif
|
|
|
|
|
2008-08-12 02:40:51 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} 's|/usr/local|${PREFIX}|' ${WRKSRC}/Makefile.in
|
|
|
|
|
2005-11-12 12:15:47 +01:00
|
|
|
pre-build:
|
|
|
|
.if exists(${LOCALBASE}/lib/libcln.so.3)
|
2007-01-18 09:28:48 +01:00
|
|
|
BROKEN= Does not compile when older version is installed. Please pkg_delete old cln first
|
2005-11-12 12:15:47 +01:00
|
|
|
.endif
|
|
|
|
|
2002-07-31 11:36:03 +02:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}/dvi
|
2008-04-20 17:31:14 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.dvi ${DOCSDIR}/dvi/
|
2002-07-31 11:36:03 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}/html
|
2008-04-20 17:31:14 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}/html/
|
|
|
|
@${MKDIR} ${DOCSDIR}/html/cln
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/cln/*.html ${DOCSDIR}/html/cln/
|
2002-07-31 11:36:03 +02:00
|
|
|
.endif
|
2001-09-08 09:29:19 +02:00
|
|
|
|
2003-10-10 19:52:21 +02:00
|
|
|
.include <bsd.port.post.mk>
|