Commit graph

102 commits

Author SHA1 Message Date
Tijl Coosemans
8814b01d9e Define ICONV_GET_ILSEQ_INVALID and ICONV_SET_ILSEQ_INVALID when mimicking
base system iconv.h.
2017-09-25 20:55:27 +00:00
Sunpoet Po-Chuan Hsieh
b6f39ef341 - Add LICENSE
Approved by:	portmgr (blanket)
2016-12-09 12:57:21 +00:00
Tijl Coosemans
6ead27eb95 Remove libiconv.so.3 compatibility link that was added in r374303 to
prevent massive PORTREVISION bumps.  Bump dependent ports that have not
been bumped since.
2016-12-08 19:23:24 +00:00
Tijl Coosemans
3a55a118dd Remove iconv(), iconv_open() and iconv_close() symbols from libiconv.
These were FreeBSD specific aliases for libiconv(), libiconv_open() and
libiconv_close() that are now also provided by libc which complicates
writing configure tests that work correctly when both libc iconv and
libiconv are available.

Also, because the libiconv iconv.h header redefines iconv* to libiconv*
correct use of the header implies that the aliases aren't used.

The following ports needed fixes because there was something wrong with
the way they tried to detect or use iconv:

audio/deadbeef: Remove LIBICONV_PLUG from a source file.  It's a
compile-time option and should not be set in source code.
comms/hidapi: Use standard AM_ICONV configure macro to look for iconv.
deskutils/fbreader: Let ports framework deal with LIBICONV_PLUG.
deskutils/ljclive: Override configure test for iconv.
deskutils/owncloudclient: Add USES=iconv and patch test for iconv.
devel/aegis: Bump PORTREVISION because it no longer uses libiconv.
devel/libexplain: Add USES=iconv and override test for iconv.
devel/sdl20: Override configure test for iconv.
emulators/vmw: Replace OSVERSION checks with ICONV_LIB checks and include
<iconv.h> instead of <sys/iconv.h>.
irc/scrollz: Override configure test for iconv.
japanese/chasen-base: Override configure test for iconv and patch
configure so it no longer adds -liconv to linker flags just because it
happens to be installed.
japanses/eb: Patch configure test for iconv.
japanses/eblook: Override configure test for iconv.
java/jikes: Override configure test for iconv.
multimedia/transcode: Bump PORTREVISION because only one plugin links with
libiconv now.
net/c3270: Override configure test for iconv.
net/samba4*: Bump PORTREVISION because it no longer uses libiconv.  The
configure script will always add -liconv to the linker flags when it
happens to be installed which would be wrong but later on binaries are
linked with -Wl,--as-needed and the linker discards -liconv because it
finds iconv*() functions in libc now and no longer in libiconv.
net-mgmt/icinga-*: Remove dependency on iconv.
net-mgmt/netxms: Patch configure so it no longer adds -liconv to linker
flags just because it happens to be installed.
net/asterisk11: Patch configure so it no longer adds -liconv to linker
flags just because it happens to be installed.
net-p2p/transmission-*: Override configure test for iconv.
www/htmlcxx: Override configure test for iconv.
www/httrack: Override configure test for iconv.
www/xapian-omega: Override configure test for iconv.
x11/mrxvt(-devel): Add USES=iconv and override configure test for iconv.
x11/x3270: Override configure test for iconv.
x11-wm/jwm: Override configure test for iconv.

PR:		202838
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2015-10-10 14:03:00 +00:00
Mathieu Arnold
bb271f0bf7 Convert ports to use the options helpers in categories [abc]*, and minor fixes.
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3412?
2015-08-19 13:29:59 +00:00
Mathieu Arnold
60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00
Tijl Coosemans
131a6f5b8d Hide _LIBICONV_VERSION when LIBICONV_PLUG is defined.
This fixes building devel/gettext-runtime with gcc from lang/gcc*.
With base system compiler gettext includes /usr/include/iconv.h but
lang/gcc* implies -I/usr/local/include and gettext calls
libiconv_set_relocation_prefix when it sees _LIBICONV_VERSION which
isn't implemented (and isn't needed) by libc iconv.

Reported by:	Dewayne Geraghty <dewayne.geraghty@heuristicsystems.com.au>
2015-04-16 10:57:57 +00:00
Tijl Coosemans
074ea5282a converters/libiconv:
- Remove const qualifier from iconv(3) to match POSIX:
  http://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html
- Patch iconv.h to expose more GNU extensions when LIBICONV_PLUG is
  defined because the base system iconv supports these extensions too.

Add/remove patches to/from ports to call iconv with non-const arguments.

