Commit graph

141 commits

Author SHA1 Message Date
obache
fa283f42c7 tell iconv.h for Haiku. 2010-08-30 02:04:58 +00:00
obache
69244f3904 Treat Haiku like BeOS. 2010-01-30 10:24:29 +00:00
tron
43396069f3 Use "libtool" rules similar to those in version 1.13.1 of "libiconv"
to build "preloadable_libiconv.so". This should fix the build
under Linux, OSF1 and Solaris with any supported compiler.
2010-01-06 21:01:09 +00:00
tron
94d1b34324 Fix the part of the makefile that builds "preloadable_libiconv.so" under
Solaris if GCC is used. As this bit is both operating system and compiler
specific we can simple bypass "libtool" which is what must have happened
with the old "libtool".

The build in the non-GCC case or under Linux respectively OSF1 might
still be broken. But I don't have a setup to test that.
2010-01-06 18:53:05 +00:00
joerg
0268c554bd Remove @dirrm entries from PLISTs 2009-06-14 17:38:38 +00:00
wiz
60f460ab01 Use standard location for LICENSE line (in MAINTAINER/HOMEPAGE/COMMENT
block). Uncomment some commented out LICENSE lines while here.
2009-05-19 08:59:00 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
joerg
3d8ef5a52d Second round of explicit pax dependencies. As reminded by tnn@,
many packages used to use ${PAX}. Use the common way of directly calling
pax, it is created as tool after all.
2008-05-26 02:13:14 +00:00
jlam
841dfa0e7a Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
2008-04-12 22:42:57 +00:00
jlam
1ba751eba2 Greatly simplify the logic that tries to determine whether -lintl
needs -liconv in order to satisfy linkage requirements.  This is now
patterned after the approach taken with readline and termlib.

Examples on NetBSD for a package that includes only
gettext-lib/buildlink3.mk:

PREFER_NATIVE=	yes
PREFER_PKGSRC=	# empty
# This uses the native gettext and native iconv, with:
#	BUILDLINK_LDADD.gettext == "-lintl"

PREFER_NATIVE=	yes
PREFER_PKGSRC=	iconv
# This uses the native gettext and native iconv, with:
#	BUILDLINK_LDADD.gettext == "-lintl"

PREFER_NATIVE=	yes
PREFER_PKGSRC=	gettext
# This uses the pkgsrc gettext and native iconv, with:
#	BUILDLINK_LDADD.gettext == "-lintl"

PREFER_NATIVE=	yes
PREFER_PKGSRC=	gettext iconv
# This uses the pkgsrc gettext and pkgsrc iconv, with:
#	BUILDLINK_LDADD.gettext == "-lintl -liconv"

PREFER_NATIVE=	# empty
PREFER_PKGSRC=	yes
# This uses the pkgsrc gettext and pkgsrc iconv, with:
#	BUILDLINK_LDADD.gettext == "-lintl -liconv"

PREFER_NATIVE=	iconv
PREFER_PKGSRC=	yes
# This uses the pkgsrc gettext and native iconv, with:
#	BUILDLINK_LDADD.gettext == "-lintl"

PREFER_NATIVE=	gettext
PREFER_PKGSRC=	yes
# This uses the native gettext and native iconv, with:
#	BUILDLINK_LDADD.gettext == "-lintl"

