1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
Commit Graph

206 Commits

Author SHA1 Message Date
John Marino
af58a9f955 Uses/ada.mk: Add support for soon-to-be-older Ada compiler
Currently the Ada framework uses a single compiler based on gcc47.
Soon this compiler will be updated to the gcc49 base, but not all Ada
ports are currently happy about this.

This update to ada.mk induces the ARGS of "47" which causes the port to
use the newly-created lang/gcc47-aux port which is currently a clone
of lang/gcc-aux.  When the latter is updated, the Ada Framework will
use it except for those ports that feature "USES+= ada:47"
2014-03-09 21:25:46 +00:00
Antoine Brodin
3ea8134a8b Make it possible to override EXTRACT_SUFX when using zip, some distfiles
(emulators/ods2reader for instance) have a .ZIP extension
2014-03-08 17:21:31 +00:00
Baptiste Daroussin
bebb0247f7 Allow multiple EXTRACT_DEPENDS
Reported by:	mat
2014-03-07 15:25:41 +00:00
Baptiste Daroussin
9fc416d031 Add USES=zip and USES=zip:infozip
To handle the zip archives from distfiles

Reviewed by:	mat, antoine
2014-03-07 15:25:02 +00:00
Baptiste Daroussin
06b21dbe65 this is makeself, not gmake.mk :) 2014-03-07 14:46:57 +00:00
Baptiste Daroussin
1efa84b8f3 Create a makeself uses to handle makeself archives 2014-03-07 14:36:03 +00:00
Tijl Coosemans
d38461c76f Further restrict the dragonfly RE so it only matches freebsd* as the first
word on a line.

PR:		ports/187208
2014-03-03 14:10:31 +00:00
Tijl Coosemans
477efa96a0 In libtool.mk, let the regexp for DragonFly BSD support match both
"freebsd*)" and "freebsd* ", and add "dragonfly*" only if it isn't there
already.

Approved by:	bapt
2014-03-02 13:14:07 +00:00
Tijl Coosemans
85fb32d611 - Some ports ship with libtool 1.5.x + "anygcc" patch. This modified
version calls "gcc" in two places.  Replace that with $CC.
- r346193 added -B${LOCALBASE}/bin in Uses/fortran.mk, just like
  compiler.mk, but libtool doesn't recognise this flag and discards it.
  Patch ltmain.sh so it passes the flag to the linker unmodified.
  This only works on libtool 2.x for now, but that's good enough to fix
  the PRs below and a linker error in math/octave on FreeBSD/i386 8.x.
  (When those ports set USES=libtool.)

PR:		ports/186946, ports/187000
Approved by:	bapt
2014-02-27 09:51:45 +00:00
Gerald Pfeifer
8b19ee567b Instead of hardcoding the version of GCC to provide Fortran support,
leverage ${GCC_DEFAULT} from ${PORTSDIR}/Mk/bsd.default-versions.mk.
2014-02-26 22:42:58 +00:00
Tijl Coosemans
ff43cef275 Add -B${LOCALBASE}/bin to LDFLAGS just like compiler.mk does. This fixes
linking problems when base system cc/c++ is used to link object files
generated by gfortran.  This affects FreeBSD/i386 8.x and all versions of
FreeBSD/ia64.

PR:		ports/186946
2014-02-26 11:44:49 +00:00
Gerald Pfeifer
4a3b55d21d Revert bogus parts of revision 345909. 2014-02-25 00:36:48 +00:00
Gerald Pfeifer
260d6903c0 Reword the documentation at the top of this file.
Sort the FPC_DEFAULT and GCC_DEFAULT entries.
2014-02-25 00:32:09 +00:00
Bryan Drewery
d41ff8cc32 Revert r345514 for now, it causes libraries to be built without .so 2014-02-21 21:43:20 +00:00
John Marino
b9737ee14f Mk/Uses/libtool.mk: Add DragonFly support to USES+= libtool
Approved by:	portmgr (bapt)
2014-02-21 17:23:53 +00:00
Baptiste Daroussin
d22a36edff libtool 1.4.2a was defining the shared extension as shrext_cmds, rename it shared_ext
like in newer libtool so the rest of USES=iconv magic just works
2014-02-21 16:47:29 +00:00
Pietro Cerutti
a3ccc1320a - Add 'tcl' and 'tk' support in SHEBANG_LANG
By default, /usr/bin/tclsh and /usr/bin/wish will be substituted with ${TCLSH}
and ${WISH}, respectively. This only works when USES contains 'tcl' or 'tk'.

Approved by:	portmgr (bapt)
2014-02-17 16:38:14 +00:00
Tijl Coosemans
564a799c71 Convert all USE_FORTRAN=yes to "USES=fortran, USE_GCC=yes". In most cases
USE_GCC=yes has been omitted though.

