Commit graph

766 commits

Author SHA1 Message Date
Bryan Drewery
63f96859ce - Convert USE_QMAIL_RUN, USE_QMAIL_BUILD and WANT_QMAIL into USES feature
bapt contributed to the qmail.mk as well
- Trim headers

USES= qmail:run will add qmail into RUN_DEPENDS
USES= qmail:build will add qmail into BUILD_DEPENDS
USES= qmail[:both] will add qmail into both RUN and BUILD DEPENDS
USES= qmail:vars will set QMAIL_PREFIX

With hat:	portmgr
2013-03-15 22:03:42 +00:00
Baptiste Daroussin
911c27a74b r314316 loads the features a bit too late it should be done prior to the path sanity checking
Reported by:	bdrewery
2013-03-15 16:45:47 +00:00
Baptiste Daroussin
be3b808c2a Load features at the end of pre.mk instead of the begonning of post.mk
This allows to test/manipulates variables from USES between .pre.mk and .post.mk

Having it loaded in the end of pre.mk still allows to set USES inside bsd.*.mk
and after bsd.port.options.mk.

The only limitation is that USES set after bsd.port.pre.mk will not be taken loaded.
Which is the same behaviour as for USE_*.

Requested by:	bdrewery
Exp-run by:	miwi
2013-03-15 16:37:31 +00:00
Baptiste Daroussin
5285b348d3 Fix info files with pkgng.
This bring the first Keyword into the ports tree.
Keywords are pkgng custom plist keyword definition.

info.yaml defines a new @info keyword usable only with pkgng which will:
- add the info agument to the file list
- set a post-installation execution script
- set a post-deinstallation execution script

in keyword definition the script uses the same format (%f, %F, %D, ...) as @exec/@unexec does
it just add a new one: %@ which correspond the the keyword argument line.

Exp-run:	miwi
2013-03-14 10:11:19 +00:00
Bryan Drewery
f7fde92337 - Fix fetch-urlall-list fetch-url-list fetch-url-list-int targets
incorrectly looking at distinfo data. These were copied from
  do-fetch at some point, but they do not actually run FETCH_CMD,
  so the DIR and CKSIZE vars are not needed.

PR:		ports/175717
Submitted by:	amdmi3
With hat:	portmgr
2013-03-13 02:20:47 +00:00
Bryan Drewery
cec5e7a589 - Make the config sanity check more clear that it defaults
to [Y]es

PR:		ports/171083
Submitted by:	rakuco
With hat:	portmgr
2013-03-13 00:31:27 +00:00
Baptiste Daroussin
7d20ef9811 Get rid of XAWVER option in bsd.port.mk it does not need to be specified there also remove a useless global XAWVER PLIST_SUB 2013-03-09 21:43:02 +00:00
Baptiste Daroussin
f4285add25 Remove some dead variables 2013-03-09 21:23:54 +00:00
Baptiste Daroussin
7372ce16d9 Remove old USE_BISON related code from bsd.port.mk 2013-03-08 11:34:33 +00:00
Martin Wilke
0f92912af4 - Add new knob USE_LHA [1]
- Convert few ports to USE_LHA [1]
- Revert r303619 since CONFIGURE_ENV already sets CPPFLAGS and LDFLAGS by default. [2]

PR:		176187 [1]
		174790 [2]
Submitted by:	Christoph Mallon <christoph.mallon@gmx.de> [1]
		Gerald Pfeifer <gerald@pfeifer.com> [2]
2013-03-07 17:08:13 +00:00
Baptiste Daroussin
da12e6723d Convert USE_FUSE macros into USES feature.
While here trim headers
Convert some USE_GNOME= gnomehack -> USES= pathfix
2013-03-06 16:52:02 +00:00
Baptiste Daroussin
05b55e937f New USES macros that loads "features" on demand.
First feature implemented: pathfix which will lookup in WRKSRC for Makefile.in
and configure and fix common path that doesn't fit with FreeBSD hier(7)

This is an extract of bsd.gnome.mk's gnomehack to avoid porters to have to load
the full bsd.gnome.mk just for this feature

More features to come...
2013-03-06 14:28:57 +00:00
Baptiste Daroussin
f05b0c8f66 Do not append options to pkg-plist when using pkgng given that this is already
appended to +MANIFEST in bsd.pkgng.mk

