1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/Mk
Tijl Coosemans 9f8b4bcde3 Support LIBS like LDFLAGS.
- Add LIBS="${LIBS}" to MAKE_ENV and CONFIGURE_ENV.
- Add an option helper for LIBS.
- Adjust all ports that already use LIBS.  Also remove references to
  PTHREAD_CFLAGS and PTHREAD_LIBS while here.
- Some ports did not support having a LIBS environment variable and
  required additional patches.

Somewhat simplified a linker command line looks like:

${CC} ${src_LDFLAGS} ${LDFLAGS} ${src_LIBS} ${LIBS}

where src_LDFLAGS and src_LIBS are controlled by upstream and LDFLAGS and
LIBS can be controlled by us.  If possible -L and -l flags need to be
added to LIBS to make sure they appear after any -L and -l flags set by
upstream.  Many ports currently add -L${LOCALBASE}/lib to LDFLAGS but this
may appear too early on the command line causing installed libraries to
be linked in instead of freshly built ones.

Additional changes:
benchmarks/netio: Replace WITH_IPV6 with an IPV6 option.
comms/gnokii: Replace some patches with USES=pathfix.  Also remove -fPIC.
graphics/gimageview: USES=libtool and install desktop file in DESKTOPDIR.
graphics/visionworkbench: Remove FreeBSD 7 support.
multimedia/libmovtar: New LIB_DEPENDS syntax.
multimedia/opencinematools: Use standard do-build.
net/siproxd: USES=libtool:keepla (port actually needs .la files for plugins)
net-mgmt/nagios: Remove -fPIC.
net-mgmt/nagios4: Remove -fPIC.
print/cups-base: Only add -lssp_nonshared on i386 and OSVERSION < 1000036.
security/p11-kit: Replace PTHREAD_LIBS in CONFIGURE_ENV with
ac_cv_func_pthread_mutexattr_init=no in CONFIGURE_ARGS.  This skips a test
in configure that falsely detects pthread_mutexattr_init in our libc.
sysutils/dar: Fix iconv detection.
x11/rxvt-unicode: Remove -lstdc++ and patch configure to remove a FreeBSD
hack and use $CXX as linker as on other platforms.

PR:		190592
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-06-11 14:49:59 +00:00
..
Scripts Add more files to orphans white list: 2014-05-19 16:09:00 +00:00
Uses - Update Firefox to 30.0 2014-06-11 03:42:55 +00:00
bsd.apache.mk Convert all :U to :tu and :L to :tl 2014-05-05 09:45:36 +00:00
bsd.autotools.mk - Run autotools in the same order as autoreconf, i.e. libtoolize, aclocal, 2014-05-06 09:55:35 +00:00
bsd.commands.mk - Use /usr/bin/unzip for zip files extraction (part 1) 2014-05-22 09:51:35 +00:00
bsd.database.mk 'activate' postgresql-9.4 2014-05-24 14:38:42 +00:00
bsd.default-versions.mk Revert r356123 2014-06-02 18:29:22 +00:00
bsd.destdir.mk
bsd.drupal.mk
bsd.efl.mk Convert all :U to :tu and :L to :tl 2014-05-05 09:45:36 +00:00
bsd.emacs.mk - Update to bzr revision 24.4.50 2014-05-02 01:51:50 +00:00
bsd.fpc.mk Convert all :U to :tu and :L to :tl 2014-05-05 09:45:36 +00:00
bsd.gcc.mk
bsd.gecko.mk Support LIBS like LDFLAGS. 2014-06-11 14:49:59 +00:00
bsd.gnome.mk Add a USE_GNOME py3gobject3 component for devel/py3-gobject3 added in r355246. 2014-05-26 07:22:01 +00:00
bsd.gnustep.mk Do not overwrite USES but append values to it 2014-05-26 13:43:25 +00:00
bsd.gstreamer.mk
bsd.java.mk Convert all :U to :tu and :L to :tl 2014-05-05 09:45:36 +00:00
bsd.kde4.mk KDE/FreeBSD team presents KDE SC 4.12.5 and KDE Workspace 4.11.9! 2014-05-10 19:43:14 +00:00
bsd.ldap.mk
bsd.licenses.db.mk Correct a typo in LPPL13a permissions. 2014-05-25 19:27:18 +00:00
bsd.licenses.mk If using WRKDIRPREFIX, the licenses path will be made unusable. 2014-05-25 13:39:16 +00:00
bsd.linux-apps.mk
bsd.linux-rpm.mk Convert all :U to :tu and :L to :tl 2014-05-05 09:45:36 +00:00
bsd.local.mk
bsd.mate.mk
bsd.ocaml.mk math/ocamlgsl: Update version 0.6.0 => 1.15.1 2014-06-11 01:40:09 +00:00
bsd.octave.mk - Convert to new LIB_DEPENDS format 2014-05-03 16:20:54 +00:00
bsd.openssl.mk
bsd.options.desc.mk Fix description of NOTIFY option. It usually controls a dependency on 2014-06-01 22:04:16 +00:00
bsd.options.mk Support LIBS like LDFLAGS. 2014-06-11 14:49:59 +00:00
bsd.pbi.mk
bsd.php.mk Convert all :U to :tu and :L to :tl 2014-05-05 09:45:36 +00:00
bsd.pkgng.mk Fix quoting: make is too smart and quotes tildes, which trips up pkg. 2014-05-17 03:25:37 +00:00
bsd.port.mk Support LIBS like LDFLAGS. 2014-06-11 14:49:59 +00:00
bsd.port.options.mk
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk
bsd.python.mk Introduce a new PYTHON_CONCURRENT_INSTALL knob to support the parallel 2014-06-07 16:13:11 +00:00
bsd.qt.mk The KDE on FreeBSD team presents Qt 4.8.6. 2014-05-05 20:47:22 +00:00
bsd.ruby.mk - Force use of libreadline from ports rather than base, in order to avoid 2014-05-30 18:34:29 +00:00
bsd.sanity.mk USE_GMAKE is marked as deprecated in bsd.sanity.mk, but it is 2014-05-30 21:32:38 +00:00
bsd.sdl.mk Use new LIB_DEPENDS syntax in Mk/bsd.sdl.mk. 2014-05-02 14:45:32 +00:00
bsd.sites.mk Remove a trailing backslash 2014-06-01 09:01:42 +00:00
bsd.ssp.mk
bsd.stage.mk Let stage-qa detect .la libraries and warn that a port needs USES=libtool. 2014-05-06 11:57:22 +00:00
bsd.tex.mk Convert all :U to :tu and :L to :tl 2014-05-05 09:45:36 +00:00
bsd.wx.mk Mk/bsd.wx.mk: fixed a :U straggler 2014-05-05 12:04:01 +00:00
bsd.xfce.mk
bsd.xorg.mk When linking a library libA with a library libB using libtool, if libB.la 2014-04-23 13:25:16 +00:00