freebsd-ports/devel/m17n-lib/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

54 lines
1.4 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.2.0
CATEGORIES= devel
MASTER_SITES= http://www.m17n.org/m17n-lib/download/
MAINTAINER= ports@FreeBSD.org
COMMENT= A library for the multilingual text handling
BUILD_DEPENDS= ${LOCALBASE}/share/m17n/mdb.dir:${PORTSDIR}/devel/m17n-db
LIB_DEPENDS= fribidi.0:${PORTSDIR}/converters/fribidi \
gd.4:${PORTSDIR}/graphics/gd \
otf.0:${PORTSDIR}/print/libotf \
Xft.2:${PORTSDIR}/x11-fonts/libXft
RUN_DEPENDS= ${LOCALBASE}/share/m17n/mdb.dir:${PORTSDIR}/devel/m17n-db
USE_XLIB= yes
USE_GNOME= gnometarget libxml2 pkgconfig
USE_REINPLACE= yes
USE_AUTOTOOLS= libtool:15
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes
OPTIONS= ANTHY "With Anthy support" off \
ISPELL "With Ispell support" off
.include <bsd.port.pre.mk>
.if defined(WITH_ANTHY)
LIB_DEPENDS+= anthy.1:${PORTSDIR}/japanese/anthy
.else
CONFIGURE_ENV+= ac_cv_lib_anthydic_anthy_init_sessions=no
.endif
.if defined(WITH_ISPELL)
BUILD_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
.else
CONFIGURE_ENV+= HAVE_ISPELL=no
.endif
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|$${libdir}/pkgconfig|$${prefix}/libdata/pkgconfig|g ; \
s|-ldl||g'
.include <bsd.port.post.mk>