This breaks some ports on FreeBSD 10 because base system iconv.h still has
the const qualifier.  Fix this by letting USES=iconv add a build dependency
on converters/libiconv so ports can use its iconv.h (with LIBICONV_PLUG
defined) instead of the base system iconv.h.

This exposed some ports that link with libiconv when it is available instead
of using libc iconv.  In these cases one of the following changes has been
made:
- patch configure scripts to test for libc iconv first
- add ac_cv_lib_iconv_libiconv=no or similar to CONFIGURE_ARGS to disable
  some configure tests
- converters/wkhtmltopdf: this includes Qt4 so add a patch from devel/qt4
- lang/gcc5-aux: respect CFLAGS and friends during configure such that
  LIBICONV_PLUG is defined in the iconv test, also switch to external
  gettext
- mail/gnarwl: replace patches with CPPFLAGS/LIBS
- multimedia/ffmpeg2theora: remove iconv test from SConstruct and use
  ICONV_LIB in port Makefile instead, also fix a bug in subtitles.c
- net-im/licq: finish conversion to cmake
- net-mgmt/bandwidthd, net-mgmt/icinga, net-mgmt/nagios, net-mgmt/nagios4:
  don't need iconv
- textproc/p5-XML-TinyXML: finish conversion to USES=perl5

Other changes:
- databases/qdbm and slaves: respect CFLAGS and friends, also enable bzip2
  and lzo support
- games/ldmud: respect CFLAGS and friends
- graphics/inventor: replace some patches with MAKE_ARGS/MAKE_ENV to respect
  CFLAGS and friends, also remove FreeBSD/alpha patch and add missing xorg
  dependencies

PR:		199099
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2015-04-15 08:20:27 +00:00
Tijl Coosemans
37442dc141 Restore a patch hunk that was removed in r373636. It fixes a reference
to the stage directory in an installed binary.

Reported by:	antoine
2014-11-30 11:04:02 +00:00
Tijl Coosemans
edb7229dd4 Split devel/gettext in devel/gettext-runtime and devel/gettext-tools. The
first contains runtime libraries such as libintl and the latter contains
developer tools such as msgfmt.  Ports that use gettext will usually need
a LIB_DEPENDS on gettext-runtime and a BUILD_DEPENDS on gettext-tools.

USES=gettext-runtime can be used to set a LIB/BUILD/RUN_DEPENDS on
devel/gettext-runtime and USES=gettext-tools can be used to set a
BUILD/RUN_DEPENDS on devel/gettext-tools.  USES=gettext is now the same
as "USES=gettext-runtime gettext-tools" meaning a LIB_DEPENDS on
devel/gettext-runtime and a BUILD_DEPENDS on devel/gettext-tools.

Update gettext to 0.19.3.

Remove :oldver from converters/libiconv and devel/gettext-runtime.  Leave
symlinks with the old library versions to avoid the need to bump
PORTREVISION on a large number of dependent ports.  When most of the
dependent ports have had normal version updates, PORTREVISION can be
bumped on the remaining ones (low number) and the links can be removed.

Fix some ports that installed files in lib/locale instead of share/locale.

PR:		194038
Reviewed by:	bapt
Exp-run:	antoine
Approved by:	portmgr (antoine)
2014-11-29 18:22:32 +00:00
Baptiste Daroussin
99a4f62f93 Cleanup plist 2014-10-20 09:37:00 +00:00
Tijl Coosemans
a6b055a9c3 Remove *.la files from stagedir to fix a check-plist error.
The files were accidentally removed from pkg-plist in the previous commit
but let's keep it that way now.
This commit will be reverted when this port switches from "libtool:oldver"
to "libtool".

Reported by:	ohauer
2014-09-04 11:00:14 +00:00
Tijl Coosemans
801219d1e3 Add USES=libtool:oldver and INSTALL_TARGET=install-strip 2014-09-01 19:53:38 +00:00
Adam Weinberger
08a006d08a Rename all patches that contain '::' as a path separator, and use
'__' instead.
2014-07-29 17:12:47 +00:00
Tijl Coosemans
96557119e2 - Remove indefinite article from COMMENT.
- Enable -fvisibility=hidden.
- Add USE_CSTD=gnu89 to fix compilation with -O0 and -Oz.
- Add DOCS option.

PR:		ports/186846
Approved by:	kwm, marcus
2014-03-23 13:26:20 +00:00
Adam Weinberger
7714ad1b98 Don't unconditionally install DOCS. PORTREVISION bump
for plist change.