PREFER_NATIVE=	gettext iconv
PREFER_PKGSRC=	yes
# This uses the native gettext and native iconv, with:
#	BUILDLINK_LDADD.gettext == "-lintl"
2008-02-27 22:10:34 +00:00
jlam
3b4358fe5a Whitespace. 2008-02-27 19:32:55 +00:00
joerg
61588cbab1 Regen. 2008-01-13 09:31:11 +00:00
joerg
22969025d4 Keep locale_alias symbol and don't hide it when visibility support
exists and libiconv is compiled. This restores symmetry between
libiconv.so, libiconv.a and libintl and fixes the build of gettext-tools
on Linux. Bump revision.
2008-01-13 09:30:57 +00:00
sketch
203c85cd03 Remove the preprocessor test for 'long long int', it fails with SunPro
causing later compile-time tests to break.  Taken from gnulib change
in http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
2008-01-08 22:08:36 +00:00
wiz
a53396f3de Update to 1.12:
New in libiconv-1.12-cp932.patch:
* Changed CP932 converter to use exact mapping table.
* Added WINDOWS-31J, csWINDOWS31J, SJIS-OPEN, SJIS-WIN as aliases for CP932.
* Added EUCJP-MS converter.
* Added EUC-JP-MS, EUCJP-OPEN, EUCJP-WIN as aliases for EUCJP-MS.

New in 1.12:
* The iconv program is now licensed under the GPL version 3, instead of the
  GPL version 2. The libiconv library continues to be licensed under LGPL.
* Added RK1048 converter.
* On AIX, an existing system libiconv no longer causes setlocale() to fail.
* Upgraded EUC-KR, JOHAB to include the Korean postal code sign.
2007-11-29 17:05:34 +00:00
minskim
a054bca239 Fix version detection when the version number contains capital letters. 2007-11-07 17:24:28 +00:00
taca
44935f5404 Add cp932-patch which was ja-patch as PKG_OPTION and enabled default.
Bump PKGREVISION.
2007-10-28 02:07:41 +00:00
tnn
24d5b54409 Fix abusers of LOWER_OPSYS to check OPSYS or MACHINE_PLATFORM instead. 2007-10-16 23:48:58 +00:00
schmonz
b267578d80 Don't require c99 in USE_LANGUAGES. libiconv builds fine with gcc
2.95.4 on FreeBSD 4.11 without it; with it, pkgsrc wants gcc3-c,
which results in a circular dependency.

The addition of c99 to USE_LANGUAGES appears to have been intended
to benefit IRIX with MIPSPro, so also restore the old behavior of
appending "-c99" to CFLAGS in that case.
2007-06-02 06:56:06 +00:00
tnn
94e884b989 Merge platform-specific PLISTs. Suggested by <joerg> 2007-04-12 10:27:15 +00:00
tnn
2feda77560 Add custom PLIST for OSF1, due to libiconv installing a preloadable_libiconv.so
like it does on SunOS.
2007-04-11 19:29:17 +00:00
wiz
6eaa530983 Update to 1.11:
New in 1.11:
* The iconv program has new options --unicode-subst, --byte-subst,
  --widechar-subst that allow to specify substitutions for characters that
  cannot be converted.
* The iconv program now understands long options:
    long option    equivalent to
    --from-code    -f
    --to-code      -t
    --list         -l
    --silent       -s
* The CP936 converter is now different from the GBK converter: it has changed
  to include the Euro sign and private area characters. CP936 is no longer an
  alias of GBK.
* Updated GB18030 converter to include all private area characters.
* Updated CP950 converter to include the Euro sign and private area characters.
* Updated CP949 converter to include private area characters.
* Updated the BIG5-HKSCS converter. The old BIG5-HKSCS converter is renamed to
  BIG5-HKSCS:1999 and updated to Unicode 4. New converters BIG5-HKSCS:2001 and
  BIG5-HKSCS:2004 are added. BIG5-HKSCS is now an alias for BIG5-HKSCS:2004.
