freebsd-ports/devel/m17n-lib/Makefile
Joe Marcus Clarke 9e5632dd66 Apply a big libtool patch to allow porters to use the libtool installed by
the libtoolX ports instead of the one included with each port.  Ports that
set USE_LIBTOOL_VER=X will now use the ports version of libtool instead of
the included version.  To restore previous behavior, use the new macro,
USE_INC_LIBTOOL_VER.  Both macros accept the same argument: a libtool version.

For example, to use the ports version of libtool-1.5, add the following to
your Makefile:

USE_LIBTOOL_VER=        15

To use the included version of libtool with extra hacks provided by
libtool-1.5, add the following to your Makefile:

USE_INC_LIBTOOL_VER=    15

With this change, ports that had to add additional libtool hacks to prevent
.la files from being installed or to fix certain threading issues can now
delete those hacks (after appropriate testing, of course).

PR:		63944
Based on work by:eik and marcus
Approved by:	ade (autotools maintainer)
Tested by:	kris on pointyhat
Bound to be hidden problems:	You bet
2004-07-09 17:43:11 +00:00

53 lines
1.3 KiB
Makefile

# New ports collection makefile for: m17n-lib
# Date created: 29 May 2004
# Whom: Kimura Fuyuki <fuyuki@hadaly.org>
#
# $FreeBSD$
#
PORTNAME= m17n-lib
PORTVERSION= 1.0.2
CATEGORIES= devel
MASTER_SITES= http://www.m17n.org/m17n-lib/download/
MAINTAINER= fuyuki@hadaly.org
COMMENT= A library for the multilingual text handling
LIB_DEPENDS= fribidi.0:${PORTSDIR}/converters/fribidi \
otf.0:${PORTSDIR}/print/libotf
BUILD_DEPENDS= ${LOCALBASE}/share/m17n/mdb.dir:${PORTSDIR}/devel/m17n-db
RUN_DEPENDS= ${LOCALBASE}/share/m17n/mdb.dir:${PORTSDIR}/devel/m17n-db
USE_REINPLACE= yes
USE_XLIB= yes
USE_GNOME= libxml2
USE_INC_LIBTOOL_VER= 15
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
USE_GMAKE= yes
MAKE_ARGS= libm17n_la_LDFLAGS=
INSTALLS_SHLIB= yes
OPTIONS= ANTHY "With Anthy support" off \
ISPELL "With Ispell support" off
.include <bsd.port.pre.mk>
.ifdef WITH_ANTHY
LIB_DEPENDS+= anthy.1:${PORTSDIR}/japanese/anthy
.else
CONFIGURE_ENV+= ac_cv_lib_anthydic_anthy_init_sessions=no
.endif
.ifdef WITH_ISPELL
BUILD_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
.else
CONFIGURE_ENV+= HAVE_ISPELL=no
.endif
post-patch:
${REINPLACE_CMD} -e 's|/usr/include/libxml2|${LOCALBASE}/include/libxml2|' \
${WRKSRC}/configure
.include <bsd.port.post.mk>