PR:		ports/186590
Approved by:	maintainer
2014-03-03 21:15:30 +00:00
Tijl Coosemans
0052e743ef - Add two new arguments to USES=iconv so ports can indicate they use GNU
iconv extensions that the base system iconv doesn't support yet:
  * wchar_t: port uses the special WCHAR_T character conversion.
  * translit: port uses //TRANSLIT or //IGNORE conversion options.
  Adding one or both of these arguments makes the port depend on
  converters/libiconv for now.
- Allow installation of converters/libiconv on FreeBSD 10+.
- Use ICONV_CONFIGURE_ARG in devel/gettext instead of defining CPPFLAGS
  and LDFLAGS to fix compilation with libiconv installed.
- Stage converters/libiconv and devel/gettext.

Approved by:	bapt (on trust)
2014-01-29 20:24:49 +00:00
Baptiste Daroussin
72d170001a Reduce over inclusion of bsd.port.mk 2014-01-15 23:24:19 +00:00
Ulrich Spörlein
2e790e6f32 Allow users to install converters/libiconv on 10.x systems if they
decided to build world with WITHOUT_ICONV set. There's no need for
this check to be based on OSVERSION.

Some users (i.e. me), report subtle application breakages with the
iconv-from-src that disappear when iconv-from-ports is installed.
Allow for a bridge till these issues are sorted out.

Approved by:	portmgr (bdrewery)
2013-10-23 15:05:04 +00:00
Baptiste Daroussin
1e4b97cf2b Add NO_STAGE all over the place in preparation for the staging support (cat: converters) 2013-09-20 16:05:24 +00:00
Guido Falsi
aa260754ba Report correct OSVERSION in IGNORE message. 2013-09-06 20:02:00 +00:00
Guido Falsi
642be1b81d - Make ports use the libc provided iconv implementation on 10-CURRENT
after r254273
- Fix a bunch of ports to properly work after this
- Mark converters/libiconv as IGNORE for systems with iconv in libc

Reviewed by:	bapt
Approved by:	portmgr (bapt)
Discussed with:	bapt, bsam (who both contributed ideas and code)
2013-09-04 18:06:07 +00:00
Koop Mast
1042a771aa Remove extra blank line to please portlint.
Don't let the port chmod 777 ${WRKSRC}/src to prevent possible security issue.

Submitted by:	tijl@ (priv mail)
2013-07-06 17:45:15 +00:00
Koop Mast
58357934c6 Remove USE_AUTOTOOLS=libtool. This was added in r183830 because the bundled
libtool at the time didn't handle the removal of objformat correctly.
Also revert r239611. This revision was because the libtool port and the bundled
 libtool at the time detect "clang" as a valid C compiler.

PR:		ports/179753
Submitted by:	tijl@
2013-07-06 13:29:54 +00:00
Baptiste Daroussin
56c5e147c5 Convert the last USE_ICONV to USES=iconv 2013-04-27 22:09:15 +00:00
Baptiste Daroussin
85228d9f12 Prevent using gawk which depends on gettext in configure scripts
Reported by:	rene, avg
Tested by:	rene
2013-03-18 15:51:39 +00:00
Baptiste Daroussin
e7b0f97788 Fix a long standing bug of lib/charset.alias being overwritten, modified, and badly tracked by ports.
Make lib/charset.alias a file only provided by converters/libiconv
Create a new USES: charsetfix, that will modify in post patch the Makefile.in to prevent a port from modifying/overwritting the charset.alias file during make install.
Prevent devel/gettext from installing that files.
Fix a couple of ports that actually touch charset.alias during the build phase.

