summaryrefslogtreecommitdiff
path: root/editors/TeXmacs/Makefile
blob: d0b433aed5c4c1ae50c1b1deb6a2f1337a3be582 (plain)
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
# $NetBSD: Makefile,v 1.15 2003/06/05 05:01:56 uebayasi Exp $

DISTNAME=	TeXmacs-1.0.1-src
PKGNAME=	${DISTNAME:S/-src//}
PKGREVISION=	2
CATEGORIES=	editors
MASTER_SITES=	ftp://ftp.texmacs.org/pub/TeXmacs/targz/

MAINTAINER=	jmmv@netbsd.org
HOMEPAGE=	http://www.texmacs.org
COMMENT=	GNU TeXmacs (free scientific text editor)

DEPENDS+=	teTeX>=1.0:../../print/teTeX

ALL_TARGET=	TEXMACS

USE_BUILDLINK2=	yes
USE_GMAKE=	yes
USE_X11=	yes
GNU_CONFIGURE=	yes

LDFLAGS+=	-Wl,${RPATH_FLAG}${PREFIX}/libexec/${PKGNAME}/lib

PKG_DOCDIR=	${PREFIX}/share/doc/TeXmacs
PKG_CXXFLAGS=	-DPKG_DOCDIR=\"\\\"${PKG_DOCDIR}\\\"\"
CONFIGURE_ENV+=	PKG_CXXFLAGS="${PKG_CXXFLAGS}"
CONFIGURE_ENV+=	PKG_LDFLAGS="${LDFLAGS}"

post-extract:
	${RM} ${WRKSRC}/misc/scripts/tm_axiom
	${MV} ${WRKSRC}/misc/scripts/texmacs.in \
	      ${WRKSRC}/misc/scripts/texmacs.in.in

pre-configure:
	${SED} -e "s|@PKG_GUILE_PATH@|${GUILE14_PREFIX_DEFAULT}/bin|g" \
		< ${WRKSRC}/misc/scripts/texmacs.in.in > \
	          ${WRKSRC}/misc/scripts/texmacs.in

post-install:
	${LN} -s ${PREFIX}/share/doc/TeXmacs \
	         ${PREFIX}/share/${PKGNAME_NOREV}/doc

.include "../../lang/guile14/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"