1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
Commit Graph

101 Commits

Author SHA1 Message Date
Rene Ladan
4d17670e3d Add a new USES for kernel module ports.
USES=kmod takes no arguments and:
- adds kld to CATEGORIES
- sets SSP_UNSAFE
- sets IGNORE if the kernel sources are not found
- defines KMODDIR to /boot/modules by default, add it to
  PLIST_SUB and MAKE_ENV, and create it upon installation
- handles cross-referencing kernel modules upon installation and
  deinstallation

Approved by:	bapt
2013-10-31 11:34:46 +00:00
Rene Ladan
40f217cafe Properly guard against multiple inclusion.
Approved by:	bapt
2013-10-29 13:14:41 +00:00
Dirk Meyer
f9a95694ae - revert r331810 2013-10-28 20:17:49 +00:00
Dirk Meyer
338eecf237 - use STAGEDIR
- use OPTIONS_DEFINE
2013-10-27 22:29:46 +00:00
Sunpoet Po-Chuan Hsieh
166d24f12c - Use leading "-" to ignore exit status instead of trailing "|| ${TRUE}"
Suggested by:	mat
2013-10-27 17:35:52 +00:00
Sunpoet Po-Chuan Hsieh
e018bc8aeb - Add missing || ${TRUE} 2013-10-25 07:53:24 +00:00
Sunpoet Po-Chuan Hsieh
c69aa3b0c1 - Fix .packlist only when ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto exists
Reported by:	John Marino <freebsd.contact@marino.st>
2013-10-23 17:47:31 +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
Sunpoet Po-Chuan Hsieh
fe67692ab3 - Cosmetic change:
- Reorder knobs
  - Indent using tabstop=4
2013-10-20 08:29:15 +00:00
Sunpoet Po-Chuan Hsieh
1ffcb16a96 - Add staging support for USE_PERL5=modbuild*
- Remove STAGEDIR prefix from .packlist
2013-10-19 19:11:19 +00:00
Rusmir Dusko
cda8b376c1 - New Uses pure.mk
- Provide support for Pure Programming Language based projects

PR:		ports/179401
Submitted by:	nemysis (self)
Approved by:	pawel (mentor), bapt (portmgr)
2013-10-18 22:12:37 +00:00
Rene Ladan
38ea0176b6 Document "openmp" as a valid argument.
Approved by:	portmgr (bapt)
2013-10-17 09:50:51 +00:00
Olli Hauer
db533faaee - use new LIB_DEPENDS notation in subversion ports
- use new LIB_DEPENDS notation in Mk/Uses to fix static svn building [1]

Approved by:	portmgr (babt@) [1]
2013-10-14 19:42:48 +00:00
John Marino
aed7d5fbc5 Mk/Uses/compiler.mk: Ensure COMPILER_TYPE can only be clang or gcc
The compiler.mk comments and code state that COMPILER_TYPE can only be
of the value "clang" or "gcc".  However, the code that determines this
allows for a possible undefined third state (empty string).  BMake
will emit a lot of errors about badly formatted conditionals if
COMPILER_TYPE is empty.

Since, by definition, if the COMPILER_TYPE is not clang, it must be
gcc, so skip the conditional gcc check and just set it.  The entire
file must be updated if support for additional compilers is desired.

This bug was discovered because the gcc detection code failed to
identify the DragonFly base compiler (GCC 4.7.3) as gcc.

Approved by:	portmgr (bapt)
2013-10-14 16:46:20 +00:00
Baptiste Daroussin
0e0cee5222 Always use a recent version of gcc in case a port needs openmp support
Submitted by:	gerald
2013-10-12 05:42:26 +00:00
Max Brazhnikov
d2562e58b7 Pass CONFIGURE_ENV to qmake 2013-10-09 09:40:41 +00:00
Baptiste Daroussin
5c2deef55c Add a new argument openmp to make sure that only gcc is used (for now) is the port requires openmp
Requested by:	brooks
2013-10-09 05:52:45 +00:00
Baptiste Daroussin
60a5c6d442 Really really commit the right version
Pointyhat to:	bapt
2013-10-09 05:45:00 +00:00
Bryan Drewery
53718280e8 Revert r329829 to restore compiler.mk 2013-10-09 00:46:21 +00:00
Baptiste Daroussin
e641a63303 Actually commit the right version 2013-10-08 19:41:09 +00:00
Baptiste Daroussin
91bfd4296d New USES=compiler
Supported arguments are:
  - c++11-lang: the port needs a c++11 aware compiler what ever standard
  library it uses, implies features
  - c++11-lib: the port needs a c++11 standard library, implies features
  - c11: the ports needs a c11 aware compiler implies features
  - features: this will create a COMPILER_FEATURES variable which contains
  the list of features ${CC} do support, implies env.
  - env: the COMPILER_TYPE will be set to either gcc or clang.

  By default the uses will try to use clang33 from ports when nothing in
  base is relevant except if the user explicitly defines
  FAVORITE_COMPILER=gcc in his make.conf

