aboutsummaryrefslogtreecommitdiffstats
path: root/print/cjk-lyx/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'print/cjk-lyx/Makefile')
-rw-r--r--print/cjk-lyx/Makefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/print/cjk-lyx/Makefile b/print/cjk-lyx/Makefile
index 33b82bbda346..7ef5dcfe3a25 100644
--- a/print/cjk-lyx/Makefile
+++ b/print/cjk-lyx/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= lyx
-PORTVERSION= 1.2.1
+PORTVERSION= 1.2.3
CATEGORIES= print
MASTER_SITES= ftp://stone.phys.pusan.ac.kr/pub/CJK-LyX/
PKGNAMEPREFIX= cjk-
@@ -28,11 +28,12 @@ USE_REINPLACE= yes
USE_PERL5= yes
USE_GMAKE= yes
USE_AUTOMAKE_VER= 15
-AUTOMAKE= ${WRKSRC}/autogen.sh
-AUTOCONF= ${TRUE}
CONFIGURE_ENV= CPPFLAGS="-DI18N"
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-extra-lib="${LOCALBASE}/lib" \
--with-extra-inc="${LOCALBASE}/include"
+MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
+ AUTOHEADER="${TRUE}"
MAN1= lyx.1 reLyX.1
.if defined(WITH_ASPELL)
@@ -61,12 +62,13 @@ pre-everything::
@${ECHO_MSG}
.endif
-post-extract:
- @${CP} -f ${FILESDIR}/xforms.m4 ${WRKSRC}/config
-
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'
+.for file in src/Makefile.am src/frontends/Makefile.am
+ @${REINPLACE_CMD} -e 's|LIBS +=|LDFLAGS = @LDFLAGS@|g' ${WRKSRC}/${file}
+.endfor
+.for file in configure.in lib/reLyX/configure.in
+ @${REINPLACE_CMD} -e 's|AC_CHECK_LIB(c,|AC_CHECK_FUNC(|g ; \
+ s|^INSTALL_SCRIPT=|#INSTALL_SCRIPT=|g' ${WRKSRC}/${file}
+.endfor
.include <bsd.port.mk>