Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Oct 2002 02:41:34 -0700 (PDT)
From:      KATO Tsuguru <tkato@prontomail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/43709: Update port: print/lyx
Message-ID:  <200210050941.g959fYC1059299@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         43709
>Category:       ports
>Synopsis:       Update port: print/lyx
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 05 02:50:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.6.2-RELEASE i386
>Organization:
>Environment:
>Description:
- Support LOCALBASE properly

New file:
files/patch-config::pspell.m4

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/print/lyx/Makefile print/lyx/Makefile
--- /usr/ports/print/lyx/Makefile	Sat Sep 21 16:31:25 2002
+++ print/lyx/Makefile	Thu Oct  3 08:45:42 2002
@@ -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_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-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 -urN /usr/ports/print/lyx/files/patch-config::pspell.m4 print/lyx/files/patch-config::pspell.m4
--- /usr/ports/print/lyx/files/patch-config::pspell.m4	Thu Jan  1 09:00:00 1970
+++ print/lyx/files/patch-config::pspell.m4	Wed Oct  2 22:12:42 2002
@@ -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)
+ 

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210050941.g959fYC1059299>