* Added a few irreversible mappings to the CP932 converter.
* Tidy up the list of symbols exported from libiconv (assumes gcc >= 4.0).
2007-03-20 00:44:52 +00:00
rillig
fc99a64e14 This package is not MAKE_JOBS_SAFE. 2007-01-30 11:27:44 +00:00
cbiere
e2c55a18b0 Added c++ to USE_LANGUAGES because configure (unnecessarily) looks for
a working C++ preprocessor and the build breaks if there's a non-working
CC in PATH otherwise.
2006-12-03 11:20:12 +00:00
jschauma
721b60b433 Instead of setting compiler flags in each package if it uses C99,
allow USE_LANGUAGES+=c99 and let gcc and mipspro do the right thing.
May need to be reviewed/added for other compilers.
ok rillig@
2006-12-02 22:32:59 +00:00
joerg
d19f5ff58f DESTDIR support. Use modular Xorg for wv.
XXX Remove pre-install in libiconv?
2006-11-14 13:55:34 +00:00
jlam
c16221a4db Change the format of BUILDLINK_ORDER to contain depth information as well,
and add a new helper target and script, "show-buildlink3", that outputs
a listing of the buildlink3.mk files included as well as the depth at
which they are included.

For example, "make show-buildlink3" in fonts/Xft2 displays:

	zlib
	fontconfig
	    iconv
	    zlib
	    freetype2
	    expat
	freetype2
	Xrender
	    renderproto
2006-07-08 23:10:35 +00:00
jlam
9430e49307 Track information in a new variable BUILDLINK_ORDER that informs us
of the order in which buildlink3.mk files are (recursively) included
by a package Makefile.
2006-07-08 22:38:58 +00:00
jlam
536c7f63b3 Explicitly disable NLS. This should fix PLIST problems on Linux,
where glibc has its own gettext functions and the configure script
was picking it up and as a result the install process copied a lot of
*.mo files into ${PREFIX}.
2006-06-08 03:56:21 +00:00
schwarz
f6e26041a5 added a hack to work around the conflict of sys/types.h and inttypes.h on
IRIX 5.3.
2006-04-14 21:13:10 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
jlam
d71a98aa8e Avoid extra stat() calls by not repeatedly checking whether a file
exists on the disk -- we can just check whether a variable defined by
find-files.mk is "__nonexistent__" or not.
2006-03-30 18:06:17 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
taca
70126d8847 Update libiconv-1.10-cp932.patch to libiconv-1.10-ja-1.patch,
approved by wiz.

Bump PKGREVISION.

 New in libiconv-1.10-ja.patch:

 * Changed EUC-JP, SHIFT_JIS, ISO-2022-JP, ISO-2022-JP-1, ISO-2022-JP-2,
   ISO-2022-JP-3, DEC-KANJI converters, so that JIS X 0208 1-29(0x815C )EM DASH
   is converted into U+2014 EM DASH instead of U+2015 HORIZONTAL BAR.
 * Changed SHIFT_JIS, SHIFT_JISX0213, ISO-2022-JP, ISO-2022-JP-1, ISO-2022-JP-2,
   ISO-2022-JP-3 converters, so that JIS X 0201 5/12(0x5C) YEN SIGN is
   converted into U+005C REVERSE SOLIDUS instead of U+00A5 YEN SIGN and
   JIS X 0201 7/14(0x7E) OVER LINE is converted into U+007E TILDE instead of
   U+203E OVER LINE.
 * Changed EUC-JP, SHIFT_JIS converters to exclude UDC mappings.
 * Added Shift_JIS-MS, SJIS-MS,
   MS932 as aliases for CP932.
 * Added CP51932 converter.
 * Added ISO-2022-JP-MS converter.
 * Added CP50221 as aliases for ISO-2022-JP-MS.

 New in libiconv-1.10-ja-1.patch:

* Fixed output JIS X 0201 kata-kana character as raw 8bit when converted to
  iso-2022-jp-ms.
* Fixed check tests/SHIFT_JISX0213.TXT
* Add WINDOWS-932 as alias of CP932.
* Add WINDOWS-51932 and MS51932 as alias of CP51932.
* Add WINDOWS-50221 and MS50221 as alias of ISO-2022-JP-MS.
* Add eucjpms (from MySQL) as alias of eucJP-ms.
* Introduce CHARSET_ALIAS environment variable support.
  Example)
    with /bin/sh:

      $ CHARSET_ALIAS="Shift_JIS=WINDOWS-932:EUC-JP=EUC-JP-MS:ISO-2022-JP=ISO-2022-JP-MS"
      $ export CHARSET_ALIAS
