blob: e58c9e3e98c8cadce0cfb4d13550ba2a87ba3d1b (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# New ports collection makefile for: polymake
# Date created: 21 December 2004
# Whom: Ewgenij Gawrilow <gawrilow@math.tu-berlin.de>
#
# $FreeBSD$
#
PORTNAME= polymake
PORTVERSION= 2.2
PORTREVISION= 2
CATEGORIES= math
MASTER_SITES= ftp://ftp.math.tu-berlin.de/pub/combi/polymake/
PATCH_SITES= ${MASTER_SITES}
PATCHFILES= ${PORTNAME}-${PORTVERSION}-p1.diff
MAINTAINER= gawrilow@math.tu-berlin.de
COMMENT= A framework for experimental discrete geometry
LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4
USE_GMAKE= yes
USE_BZIP2= yes
USE_PERL5= yes
USE_GCC= 3.4
HAS_CONFIGURE= yes
INSTALL_TARGET= install install-devel
NO_INSTALL_MANPAGES= yes
PLIST= ${WRKDIR}/pkg-plist
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500800
BROKEN= requires perl 5.8.0 or newer
.endif
do-configure:
cd ${WRKSRC}; \
${RM} -f build*/conf.make; \
{ ${ECHO_CMD} CC='${CC}'; \
${ECHO_CMD} CXX='${CXX}'; \
${ECHO_CMD} Cflags='${CFLAGS} -I${PREFIX}/include'; \
${ECHO_CMD} CXXflags='${CXXFLAGS} -I${PREFIX}/include'; \
${ECHO_CMD} LDflags='-L${PREFIX}/lib'; \
${ECHO_CMD} PREFIX='${PREFIX}'; \
${ECHO_CMD} InstallTop='$${PREFIX}/share/polymake'; \
${ECHO_CMD} InstallArch='$${PREFIX}/libexec/polymake'; \
${ECHO_CMD} InstallDoc='$${PREFIX}${DOCSDIR:S,^${PREFIX},,}'; \
${ECHO_CMD} InstallLinks='$${PREFIX}/bin'; \
${ECHO_CMD} PerlExe='${PERL}'; \
${ECHO_CMD} Arch=; \
} | ${GMAKE} configure
pre-install:
${RM} -f `find ${WRKSRC} -name '*.orig'`
${CAT} ${.CURDIR}/pkg-plist > ${PLIST}
${ECHO_CMD} libexec/polymake/perlx/%%PERL_VERSION%%/`${PERL} -e 'use Config; print $$Config{archname}'`/auto/Poly/Ext/.packlist >> ${PLIST}
${ECHO_CMD} libexec/polymake/perlx/%%PERL_VERSION%%/`${PERL} -e 'use Config; print $$Config{archname}'`/auto/Poly/Ext/Ext.bs >> ${PLIST}
${ECHO_CMD} libexec/polymake/perlx/%%PERL_VERSION%%/`${PERL} -e 'use Config; print $$Config{archname}'`/auto/Poly/Ext/Ext.so >> ${PLIST}
${ECHO_CMD} @dirrm libexec/polymake/perlx/%%PERL_VERSION%%/`${PERL} -e 'use Config; print $$Config{archname}'`/auto/Poly/Ext >> ${PLIST}
${ECHO_CMD} @dirrm libexec/polymake/perlx/%%PERL_VERSION%%/`${PERL} -e 'use Config; print $$Config{archname}'`/auto/Poly >> ${PLIST}
${ECHO_CMD} @dirrm libexec/polymake/perlx/%%PERL_VERSION%%/`${PERL} -e 'use Config; print $$Config{archname}'`/auto >> ${PLIST}
${ECHO_CMD} @dirrm libexec/polymake/perlx/%%PERL_VERSION%%/`${PERL} -e 'use Config; print $$Config{archname}'` >> ${PLIST}
${ECHO_CMD} @dirrm libexec/polymake/perlx/%%PERL_VERSION%% >> ${PLIST}
${ECHO_CMD} @dirrm libexec/polymake/perlx >> ${PLIST}
${ECHO_CMD} @dirrm libexec/polymake >> ${PLIST}
post-install:
${CP} -p ${PREFIX}/libexec/polymake/Makefile ${PREFIX}/libexec/polymake/Makefile.devel
#PERL_REAL_ARCH!=${PERL} -e 'use Config; print $$Config{archname}'
#PLIST_SUB= PERL_REAL_ARCH=${PERL_REAL_ARCH}
.include <bsd.port.post.mk>
|