1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/math/ess/Makefile
Ruslan Makhmatkhanov 99c6cf41ef - update to 12.09.1
while here:
- trim Makefile header
- convert to optionsng (PORTDOCS case)

PR:		174666
Submitted by:	Christopher J. Ruwe <cjr@cruwe.de> (maintainer)
2013-01-03 14:02:57 +00:00

56 lines
1.3 KiB
Makefile

# Created by: Christopher J. Ruwe
# $FreeBSD$
PORTNAME= ess
DISTVERSION= 12.09-1
CATEGORIES= math
MASTER_SITES= http://ess.r-project.org/downloads/ess/
EXTRACT_SUFX= .tgz
MAINTAINER= cjr@cruwe.de
COMMENT= R support for Emacsen
LICENSE= GPLv2
RUN_DEPENDS= R:${PORTSDIR}/math/R
USE_EMACS= yes
USE_GMAKE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
INFO= ess
.endif
post-patch:
${REINPLACE_CMD} -e "\|^PREFIX=|d" -e "\|^INSTALL=|d" \
-e "\|^EMACS=|s|=.*|=${EMACS_NAME}|" \
-e "\|^ETCDIR=|s|=.*|=${PREFIX}/${EMACS_LIBDIR}/etc/ess|" \
-e "\|^INFODIR=|s|=.*|=${PREFIX}/${INFO_PATH}|" \
-e "\|^LISPDIR=|s|=.*|=${PREFIX}/${EMACS_SITE_LISPDIR}|" \
${WRKSRC}/Makeconf
${REINPLACE_CMD} -e "\|cd doc; \$$(MAKE) \$$@|d" \
${WRKSRC}/Makefile
${REINPLACE_CMD} -e "s|\$$(INSTALL)|${INSTALL_DATA}|g" \
${WRKSRC}/doc/Makefile ${WRKSRC}/etc/Makefile
${REINPLACE_CMD} -e "s|\$$(INSTALL)|${INSTALL_SCRIPT}|g" \
${WRKSRC}/lisp/Makefile
.if ${PORT_OPTIONS:MDOCS}
post-build:
@(cd ${WRKSRC}/doc; ${SETENV} ${MAKE_ENV} ${GMAKE} ${_MAKE_JOBS} \
${MAKE_ARGS} info)
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
@(cd ${WRKSRC}/doc; ${SETENV} ${MAKE_ENV} ${GMAKE} ${_MAKE_JOBS} \
${MAKE_ARGS} install-info)
.endif
@${ECHO_MSG} ""
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG} ""
.include <bsd.port.mk>