Remove USE_FORTRAN handling from bsd.port.mk and bsd.gcc.mk.

Minor cleanups in some ports like USE_GMAKE, NOPORTDOCS,...

Exp-run:	bdrewery
Approved by:	portmgr (bdrewery)
2014-02-16 17:15:31 +00:00
Dag-Erling Smørgrav
0d15e5b853 Add java_CMD. Although Java programs don't use shebangs, it is sometimes
useful to have a centrally located list of interpreters for other purposes.

Approved by:	portmgr (mat)
2014-02-15 09:20:53 +00:00
Tijl Coosemans
6217ea5176 - Also set link_all_deplibs_(CXX|F77|FC)=no.
- In libtool 1.3 set deplibs_check_method=pass_all like it is in later
  versions.  This avoids checking every library with file(1) to see if
  it's really a library and avoids some incorrect uses of expr(1)
  ("expr $var" instead of "expr -- $var" where $var can start with -l).
  The parsing of file(1) output is also tested during configure on
  /usr/lib/libc.so.* which doesn't exist so configure printed a big (but
  harmless) warning.

Approved by:	bapt
2014-02-14 22:29:05 +00:00
Mathieu Arnold
286e8eceee Like it was announced six months ago, remove Perl 5.12.
Sponsored by:	Absolight
2014-02-14 15:41:50 +00:00
Marcus von Appen
d839fbe3f9 - Properly prefix or suffix symlinks, which do not point to a file within the
stagedir environment, but to some file using a ${PREFIX}-based path

PR:		ports/186619
Submitted by:	mva@ (myself)
Approved by:	portmgr@ (bapt)
2014-02-11 18:37:07 +00:00
Tijl Coosemans
d373eb175c - Support libtool 1.3 which has an ltconfig script.
- Support -shrext command line option.  (Used in audio/pd.)
2014-02-09 22:00:35 +00:00
Baptiste Daroussin
11fd726a0c Add a global CMAKE_NINJA variable to set in make.conf to use ninja instead of make(1) for ports using cmake 2014-02-08 22:15:14 +00:00
Mathieu Arnold
7865eb5a5f Add a note to people still running perl 5.12 that it's going to disapear soon.
Sponsored by:	Absolight
2014-02-03 10:39:28 +00:00
Rene Ladan
106810bf8f Remove support for unstaged ports.
Approved by:	bapt
2014-01-31 18:00:55 +00:00
Mathieu Arnold
0d8977cba1 It doesn't require any args.
Sponsored by:	Absolight
2014-01-29 20:42:44 +00:00
Matthias Andree
8f55879b99 Fix typo (valide -> valid).
Approved by:	portmgr (mat)
2014-01-29 20:39:35 +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
17bcd07e7b Fix usage with older make 2014-01-28 21:31:50 +00:00
Tijl Coosemans
64a0347268 Introduce USES=libtool to replace USE_AUTOTOOLS=libtool.
Unlike USE_AUTOTOOLS=libtool which makes a port use libtool from
devel/libtool, this just patches the copy of libtool included in the
port.  This allows adding it to all ports that use libtool including
ports that build Fortran libraries and ports that use different
compilers or binutils than the ones used to build devel/libtool.

USES=libtool also changes the library naming specification similar
to what USE_GNOME=ltverhack does.  Given the libtool version info
$current:$revision:$age and $major=$current-$age the library will be
named libname.so.$major.$age.$revision instead of libname.so.$current
and libname.so.$major becomes a symlink.  Because $major increases
less frequently than $current this reduces the number of library
version bumps which means fewer rebuilds of dependent packages.

To ease the conversion from USE_AUTOTOOLS=libtool this naming spec
can be disabled with USES=libtool:oldver but the intention is that
all libtool ports eventually use the new naming.

Another change is that only libraries that are listed on the command
line will be linked into executables.  Normally libtool would link in
the entire tree of library dependencies.  This reduces the number of
direct dependencies on a given library which means fewer packages
need to be rebuilt on a library version bump.

Approved by:	portmgr (bapt)
2014-01-28 18:25:52 +00:00
Baptiste Daroussin
7c89ef9773 Do not pass DESTDIR to build target (with a syntax compatible with both fmake and bmake)
That fixes a couple of STAGEDIR references in the install files
2014-01-27 08:14:30 +00:00
Baptiste Daroussin
5d68e6a30c Add USES=desthack
This allow to pass DESTDIR through configure --prefix to ports that are
not destdir aware

Obtained from:	OpenBSD ports tree (discussed in Malta with Marc Espie)
2014-01-27 07:29:32 +00:00
Baptiste Daroussin
564119fde5 Only defines the post-stage when needed 2014-01-27 00:02:42 +00:00
Rene Ladan
be728bc0bb - kernel modules support SSP natively, so change the description
of SSP_UNSAFE [1]
- take advantage of rmdir -p to remove nested instances of KMODDIR if
  empty.  Some ports have KMODDIR=dir1/dir2

