cb037d3c98
- Bump PORTREVISION for shlib change Changes: https://cnswww.cns.cwru.edu/php/chet/readline/CHANGES https://lists.gnu.org/archive/html/bug-bash/2016-09/msg00107.html https://lists.gnu.org/archive/html/bug-readline/2017-01/msg00002.html Differential Revision: https://reviews.freebsd.org/D11172 PR: 219947 Exp-run by: antoine
58 lines
1.5 KiB
Makefile
58 lines
1.5 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= eukleides
|
|
PORTVERSION= 1.5.4
|
|
PORTREVISION= 4
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://www.eukleides.org/files/
|
|
|
|
MAINTAINER= ashish@FreeBSD.org
|
|
COMMENT= Euclidean geometry drawing language
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
RUN_DEPENDS= pstoedit:graphics/pstoedit \
|
|
getopt>=0:misc/getopt
|
|
|
|
USE_TEX= latex
|
|
USES= bison gettext iconv gmake readline:port tar:bzip2
|
|
INSTALL_TARGET= install PREFIX=${STAGEDIR}${PREFIX}
|
|
|
|
PORTDOCS= de.pdf fr.pdf
|
|
PORTEXAMPLES= greenwich.euk sundial.euk vonkoch.euk
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
DOCS_USES= makeinfo
|
|
DOCS_USE= TEX=pdftex:build
|
|
DOCS_INFO= eukleides
|
|
|
|
post-patch:
|
|
@${GREP} -lR "#!/bin/bash" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|#!/bin/bash|#!/bin/sh|g'
|
|
@${GREP} -lR "ginstall-info" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|ginstall-info|install-info|g'
|
|
@${EGREP} -lR "%%[[:alpha:]]+%%" ${WRKSRC} |${XARGS} ${REINPLACE_CMD} \
|
|
-e "s|%%PREFIX%%|${PREFIX}|g" \
|
|
-e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
|
|
-e "s|%%EXAMPLESDIR%%|\$${PREFIX}/${EXAMPLESDIR_REL}|g" \
|
|
-e "s|%%DOCSDIR%%|\$${PREFIX}/${DOCSDIR_REL}|g"
|
|
@${GREP} -lFR "gcc" ${WRKSRC} |${XARGS} ${REINPLACE_CMD} \
|
|
-e "s|gcc|${CC}|g"
|
|
|
|
post-patch-DOCS-off:
|
|
@${REINPLACE_CMD} -e '/^install:/ s/install_doc//g' \
|
|
-e '/^all:/ s/doc//g' ${WRKSRC}/Makefile
|
|
|
|
post-patch-EXAMPLES-off:
|
|
@${REINPLACE_CMD} -e 's/install_exm$$//g' ${WRKSRC}/Makefile
|
|
|
|
pre-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
post-install:
|
|
@${RM} ${STAGEDIR}${PREFIX}/bin/*.bak*
|
|
|
|
.include <bsd.port.mk>
|