Submitted by:	bdrewery
2013-03-06 07:04:45 +00:00
Martin Wilke
20490dc7a0 - Drop obsoleted USE_QT_VER=4 [1]
- Add auditdistd user to the blacklist [2]

PR:		171797 [1]
		176276 [2]
Submitted by:	makc@ [1]
		"John W. O'Brien" <john@saltant.com> [2]
2013-03-03 06:53:34 +00:00
Max Brazhnikov
537fa0cbd2 Update DESKTOP_ENTRIES framework:
- update list of categories to the version 1.1 of Desktop Menu Specification
- require Icon field to follow Desktop Entry Specification (the field must be
  absolute path or icon name if icon theme is used)
- require main category to be set (listed in DESKTOP_CATEGORIES_MAIN)
- remove deprecated Encoding key
- allow StartupNotify field to be empty string
- be less strict when generating filename for desktop entry (to improve
  readability when full path to executable is used)
- use port ${COMMENT} if comment field is not set
- add GenericName key (comment field will be used)

PR:		ports/175102
Approved by:	portmgr (bapt)
Tested by:	mini exp-run (bapt)
2013-01-23 14:32:20 +00:00
Florian Smeets
d26530b713 - introduce a USE_FUSE macro
- convert all fuse ports to use the new macro

The macro makes sure sysutils/fusefs-libs gets installed and depending on
fuse being in base or not it installs sysutils/fusefs-kmod.

Approved by:	portmgr (bapt)
2012-12-14 15:47:00 +00:00
Koop Mast
1dc6a664e3 Rename USE_GSTREAMER08 to USE_GSTREAMER1. The old one is a left over from
when bsd.gstreamer.mk had support for the 0.8 Gstreamer series. The new macro
will be used for the Gstreamer 1.x framework. This isn't completly finished yet
but this allows me to drop bsd.port.mk from my patchset.

Approved by:	portmgr (bapt)
2012-12-10 12:46:43 +00:00
Baptiste Daroussin
34d5249610 Extend the options framework providing 2 new macros:
OPTIONS_RADIO: a more user friendly way to allow selecting only 0 or 1 options
               among a list of options
OPTIONS_GROUP: this macros should be used to group options by theme allowing the
               user to select 0 or N options among a list of options

With hat:	portmgr
Reviewed by:	beat
2012-12-10 10:14:05 +00:00
Baptiste Daroussin
0adf8ae323 PKG_DEVEL is not there yet, this shouldn't have been committed, sorry
Feature safe:	yes
2012-10-26 08:16:17 +00:00
Baptiste Daroussin
e32eca5754 Remove GOGO option and gogo run dependencies along with gogo mp3 encoder itself
Feature safe:	yes
2012-10-26 06:33:41 +00:00
Beat Gaetzi
b7139dede3 - Only add GH to MASTER_SITES if not already there [1]
- Allow WRKSRC to be overridden when using USE_GITHUB [2]

PR:		ports/171644 [1], ports/171688 [2]
Submitted by:	bdrewery
Reviewed by:	gahr
Tested by:	Exp-run on pointyhat
2012-10-10 18:20:21 +00:00
Baptiste Daroussin
3fe25b5e4e Add a part forgotten in previous commit concerning switching to pkgng 2012-10-10 13:12:17 +00:00
Baptiste Daroussin
39055bef9c Switching current to use pkgng by default
Adding WITHOUT_PKGNG for people not willing to migrate to pkgng now

Hat:		portmgr
Non-regression:	beat
Exp-runs:	beat
2012-10-10 08:40:21 +00:00
Baptiste Daroussin
3cb75a18a9 - add STAT to bsd.commands.mk
- use ${STAT} -f \"%z\" in make makesum to calculate size
- speed up USE_PKGCONFIG by using a more efficient syntax [1]
  and test in the order it is most expected to appear: "yes/build"
  first, "both" second, "run being the last one.

Reported by:	dougb [1]
Exp-Run by:	beat
2012-10-09 17:18:43 +00:00
Bryan Drewery
7a7575288a - Revert ports/171672 patch to 'do-package' due
to reported problems with defining PKG_SUFX,
  and leaving behind tmp files.

PR:		ports/171672
Reported by:	poyopoyo@puripuri.plala.or.jp
Approved by:	portmgr (beat, implicit)
2012-09-21 13:29:20 +00:00
Beat Gaetzi
87ed9dc1c6 - Remove ftp fallback as all supported FreeBSD versions provide fetch [1]
- Don't call 'pre-config' twice in the 'config-conditional' target [2]
- Clean up pkgng metadir so that the 'clean' target can be executed without
  root permissions if the build was done with a non-root user. [3]
