freebsd-ports/math/rexx-regmath/Makefile
Mark Linimon 7bfae932f7 Prepare for powerpc-on-clang by deleting hard-coded tests for libstdc++.so
as a stand-in for "are we running on gcc".

For people already testing powerpc on clang, it is possible that they
already have both compilers in base.  Thus, the assumption that "gcc is
in base" (e.g.  libstdc++.so exists) always means "force use of GCC" is
already broken.  It will be for everyone on -CURRENT once the switch is
made.

While here, standardize on compiler:c++11-lang instead of -lib (they are
equivalent these days), pet portlint, and do some other cleanup.

Approved by:	portmgr (tier-2 blanket)
2019-07-12 02:25:07 +00:00

56 lines
1.4 KiB
Makefile

# Created by: Bob Eager <bob@eager.cx>
# $FreeBSD$
PORTNAME= regmath
PORTVERSION= 1.00
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= http://home.interlog.com/~ptjm/ \
http://www.ancientgeek.org.uk/distfiles/
PKGNAMEPREFIX= rexx-
DISTNAME= regmath${PORTVERSION:S/.//}
MAINTAINER= bob@eager.cx
COMMENT= Two mathematics libraries for Rexx
LICENSE= MPL10
BUILD_DEPENDS= rexx:lang/rexx-regina
USES= compiler zip
WRKSRC= ${WRKDIR}/math
USE_LDCONFIG= yes
MAKEFILE= Makefile.bsd
PLIST_FILES= lib/librexxmath.so lib/librxmath.so man/man1/regmath.1.gz
SUB_FILES= regmath.1 README testrxmath testrexxmath
PORTDOCS= regmath.pdf
PORTEXAMPLES= README testrxmath testrexxmath
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.pre.mk>
.if ! ${CHOSEN_COMPILER_TYPE} == gcc
CFLAGS+= -Wno-incompatible-pointer-types
.endif
do-install:
${INSTALL_LIB} ${WRKSRC}/librexxmath.so ${STAGEDIR}${PREFIX}/lib/
${INSTALL_LIB} ${WRKSRC}/librxmath.so ${STAGEDIR}${PREFIX}/lib/
${INSTALL_MAN} ${WRKDIR}/regmath.1 ${STAGEDIR}${PREFIX}/man/man1/
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/regmath.pdf ${STAGEDIR}${DOCSDIR}/
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKDIR}/README ${STAGEDIR}${EXAMPLESDIR}/
${INSTALL_DATA} ${WRKDIR}/testrxmath ${STAGEDIR}${EXAMPLESDIR}/
${INSTALL_DATA} ${WRKDIR}/testrexxmath ${STAGEDIR}${EXAMPLESDIR}/
.include <bsd.port.post.mk>