blob: 5c7f009944d33551f2f317cd115a3e766a29764d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# New ports collection makefile for: texmacs
# Date created: 1 December 2001
# Whom: Geoffrey Mainland <mainland@apeiron.net>
#
# $FreeBSD$
#
PORTNAME= texmacs
PORTVERSION= 1.0.6.2
CATEGORIES= editors print
MASTER_SITES= http://www.texmacs.org/Download/ftp/%SUBDIR%/ \
ftp://ftp.texmacs.org/pub/TeXmacs/%SUBDIR%/ \
http://gd.tuwien.ac.at/editors/TeXmacs/targz/ \
ftp://gd.tuwien.ac.at/editors/TeXmacs/targz/
MASTER_SITE_SUBDIR= targz old-targz
DISTNAME= TeXmacs-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= A free WYSIWYG scientific text editor
BUILD_DEPENDS= tex:${PORTSDIR}/print/teTeX-base
LIB_DEPENDS= guile.15:${PORTSDIR}/lang/guile \
freetype.9:${PORTSDIR}/print/freetype2
RUN_DEPENDS= tex:${PORTSDIR}/print/teTeX-base
USE_XLIB= yes
USE_PYTHON= yes
USE_ICONV= yes
REINPLACE_ARGS= -i ""
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
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)
LIB_DEPENDS+= Imlib2.3:${PORTSDIR}/graphics/imlib2
CONFIGURE_ARGS+= --with-imlib2
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 600000
CONFIGURE_ARGS+=--disable-fastalloc
.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
post-install:
${CHOWN} -R ${LIBOWN}:${LIBGRP} ${PREFIX}/libexec/TeXmacs
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/TeXmacs
.include <bsd.port.post.mk>
|