Edit

IABSD.fr/ports/math/pari/Makefile

Branch :

  • Show log

    Commit

  • Author : sthen
    Date : 2019-01-29 11:43:09
    Hash : 28ec08e2
    Message : use -Wl,-znotext on i386 to allow text relocations for asm code

  • math/pari/Makefile
  • # $OpenBSD: Makefile,v 1.15 2019/01/29 11:43:09 sthen Exp $
    
    COMMENT=	number theory-oriented computer algebra system
    
    DISTNAME=	pari-2.1.7
    REVISION=	0
    EXTRACT_SUFX=	.tgz
    CATEGORIES=	math
    
    HOMEPAGE=	http://pari.math.u-bordeaux.fr/
    
    # GPLv2
    PERMIT_PACKAGE_CDROM=	Yes
    WANTLIB=		X11 c m ncurses readline
    
    MASTER_SITES=		http://pari.math.u-bordeaux.fr/pub/pari/unix/OLD/2.1/
    
    BUILD_DEPENDS=		print/texlive/base
    
    CONFIGURE_SCRIPT=	Configure
    CONFIGURE_STYLE=	simple
    CONFIGURE_ENV=		CFLAGS="${CFLAGS}"
    CONFIGURE_ARGS+=	--datadir=${PREFIX}/share/pari \
    			--miscdir=${PREFIX}/share/pari \
    			--prefix=${PREFIX} \
    			--host=${ARCH}
    
    TEST_TARGET=		dobench
    
    .if ${MACHINE_ARCH} == i386
    CFLAGS+=		-Wl,-znotext
    .endif
    
    post-install:
    	mv ${PREFIX}/share/pari/doc ${PREFIX}/share/doc/pari
    	mv ${PREFIX}/share/pari/[A-Z]* ${PREFIX}/share/doc/pari
    	mv ${PREFIX}/share/pari/examples ${PREFIX}/share/examples/pari
    
    .include <bsd.port.mk>