- Make 'do-package' atomic while creating the pkg file [4]

PR:		ports/171161 [2], ports/171329 [3], ports/171672 [4]
Submitted by:	bapt [1], A.J. Kehoe IV (Nanoman) <m7k60pkr@nanoman.ca> [2],
Submitted by:	bdrewery [3, 4]
Reported by:	Kimmo Paasiala <kpaasial@gmail.com> [3]
Tested by:	Exp-run on pointyhat, bapt (pkgng changes)
2012-09-20 19:51:30 +00:00
Bryan Drewery
adcf192e54 - Fix install when PACKAGE_BUILDING is not defined
Approved by:	portmgr (tabthorpe)
Approved by:	eadler (mentor)
2012-09-07 00:05:58 +00:00
Mark Linimon
bfb3226436 - Remove obsolete USE_XLIB and MACHINE_ARCH definitions [1], [4]
- Include top-level Makefile.inc from correct directory [2]

 - Add new target add-plist-buildinfo for package build details [3]

PR:		ports/152871 [1]
PR:		ports/164207 [2]
PR:		ports/162397 [3]
PR:		ports/167677 [4]

Submitted by:	eadler [1], [4]; glarkin [2]; jhelfman@experts-exchange.com [3]
2012-09-06 20:59:27 +00:00
Mark Linimon
c0d91f37b3 Add a "make pbi" and "make clean-pbi" target to the ports build system.
PR:		ports/167825
Submitted by:	kmoore
2012-09-05 04:32:25 +00:00
Mark Linimon
2650f95f80 - Add hast to USERS_BLACKLIST [1].
- Add USE_READLINE knob [2].
 - Fix typo [3].

PR:	ports/157128 [1]
PR:	ports/162995 [2]
PR:	ports/165125 [3]

Submitted by: Ruslan Mahmatkhanov <cvs-src@yandex.ru> [1],
	fjoe [2], "Conrad J. Sabatier" <conrads@cox.net> [3]
2012-09-03 20:47:01 +00:00
Beat Gaetzi
c7c279fc67 - Partially back out r303381: readlink -f is not available on all
supported FreeBSD versions.

Reported by:	gahr@, tota@
2012-09-01 22:21:57 +00:00
Beat Gaetzi
68384983e2 - Add ccache support for building ports. [1]
- Fix CONFIGURE_FAIL_MESSAGE to be pkgng-aware. [2]
- Resolve symlinks in PREFIX on deinstall. [3]
- Introduce CLEAN_FETCH_ENV variable to disable package dependency
  in fetch target for mass fetching. [4]

PR:		ports/169579 [1], ports/170552 [2],
		ports/170784 [3], ports/170796 [4]
Submitted by:	bdrewery@ [1], crees@ [2], gahr@ [3], ohauer@ [4]
Tested on:	pointyhat
2012-08-30 15:31:25 +00:00
Beat Gaetzi
2e3297bade - Record the selected OPTIONS from the port build into the resulting
+CONTENTS file.

PR:		ports/170469
Submitted by:	bdrewery@
Tested by:	exp-run on pointyhat
2012-08-21 17:29:11 +00:00
Koop Mast
5aa7246575 Switch from libglut to freeglut and retire libglut. Libglut hasn't been
developed in years and has been dropped from the MESA 8.0 distribution.
Freeglut is a rewrite of glut and is actively developed and is used by
many linux distributions instead of libglut.

Bump all ports that directly depend on libglut because of the shlib version
change.

There are some extra items in this patch.

*) Because freeglut doesn't have the same dependancies as libglut, some ports
	need extra dependencies added to USE_XORG to make them build.
*) Mark graphics/f90gl broken, f90gl depends on a header that is only shipped
	with libglut.
*) Remove option for libglut/freeglut selection in games/cake, only freeglut
	remains now.
*) While here fix a png related build issue games/vegastrike.

Thanks to miwi for running the exp-run.

Approved by:	portmgr (miwi)

Collaboration with:	zeising@
Obtained from:	xorg-dev staging area.
2012-08-04 22:52:02 +00:00
Erwin Lansing
0c9a3c5e53 Fix typo
Submitted by:	emax
2012-07-31 18:41:21 +00:00
Baptiste Daroussin
9346b215f0 new devel/pkgconf added to replace devel/pkg-config. new version of pkg-config
are no more self hosting so we are stuck with 0.25 version while pkgconf provide
the same set of features as 0.27 and a compatible frontend. A symlink to
pkg-config has been added for convenience and compatibility

