freebsd-ports/converters/libiconv/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

55 lines
1.4 KiB
Makefile

# New ports collection makefile for: libiconv
# Date created: 17 July 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= libiconv
PORTVERSION= 1.9.2
PORTREVISION= 1
CATEGORIES= converters devel
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= gnome@FreeBSD.org
COMMENT= A character set conversion library
USE_REINPLACE= yes
USE_AUTOTOOLS= libtool:15
USE_GNOME= gnometarget
LIBTOOLFILES= configure libcharset/configure
CONFIGURE_ARGS= --enable-static \
--without-libintl-prefix
INSTALLS_SHLIB= yes
MAN1= iconv.1
MAN3= iconv.3 iconv_open.3 iconv_close.3
.ifdef USE_ICONV
.error USE_ICONV is defined as an environment variable, or in the arguments \
to "make". Please unset it and restart the build.
.endif
.if !defined(WITHOUT_EXTRA_ENCODINGS)
CONFIGURE_ARGS+= --enable-extra-encodings
.endif
.if defined(WITH_EXTRA_PATCHES)
PATCH_SITES+= http://www2d.biglobe.ne.jp/~msyk/software/libiconv/
PATCHFILES+= ${DISTNAME}-cp932.patch.gz
PATCH_DIST_STRIP+= -p1
.endif
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "libiconv has the following tunable option(s):"
@${ECHO_MSG} " WITHOUT_EXTRA_ENCODINGS=yes Disable extra character sets"
@${ECHO_MSG} " WITH_EXTRA_PATCHES=yes Apply extra patches (fixes cp932, adds EUCJP-MS)"
@${ECHO_MSG} ""
post-patch:
@${REINPLACE_CMD} -e 's:ei_ksc5601:ei_euc_kr:g' ${WRKSRC}/lib/aliases.h
.include <bsd.port.mk>