Submitted by:	antoine [1]
Approved by:	portmgr (bapt)
2014-01-24 23:08:17 +00:00
Baptiste Daroussin
8472a0736b First simple and easy change: use mordern LIB_DEPENDS 2014-01-13 07:07:18 +00:00
Chris Rees
2bbe67e0a2 Strip postgresql code out of bsd.database.mk, and introduce USES=pgsql.
New syntax:

# Depend on postgresql-client
USES=	pgsql

# Depend on postgresql-client at least 9.2
USES=	pgsql:9.2+

#Depend on postgresql-server at least 9.0
USES=		pgsql:9.0+
WANT_PGSQL=	server

Postgresql now supports DEFAULT_VERSIONS, and please note that the
version syntax now includes dots(!); i.e. before it was 90, now 9.0

Reviewed by:	ade, silence from pgsql@
2014-01-12 21:16:06 +00:00
Mathieu Arnold
79d55b4d7c Bump perl version here too. 2014-01-11 21:37:10 +00:00
Marcus von Appen
78b8b9e4ba New USES=uniquefiles to make files or directories unique
by adding a prefix or suffix to them.

Files listed in UNIQUE_PREFIX_FILES will receive the prefix
set via UNIQUE_PREFIX. The same applies to UNIQUE_SUFFIX_FILES,
but with the chosen UNIQUE_SUFFIX. UNIQUE_PREFIX and
UNIQUE_SUFFIX are set to PKGNAMEPREFIX and PKGNAMESUFFIX by
default.
The uniquefiles USES enables ports to name files in special
ways, e.g. by outlining that the port does not support X11
(-nox11). A binary named bin/foo thus can be easily renamed
to bin/foo-featureA via

USES=                 uniquefiles
UNIQUE_SUFFIX=        -featureA
UNIQUE_SUFFIX_FILES=  bin/foo

The uniquefiles USES automatically adjusts the plist at
installation time. There is no need to consider the prefix
or suffix in the pkg-plist file itself. If the original name
of the renamed file is bin/foo, this exact name should be put
into pkg-plist.

The dirs argument to USES=uniquefiles will cause certain
standard directories, such as DOCSDIR or EXAMPLESDIR to be
prepended with the UNIQUE_PREFIX. The change to the directories
will hapen prior to configuring or building the port, so that
the port Makefile as well as the port's build logic are aware
of the changed name.

Since the uniquefiles USES effectively manipulates the port's
installation and file layout, it will only be available for
stagedir-aware ports. Ports with NO_STAGE=yes will be unable
to use the uniquefiles USES.

Reviewed by:	portmgr@
Approved by:	portmgr@
2014-01-11 16:52:34 +00:00
Rene Ladan
949300ce57 Mention the new c++0x argument.
Approved by:	portmgr (bdrewery)
2014-01-10 22:09:07 +00:00
Baptiste Daroussin
24c26f4c57 add LUA_VER_STR to PLIST_SUB 2014-01-10 15:37:00 +00:00
Pietro Cerutti
3199a3d84e - Handle the case where both tcl and tk are part of USES
Approved by:	bapt (portmgr)
2014-01-10 13:44:54 +00:00
Baptiste Daroussin
7c45d8bc73 Do not overwrite existing dependencies 2014-01-10 13:37:35 +00:00
Baptiste Daroussin
47844de6b2 backout 2 changes that should not have been committed with r339348 2014-01-10 13:10:34 +00:00
Baptiste Daroussin
108b7594d8 Backout encoding of comments, it is triggering a pkgng bug with one of our ports 2014-01-10 13:07:05 +00:00
Baptiste Daroussin
3d88a06b3b Fix dependency addition 2014-01-10 13:04:43 +00:00
Baptiste Daroussin
69f00b9f3b Add a USES=lua (WIP) that only supports lua 5.2
Goal is to slowly port any lua software to lua 5.2 and then remove lua 5.1 along with bsd.lua.mk
Make version flexible and settable via DEFAULT_VERSIONS to prepare the futur days of lua
2014-01-10 08:25:49 +00:00
Baptiste Daroussin
7b6e9b4ecd Fix test 2014-01-09 07:10:02 +00:00
Baptiste Daroussin
b8a4248e6e Make gcc 4.6 is sufficient for c++0x 2014-01-09 06:56:42 +00:00
Baptiste Daroussin
9271597aee Allow to choose clang from base on 9.2 when looking for a C11 compiler
Add compiler:c++0x modeled over compiler:c++11-lang [1]

Requested by:	delphij [1]
2014-01-09 06:55:18 +00:00