- 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)
The following ports will not build with a binutils 2.22+ linker built
with standard options. This has been obvious with DPorts, but difficult
to see on FreeBSD. However, setting the ports compiler as a recent gcc
(e.g lang/gcc48) is an excellent way to detect the unspecified but needed
libraries as these recent GCC compilers use the latest binutils linkers.
These patches were tested on FreeBSD 8.4 and DragonFly 3.5
XFree86 (3 or 4) to depend to when USE_XLIB is set.
XFREE86_VERSION defaults to 3 for now, but adventurous users can
override it in /etc/make.conf. When XFREE86_VERSION=3, USE_XLIB
will add a dependency to x11/XFree86; when it is set to 4, the
dependency will be to x11/XFree86-4-libraries. When
XFREE86_VERSION=4, the PKG_IGNORE_DEPENDS and ALWAYS_BUILD_DEPENDS
hacks to avoid messing with XFree86 are turned off.
Since XFree86 version 4 includes some software that used to be
separate ports, when XFREE86_VERSION=3 the following variables are
provided:
USE_DGS LIB_DEPENDS on x11/dgs
USE_FREETYPE LIB_DEPENDS on print/freetype
USE_MESA LIB_DEPENDS on graphics/Mesa3
USE_XPM LIB_DEPENDS on graphics/xpm
When XFREE86_VERSION=4, these variables have no effect. The
LIB_DEPENDS in the tree for the above four ports have all been
converted to the USE_* counterparts. For your information, this
is the count of the number of ports:
USE_DGS 0
USE_FREETYPE 16
USE_MESA 36
USE_XPM 236
There is a new variable, XAWVER, which is set to 6 when
XFREE86_VERSION=3 and 7 when XFREE86_VERSION=4. This is also
passed to PLIST_SUB so ports that build Xaw based shared libraries
can use this variable to substitute the shlib version number.
There is also a provision of using a separate mtree file for
XFREE86_VERSION=4, but that part is not enabled yet.
Reviewed by: the ports list
Tested by: make index (XFREE86_VERSION=3 only)
(2) Add hebrew to list of valid categories.
Submitted by: nbm
games/affenspiel
- Support CC properly
***
games/battalion
- Support PREFIX properly
***
games/block
- Support CC/CFLAGS properly
***
games/blue
- Support CC/CFLAGS properly
- Add WWW: line into pkg/DESCR
New file:
patches/patch-aa
***
games/bs
- Add WWW: line into pkg/DESCR
***
games/columns
- Support CXXFLAGS properly
- Support sdl-config
***
games/empire
- Exclude GPL doc from package
- Add WWW: line into pkg/DESCR
***
games/freesweep to 0.87
- Update to version 0.87
***
games/galaxis
- Support CC properly
- Add WWW: line into pkg/DESCR
***
games/garith
- Support CC/CFLAGS properly
- Support GTK_CONFIG
***
games/gemdropx to 0.7
- Update to version 0.7
***
games/gtkballs
- Exclude GPL doc from package
- Support GTK_CONFIG
***
games/icbm3d
- Update WWW: line of pkg/DESCR
***
games/mirrormagic
- Support CC/X11BASE properly
***
games/phalanx to 22
- Update to version 22
- Add WWW: line into pkg/DESCR
***
games/spellcast
- Update MASTER_SITES and WWW: line of pkg/DESCR
- Support CFLAGS properly
- Exclude GPL doc from package
***
games/starlanes
- Support CC properly
- Exclude GPL doc from package
***
games/xdigger to 1.0.10
- Update to version 1.0.10
New file:
patches/patch-ad patches/patch-ae
***
games/xtron
- Support PREFIX properly
- Exclude GPL doc from package
***
games/xtruco
- Support CC/CFLAGS/X11BASE properly
***
games/xvier
- Support X11BASE properly
***
PR: 17741
Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
Import of new port games/battalion, a "big monster stomps around
destroying buildings and army vehicles" type game.