2005-10-02 06:09:47 +00:00
jschauma
ac598142d5 add -c99 to CFLAGS for IRIX' MIPSPro compilers. 2005-09-27 01:41:18 +00:00
adam
88fd0d0c78 Added cp932 patch; closing PR-31142 2005-09-12 13:41:31 +00:00
jlam
ea0d048172 Put the charset.alias file into place using REQD_FILES instead of
CONF_FILES since we need it to always be present for libiconv to
function properly.  It's now no longer removed automatically at
deinstallation if it differs from the stock charset.alias file, meaning
it's now preserved in case the user made modifications to the file;
however a warning will be output that the file can be safely removed
if you don't need it anymore.  Bump the PKGREVISION to 1.
2005-08-19 22:26:21 +00:00
jlam
bd2788d930 Merge CONF_FILES/SUPPORT_FILES and CONF_FILES_PERMS/SUPPORT_FILES_PERMS
as the INSTALL and DEINSTALL scripts no longer distinguish between
the two types of files.  Drop SUPPORT_FILES{,_PERMS} and modify the
packages in pkgsrc accordingly.
2005-08-19 18:12:36 +00:00
adam
c7919dce64 Changes 1.10:
* Added ISO-8859-11 converter.
* Updated the ISO-8859-7 converter.
* Added ATARIST converter, available through --enable-extra-encodings.
* Added BIG5-2003 converter (experimental), available through
  --enable-extra-encodings.
* Updated EUC-TW converter to include the Euro sign.
* The preloadable library has been renamed from libiconv_plug.so to
  preloadable_libiconv.so.
* Portability to mingw.
2005-07-28 15:15:17 +00:00
jlam
49d363d81d Back out previous and reset the BUILTIN_VERSION.iconv variable instead.
This should fix functioning on Linux systems that actually use GNU
libiconv as the builtin iconv implementation.
2005-06-06 01:30:56 +00:00
minskim
69002413fb Make BUILTIN_PKG.iconv follow what the comment says. 2005-06-05 22:05:00 +00:00
jmmv
0ad8b0bb46 Assume that DragonFly's native libiconv is good enough for pkgsrc, just as
we do for NetBSD.  Patch from Joerg Sonnenberger.
2005-06-05 10:00:20 +00:00
jlam
7e8aa8b98e In builtin.mk files, use _BLTN_ as the private namespace prefix. 2005-06-05 09:25:37 +00:00
jlam
95fd1f6ec9 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
Several changes are involved since they are all interrelated.  These
changes affect about 1000 files.

The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk.  bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files.  Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred.  This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.

The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages.  Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc.  This modification is a nod toward LOCALBASE=/usr.  The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.

The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc.  The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.

The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files.  Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories.  These files are used as input
to imake since imake can't use stdin for that purpose.

The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead.  This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed.  Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries.  Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
2005-06-01 18:02:37 +00:00
jlam
bb7c443e62 Don't set artificial restrictions on which platforms can build this
package.  Linux, like NetBSD, should be able to build this package,
even if it has a built-in iconv implementation.
2005-05-24 04:36:51 +00:00
jlam
25a0a13e76 Rewrite to use find-libs.mk rename several variables to begin with
_BLNK_ to properly namespace those variables, and rewrite BUILTIN_PKG.iconv
computation to use one fewer awk invocation.
2005-05-24 04:22:24 +00:00
minskim
9f22a18128 Simplify a condition. 2005-05-22 01:22:47 +00:00
minskim
a55cb6f4fb Use the iconv library in glibc on Linux even if USE_GNU_ICONV is set. 2005-05-22 00:01:36 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00