This also introduces a new macro to use pkgconf in your ports:
USE_PKGCONFIG

it can take the following arguments:
 - yes (meaning build only dep)
 - build (meaning build only dep)
 - run (meaning run only dep)
 - both (meaning run and build dep)

From now USE_GNOME= pkgconfig is deprecated in favour of USE_PKGCONFIG
The old gnome macro has been modified to use pkgconf but still the sameway: run
and build dep to avoid large breakage.

While here fix some ports relying on pkg-config but not specifying it, fix some
ports broken because testing wrong .pc files, and fix ports using pkg-config
--version to determine pkg-config version instead of
pkg-config --modversion pkg-config like recommanded by pkg-config

With Hat:	portmgr
Exp-runs by:	bapt (pointhat-west), beat (pointyhat)
2012-07-26 05:40:22 +00:00
Baptiste Daroussin
9bc22bc847 Fix config-conditional
PR:		Gareth Hopkins <gabbawp@gmail.com> (via ports@)
Tested by:	jgh
2012-07-17 16:20:06 +00:00
Baptiste Daroussin
45b04c6514 compare options loading from /var/db/port/options and make.conf against the
complete list of options.
COMPLETE_OPTIONS_LIST being OPTIONS_DEFINE + all the OPTIONS_SINGLE_* + all the
OPTIONS_MULTI_*
2012-07-16 22:36:44 +00:00
Baptiste Daroussin
2bf8210563 - Document new options framework in bsd.options.mk
- new OPTIONS_DEFINE_${ARCH} and OPTIONS_DEFAULT_${ARCH} to define and activate
  options per arches.
- No more append to PORT_OPTIONS options that are not in OPTIONS_DEFINE, (in the
  expection of DOCS, NLS, EXAMPLES for compatibility)
2012-07-16 11:38:36 +00:00
Alberto Villa
f84dc6affb - Remove mention to USE_QT_VER=4 in comments. USE_QT4 has to be used
instead.

With hat on:	kde
Approved by:	portmgr (bapt)
2012-07-01 20:57:48 +00:00
Sunpoet Po-Chuan Hsieh
83b5f64d38 - Revert accidental commit 2012-06-26 13:54:59 +00:00
Sunpoet Po-Chuan Hsieh
8ae901c16d - Add shared TLS description 2012-06-26 13:42:52 +00:00
Baptiste Daroussin
87d793fa02 Fix sanity-config error when using WRKDIRPREFIX [1]
While apply the same fix to fetch-urlall-list and fetch-url-list [2]

PR:		ports/169039 [1]
Reported by:	avg@ [1], Jan Beich <jbeich@tormail.org> [2]
exp-run:	pointyhat-west (bapt)
2012-06-15 12:04:52 +00:00
Martin Wilke
19500a789f - Add optionsNG make config sanity check support
PR:		168480
Submitted by:	"Bryan Drewery" <bryan@shatow.net>
Reviewed by:	bapt
2012-06-09 12:19:12 +00:00
Ryan Steinmetz
73693352c5 Fix condition where _FILE_COMPLETE_OPTIONS_LIST is not defined (introduced by previous commit)
Approved by:	portmgr (tabthorpe)
2012-06-08 19:52:39 +00:00
Baptiste Daroussin
1bbd68d292 Fix make config-conditional with optionsng
Reported by:	ru@
2012-06-08 18:44:17 +00:00
Baptiste Daroussin
2641586787 Silent rmdir after removing the optionfile, the directory might contains other
informations like distfiles (added by portmaster)

While here only check if the optionsfile is there before removing it.

PR:		ports/164422
Submitted by:	Greg Larkin <glarkin@freebsd.org>
2012-06-06 14:23:17 +00:00
Baptiste Daroussin
ac505c31cb Fix sanity checkong for "multi" options 2012-05-31 14:27:23 +00:00
Baptiste Daroussin
633eef1b21 Allow make config to run if description is empty 2012-05-31 07:35:44 +00:00
Baptiste Daroussin
b5ddd364f1 Stop spawning dialog inside its own sh process
This allow us to use normal make quoting when preparing the command line for the
make config dialog
2012-05-31 05:04:04 +00:00