aboutsummaryrefslogtreecommitdiff
path: root/print/lyx
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-10-07 01:21:23 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-10-07 01:21:23 +0000
commitd4bb1f8f232e02c1ddba5cc27ca291bea9173690 (patch)
tree5e70c1c764632e73816efc33048cdad5c9e6dfd2 /print/lyx
parent9ed235a43ffce48837fe586db4a0d16d97957956 (diff)
downloadports-d4bb1f8f232e02c1ddba5cc27ca291bea9173690.tar.gz
ports-d4bb1f8f232e02c1ddba5cc27ca291bea9173690.zip
Notes
Diffstat (limited to 'print/lyx')
-rw-r--r--print/lyx/Makefile12
-rw-r--r--print/lyx/files/patch-config::pspell.m420
2 files changed, 28 insertions, 4 deletions
diff --git a/print/lyx/Makefile b/print/lyx/Makefile
index 20f20c2cede8..2ab42e3f570a 100644
--- a/print/lyx/Makefile
+++ b/print/lyx/Makefile
@@ -7,6 +7,7 @@
PORTNAME= lyx
PORTVERSION= 1.2.1
+PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= ftp://ftp.lyx.org/pub/lyx/stable/ \
ftp://ftp.sdsc.edu/pub/other/lyx/stable/ \
@@ -28,12 +29,15 @@ USE_GMAKE= yes
USE_AUTOMAKE_VER= 15
AUTOMAKE= ${WRKSRC}/autogen.sh
AUTOCONF= ${TRUE}
-CONFIGURE_ARGS= --with-extra-lib="${X11BASE}/lib ${LOCALBASE}/lib"
+CONFIGURE_ARGS= --with-extra-lib="${LOCALBASE}/lib" \
+ --with-extra-inc="${LOCALBASE}/include"
MAN1= lyx.1 reLyX.1
.if defined(WITH_ASPELL)
LIB_DEPENDS+= aspell.15:${PORTSDIR}/textproc/aspell
-CONFIGURE_ARGS+= --with-pspell
+CONFIGURE_ARGS+= --with-pspell \
+ --with-pspell-lib="${LOCALBASE}/lib" \
+ --with-pspell-include="${LOCALBASE}/include"
.endif
.if defined(WITH_ISPELL)
@@ -60,7 +64,7 @@ post-extract:
post-patch:
@${FIND} ${WRKSRC} -name "configure.in" | ${XARGS} ${REINPLACE_CMD} -e \
- 's|AC_CHECK_LIB(c,|AC_CHECK_FUNC(|g ; \
- s|^INSTALL_SCRIPT=|#INSTALL_SCRIPT=|g'
+ 's|AC_CHECK_LIB(c,|AC_CHECK_FUNC(|g ; \
+ s|^INSTALL_SCRIPT=|#INSTALL_SCRIPT=|g'
.include <bsd.port.mk>
diff --git a/print/lyx/files/patch-config::pspell.m4 b/print/lyx/files/patch-config::pspell.m4
new file mode 100644
index 000000000000..31bfdce0d433
--- /dev/null
+++ b/print/lyx/files/patch-config::pspell.m4
@@ -0,0 +1,20 @@
+--- config/pspell.m4.orig Thu Jun 20 21:03:56 2002
++++ config/pspell.m4 Wed Oct 2 22:10:21 2002
+@@ -12,7 +12,7 @@
+ fi
+ ])
+
+- AC_ARG_WITH(pspell-includes, [ --with-pspell-include where the pspell.h is located],
++ AC_ARG_WITH(pspell-include, [ --with-pspell-include where the pspell.h is located],
+ pspell_use_include="$withval",
+ pspell_use_include=NONE)
+
+@@ -22,7 +22,7 @@
+ AC_FIND_FILE(pspell/pspell.h,$pspell_includes,pspell_use_include)
+ fi
+
+- AC_ARG_WITH(pspell-libs, [ --with-pspell-lib where the libpspell.a is located],
++ AC_ARG_WITH(pspell-lib, [ --with-pspell-lib where the libpspell.a is located],
+ pspell_use_lib="$withval",
+ pspell_use_lib=NONE)
+