Based on a patch by ale (http://lists.freebsd.org/pipermail/freebsd-gnome/2012-October/027747.html)

Approved by:	kwm (gnome)
Exp-run by:	miwi
2013-03-18 11:40:04 +00:00
Koop Mast
a46c2d4f40 Update distinfo for the optional patch. For some reason the wrong sha265 got
recorded. I checked and the content hasn't changed.

Submitted by:	zeising@
2012-12-10 21:08:33 +00:00
Koop Mast
fc3f626ffc Reenable the patch to fix CP932 and add EUCJP-MS.
While here trim header and convert to OptionsNG.

PR:		ports/173986
Submitted by:	Takumi Takahashi <takumi@tmfam.com>
2012-12-09 20:00:19 +00:00
Koop Mast
bdfc30342b Update to 1.14.
Disable EXTRA_PATCHES since there isn't a new version of this patch for 1.14.

Ports exp-run done by linimon@

PR:		ports/165514
Submitted by:	myself
2012-04-21 19:00:29 +00:00
Joe Marcus Clarke
d0e0364c48 Bump PORTREVISION for the previous commit to fix C++ builds. 2012-03-04 23:57:59 +00:00
Joe Marcus Clarke
cb5830acfc Fix building C++ code that uses libiconv.
PR:		165348
Submitted by:	Pedro Giffuni <giffunip@tutopia.com>
2012-03-04 23:56:55 +00:00
Koop Mast
0e682dded4 Remove USE_GNOME=gnometarget from ports. It has been a empty keyword since
mid 2008.

PR:		ports/159624
Submitted by:	Ruslan Mahmatkhanov <cvs-src@yandex.ru>
2011-08-11 19:20:17 +00:00
Martin Wilke
bb86cbe5d2 - Get Rid MD5 support 2011-03-20 12:54:45 +00:00
Ade Lovett
4a8684e352 Sync to new bsd.autotools.mk 2010-12-04 07:34:27 +00:00
Alexey Dokuchaev
bdede6397c Restore comma I bogusly deleted in rev. 1.41 over 2 years ago.
Feature safe:	yes
2010-02-25 08:28:28 +00:00
Alexander Nedotsukov
b6036e9eea Apply patch from the upstream to prevent endless loop triggered by
incomplete UTF-8 sequence.

PR:	143575
2010-02-06 00:55:44 +00:00
Joe Marcus Clarke
2d2eff3b88 Fix with build with llvm/clang.
Submitted by:	Ryan Flynn <parseerror@gmail.com>
2009-08-15 18:07:49 +00:00
Jeremy Messenger
789d75c728 -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
2009-08-02 19:36:34 +00:00
Norikatsu Shigemura
483d5cde5e Fix patch issue WITH_EXTRA_PATCHES. 2009-07-05 06:00:10 +00:00
Joe Marcus Clarke
0d84bd350a Update to 1.13.1. 2009-07-04 23:49:16 +00:00
Koop Mast
0d049050c6 Fix the OPTIONS bit of EXTRA_PATCHES. 2009-06-15 14:51:23 +00:00
Norikatsu Shigemura
dff0115d77 Re-enable EXTRA_PATCHES. 2009-06-15 14:30:57 +00:00
Koop Mast
2dfcf63658 Comment out the EXTRA_PATCHES option. Patch needs to be updated. 2009-06-15 14:03:48 +00:00
Joe Marcus Clarke
81c1e0b7ba Update to 1.13. Note: the iconv(1) utility is now licensed under GPLv3.
The library is still licensed under the LGPL.

PR:		131769
Submitted by:	Takeshi Taguchi <taguchi@iij.ad.jp> (based on)
2009-06-15 03:51:57 +00:00
Ed Schouten
c223e910c0 Build libiconv with -std=gnu89.
libiconv fails to link when built with a C99 compiler, because it uses
GNU-style inlining.

Approved by:	marcus
2009-06-04 06:25:38 +00:00
Pav Lucistnik
3bb8409d41 - Mark MAKE_JOBS_UNSAFE
Reported by:	David Naylor <naylor.b.david@gmail.com>
2009-04-07 23:25:43 +00:00
Alexander Nedotsukov
8ec2822da0 Re-enable EXTRA_PATCHES option.
PR:		117561
2007-10-27 15:31:50 +00:00
Joe Marcus Clarke
4acc6fb2a4 Presenting GNOME 2.20.1 and all related works for FreeBSD. The official
GNOME 2.20 release notes can be found at
http://www.gnome.org/start/2.20/notes/en/ .  Beyond that, this update
includes the new GIMP 2.4 (courtesy of ahze).

The GNOME 2.20 update also includes a huge change in the FreeBSD GNOME
hierarchy.  We are now using the more standard DATADIR of ${PREFIX}/share
rather than ${PREFIX}/share/gnome. The result is that fewer patches and
hacks are needed to port GNOME components to FreeBSD.  This will mean some
user changes may be required, so be sure to read /usr/ports/UPDATING for
more details.

This release and the things we accomplished in it would not have been
possible without mezz's crazy idea to collapse DATADIR, and his persistence
to make it happen successfully.  Ahze and pav also deserve thanks for
their work on porting modules and testing the whole ball of wax on
pointyhat (respectively).

The FreeBSD GNOME team would also like to thank our various testers and
contributors:

Yasuda Keisuke
Frank Jahnke
Pawel Worach
Brian Gruber
Franz Klammer
Yuri Pankov
Nick Barkas
Cristian KLEIN
Tony Maher
Scot Hetzel
Martin Matuska (mm)
Benoit Dejean
Martin Wilke (miwi)
(And anyone else I may have missed)

PRs fixed in this release:

111272, 113470, 115995, 116338
2007-10-24 23:37:25 +00:00
Alexey Dokuchaev
f2bbd99dc5 - Remove extraneous comma from previous commit
- Better English in port description
2007-10-11 07:24:47 +00:00