summaryrefslogtreecommitdiff
path: root/print/lyx/Makefile
blob: 4286ccbce2b9e0f9abc1f732769f189193a1cae7 (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
# $NetBSD: Makefile,v 1.41 2002/03/13 17:37:37 fredb Exp $
# FreeBSD Id: Makefile,v 1.14 1998/02/14 16:46:50 andreas Exp
#

DISTNAME=		lyx-1.1.6fix4
PKGNAME=		lyx-1.1.6.4
PKGREVISION=		1
CATEGORIES=		print
MASTER_SITES=		ftp://ftp.lyx.org/pub/lyx/stable/ \
			ftp://gd.tuwien.ac.at/publishing/tex/lyx/stable/ \
			ftp://ftp.sdsc.edu/pub/other/lyx/stable/

MAINTAINER=		martti@netbsd.org
HOMEPAGE=		http://www.lyx.org/
COMMENT=		Graphical frontend for LaTeX (nearly WYSIWYG)

DEPENDS=		ispell-base-[0-9]*:../../textproc/ispell-base
DEPENDS+=		teTeX>=1.0.6:../../print/teTeX
DEPENDS+=		xforms>=0.88nb1:../../x11/xforms

USE_PERL5=		YES
USE_XPM=		YES
GNU_CONFIGURE=		YES
CONFIGURE_ARGS= 	--with-extra-lib="${X11BASE}/lib" \
			--with-extra-inc="${X11BASE}/include ${X11BASE}/include/X11"

LDFLAGS+=		-L${X11BASE}/lib -Wl,-R${X11BASE}/lib

post-configure:
	${MV} ${WRKSRC}/po/Makefile ${WRKSRC}/po/Makefile.orig
	${SED} '/^datadir/s/lib/share/g' \
		< ${WRKSRC}/po/Makefile.orig > ${WRKSRC}/po/Makefile

post-install:
	${CHMOD} +x ${PREFIX}/share/lyx/configure

.include "../../mk/bsd.pkg.mk"