aboutsummaryrefslogtreecommitdiffstats
path: root/math/cln/Makefile
blob: d44cb78ce2e93cf32eff2bd7272540e6d0c06d37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# ex:ts=8
# New ports collection makefile for:   cln
# Date created:                Fab 11, 2001
# Whom:                        Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   cln
PORTVERSION=    1.1.9
CATEGORIES= math devel
MASTER_SITES=   ftp://ftpthep.physik.uni-mainz.de/pub/gnu/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Class Library for Numbers

LIB_DEPENDS=    gmp.6:${PORTSDIR}/math/libgmp4

USE_BZIP2=  yes
USE_GCC=    3.4
USE_GNOME=  gnomehack gnometarget lthack pkgconfig
USE_GMAKE=  yes
USE_INC_LIBTOOL_VER=    13
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --infodir=${PREFIX}/info --mandir=${MANPREFIX}/man \
        --with-gmp
MAKE_ENV=   CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes

MAN1=       cln-config.1
INFO=       cln

STRIP=      # none

CPPFLAGS=   -I${LOCALBASE}/include
LDFLAGS=    -L${LOCALBASE}/lib

.if !defined(NOPORTDOCS)
PORTDOCS=   *
.endif

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
BROKEN=     "Does not compile on sparc64"
.endif

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}/dvi
    ${INSTALL_DATA} ${WRKSRC}/doc/*.dvi ${DOCSDIR}/dvi
    @${MKDIR} ${DOCSDIR}/html
    ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}/html
.endif
    @${FIND} ${PREFIX}/include/cln -type f | \
        ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
    @${FIND} ${PREFIX}/include/cln ! -type f | ${SORT} -r | \
        ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}

.include <bsd.port.post.mk>