freebsd-ports/lang/polyml/Makefile
Alexey Dokuchaev fa07ac670c - Allow exposing polyml as a shared library (as required by e.g. HOL4)
- Strip installed library as advised by portlint(1)
- While here, sort knobs and remove useless .include <bsd.port.options.mk>

PR:		203467
Approved by:	maintainer
2015-10-23 17:24:12 +00:00

37 lines
870 B
Makefile

# Created by: Timothy Bourke <timbob@bigpond.com>
# $FreeBSD$
PORTNAME= polyml
PORTVERSION= 5.5.2
PORTREVISION= 2
CATEGORIES= lang
MASTER_SITES= SF
DISTNAME= ${PORTNAME}.${PORTVERSION}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= beyert@cs.ucr.edu
COMMENT= Fast open-source implementation of Standard ML
LICENSE= LGPL21
LIB_DEPENDS= libffi.so:${PORTSDIR}/devel/libffi
ONLY_FOR_ARCHS= i386 amd64
USES= libtool pathfix pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-system-libffi --enable-shared
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
OPTIONS_DEFINE= MOTIF
MOTIF_CONFIGURE_WITH= x
MOTIF_USE= motif
post-patch:
@${REINPLACE_CMD} -e 's|-lstdc++ ||' ${WRKSRC}/configure
@${REINPLACE_CMD} "s|ELFXX_R_INFO(_y, _z) ELF64_R_INFO(_y, _z)|ELFXX_R_INFO(_y, _z) ELF64_R_INFO((Elf64_Xword)(_y), _z)|g" ${WRKSRC}/libpolyml/elfexport.h
.include <bsd.port.mk>