mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
de78af3ac5
Reviewed by: exp8 run on pointyhat Supported by: miwi
67 lines
1.6 KiB
Makefile
67 lines
1.6 KiB
Makefile
# New ports collection makefile for: texmacs
|
|
# Date created: 1 December 2001
|
|
# Whom: Geoffrey Mainland <mainland@apeiron.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= texmacs
|
|
PORTVERSION= 1.0.7.3
|
|
PORTREVISION= 2
|
|
CATEGORIES= editors print
|
|
MASTER_SITES= ftp://ftp.texmacs.org/pub/TeXmacs/%SUBDIR%/ \
|
|
http://www.predatorlabs.net/dl/
|
|
MASTER_SITE_SUBDIR= targz old-targz
|
|
DISTNAME= TeXmacs-${PORTVERSION}-src
|
|
|
|
MAINTAINER= rfarmer@predatorlabs.net
|
|
COMMENT= A free WYSIWYG scientific text editor
|
|
|
|
BUILD_DEPENDS= tex:${PORTSDIR}/print/teTeX-base
|
|
LIB_DEPENDS= guile.20:${PORTSDIR}/lang/guile \
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
|
RUN_DEPENDS= tex:${PORTSDIR}/print/teTeX-base
|
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
USE_PYTHON= yes
|
|
USE_ICONV= yes
|
|
REINPLACE_ARGS= -i ""
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
CONFIGURE_ARGS= --enable-optimize="${CXXFLAGS}" \
|
|
--with-iconv="${LOCALBASE}"
|
|
|
|
MAKE_ARGS= CP="${CP} -R -f"
|
|
ALL_TARGET= ${PORTNAME:U}
|
|
|
|
MAN1= texmacs.1 fig2ps.1
|
|
MANCOMPRESSED= yes
|
|
|
|
.if !defined(WITHOUT_IMLIB2)
|
|
USE_EFL= imlib2
|
|
CONFIGURE_ARGS+= --with-imlib2
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 700000
|
|
BROKEN= does not compile
|
|
.endif
|
|
|
|
post-patch:
|
|
@${GREP} -lR "#!/bin/bash" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|#!/bin/bash|#!/bin/sh|g'
|
|
@${REINPLACE_CMD} -e 's|type -p maxima|which maxima|g' \
|
|
${WRKSRC}/plugins/maxima/bin/maxima_detect
|
|
@${REINPLACE_CMD} -e 's|ICONV_LDFLAGS/-liconv|ICONV_LDFLAGS|' \
|
|
${WRKSRC}/configure
|
|
|
|
post-install:
|
|
${CHOWN} -R ${LIBOWN}:${LIBGRP} ${PREFIX}/libexec/TeXmacs
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/TeXmacs
|
|
|
|
.include <bsd.port.post.mk>
|