Please note that testing tinderbox prior to version: 4.0.1_1 is not able to
properly figure out the dependencies implied by this USES.
2013-10-08 18:55:37 +00:00
Max Brazhnikov
364f20a0c0 - Add new USES= qmake (with staging support)
Approved by:	portmgr (bapt)
2013-10-08 16:02:21 +00:00
Baptiste Daroussin
6bfdb3d229 Sometimes scons do expect DESTDIR being in lowercase 2013-10-03 06:41:54 +00:00
Baptiste Daroussin
d7f9cdb38e Introduce the new "scons" USES. The goal is to replace the old bsd.scons.mk
Instead of redifining the building target, let's just reuse the existing ones.
Bonus, MAKE_JOBS is now respected
2013-10-03 06:25:13 +00:00
Koop Mast
dd15126ccc Don't exec programs in post-install when STAGE mode is enabled.
Noticed by:	antoine (on #poudriere)
Reviewed by:	bapt@
2013-09-29 17:17:57 +00:00
Pietro Cerutti
3b9dcc5e6d - USES+=tcl and USES+=tk
Add support for specifying multiple versions in arguments, e.g.,
  USES+=tcl:84,85. The picked version is the highest available one.

  This basically brings in the last functionality that was left out in the
  switch from USE_TCL to USES+=tcl, namely TCL_INVALID_VER. To specify an
  invalid version, just list the valid ones.

Reviewed by:	bdrewery (portmgr)
2013-09-27 12:53:20 +00:00
Sunpoet Po-Chuan Hsieh
5d3ab38411 - Minor cleanup for PERL5_MAN* and P5MAN*
- perl.mk changes MAN3PREFIX only therefore we keep *MAN3 setting
  - PERL5_MAN[124-9] point to non-existence directories

Submitted by:	sunpoet
Reviewed by:	az
2013-09-26 15:52:38 +00:00
Pietro Cerutti
300da08eee - Fix handling of minimum versions (e.g., USES+=tk:84+)
Approved by:	portmgr (bapt)
2013-09-24 15:14:30 +00:00
Baptiste Daroussin
18f59d0843 Fix typo
Reported by:	ak
2013-09-24 13:23:15 +00:00
Baptiste Daroussin
f4d299ad64 Overwrite BINOWN/SHAREOWN/WWWOWN to allow all our INSTALL_* macros to properly work as a user 2013-09-24 12:47:31 +00:00
Baptiste Daroussin
898b5242b0 In preparation for package as user introduce a new uidfix, which will setup anything
need for a build system to allow staging as a user.
For now only setup for port using bsd.prog.mk is available
2013-09-24 10:00:08 +00:00
Sunpoet Po-Chuan Hsieh
2861467a4a - Remove trailing slash
Approved by:	bapt (via IRC)
2013-09-23 20:29:11 +00:00
Baptiste Daroussin
b7af6146d2 Introduce a new MANDIRS macros to make the compress-man determine where the makefiles should be found
Previous implementation was based on etc/man.d which doesn't exists in FreeBSD 8.
By default MANDIRS is ${MANPREFIX}/man. if a port adds USES=perl5 then the perl default locations is added

Reviewed by:	bdrewery
2013-09-23 20:07:18 +00:00
Baptiste Daroussin
611a27dced Simplify notation of perl man page path in pkg-plist when staged
Submitted by:	az
2013-09-23 15:44:20 +00:00
Ruslan Makhmatkhanov
dc659a215b - add new USES target: zope, and convert the tree to it
- old USE_ZOPE knob support was removed from bsd.python.mk
- update CHANGES and bsd.sanity.mk accordingly
- add ZOPE options knob and use it in lang/py-mx-base

The work is done by Marcus von Appen, but any problems are mine.

Submitted by:	mva (python ML)
2013-09-23 13:42:48 +00:00
Baptiste Daroussin
785d744f1f Add a new PERL_MANDIR substitution pattern to PLIST_SUB to easier staging p5- ports
Approved by:	perl (az)
2013-09-23 05:34:18 +00:00
Pietro Cerutti
be6d645e4f - Fix on < 10 2013-09-19 15:22:39 +00:00
Pietro Cerutti
815711e2d4 - Correct typo
Spotted by:	thierry
2013-09-19 14:18:29 +00:00
Pietro Cerutti
4bf4f3cb3a - Correct another typo 2013-09-19 13:42:38 +00:00
Pietro Cerutti
3e93feb586 - Fix typo
Spotted by:	antoine
2013-09-19 13:38:01 +00:00
Pietro Cerutti
c8209f84b4 - Implement USES+=tcl and USES+=tk
- Use bsd.default-versions.mk to specify the default Tcl/Tk version (8.6)
- Add warnings about the now deprecated use of USE_TCL, USE_TK, ...

  Notes:

  * USES+=tcl and USES+=tk take the following optional arguments

    - either a version in the form of XY or XY+, or 'wrapper' to depend on
      lang/tcl-wrapper or x11-toolkits/tk-wrapper

    - either 'build' (bring in build depend) or 'run' (bring in run depend)

  * it is an error to specify both 'tcl' and 'tk' in USES.

  * The functionality currently implemented via INVALID_TCL_VER and
    INVALID_TK_VER is not yet available.

Approved by:	bapt (portmgr)
2013-09-19 09:49:52 +00:00
Baptiste Daroussin
377fc0342d Introduce the one-true-way to handle multi version ports
This defines a new macros for end users!
DEFAULT_VERSIONS.
This macros is used to end-users to define what version they want to be
the default version for the whole ports tree (for ports allowing that)

Syntax is the following:
DEFAULT_VERSIONS=	perl5=5.18 ruby=2.0

Swith bsd.ruby.mk to use it[1], switch Uses/perl5.mk to use it[2]

If you are maintaining settable multi version port, please change it so
it uses DEFAULT_VERSIONS.

Reviewed by:	ruby (swills) [1], perl (az) [2]
Approved by:	ruby (swills) [1], perl (az) [2]
2013-09-19 08:16:43 +00:00
John Marino
74db0bce11 Mk/Uses/readline.mk: Restore functionality for DragonFly
For minimal breakage reasons, DragonFly has OSVERSION set to the
equivalent of FreeBSD 99.  When the readline compatibility for FreeBSD
10 was revoked recently, it broke a lot of dports.

Restore the default to how it was before on DragonFly only to restore
those ports using OPSYS.

Approved by:	portmgr (bapt)
2013-09-15 22:15:58 +00:00
Baptiste Daroussin
c79883b220 readline won't be removed in time for 10.0, let 10.0 use readline from base.
PR:		ports/172079
Submitted by:	Jan Beich <jbeich@tormail.org>
2013-09-14 10:59:34 +00:00
Boris Samorodov
7046a55fd8 Introduce variable ICONV_PREFIX at Mk/Uses/iconv.mk. The default for
pre 100043 is ${LOCALBASE} and /usr otherwise. Convert all ports to
new variable usage.

Approved by:	portmgr (bapt, implicit)
2013-09-07 19:49:41 +00:00
Boris Samorodov
54e44467d7 . introduce ICONV_CONFIGURE_BASE variable at Mk/Uses/iconv.mk. It's value is
"--with-libiconv=${LOCALBASE}" at systems pre OSVERSION 100043 and "" (null)
  otherwise;
. convert all ports which has CONFIGURE_ARGS=--with-libiconv=${LOCALBASE}.

Approved by:	portmgr (bapt, implicit)
2013-09-05 20:18:30 +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
Andrej Zverev
28a6974148 - Fix things after recent modbuildtiny commit
Reviewed by:	bapt@
Kudos to: 	bapt@
2013-09-04 16:54:39 +00:00
Mathieu Arnold
687a70b642 * Add devel/p5-Module-Build-Tiny support to USE_PERL5 with modbuildtiny.
* Add doc for the configure, modbuild and modbuildtiny options.

Reviewed by:	az, bapt
Approved by:	az, bapt
2013-09-04 13:11:02 +00:00
Tijl Coosemans
f86cad0ce3 Two imake related changes:
1) Move -a from XMKMF command variable to a new XMKMF_ARGS variable.
   For ports that don't need -a introduce USES=imake:notall.
   This way ports no longer have to redefine XMKMF.

2) xmkmf -a runs imake with the flags in IMAKECPPFLAGS as extra arguments
   to set CPP, CC and CXX.  This creates the top Makefile, and then xmkmf
   runs make Makefiles.  This Makefiles target runs imake for each
   subdirectory but these imake invocations did not have the flags from
   IMAKECPPFLAGS so the resulting makefiles used the wrong C preprocessor
   when clang is used (/usr/bin/cpp instead of /usr/local/bin/tradcpp).
   Instead of letting xmkmf pass IMAKECPPFLAGS from the environment to
   imake let imake handle IMAKECPPFLAGS itself just like it handles
   IMAKEINCLUDE.

   This exposed configure errors in x11-clocks/mouseclock and x11-wm/fvwm.

Approved by:	portmgr (bapt)
2013-09-02 13:26:34 +00:00