1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/Mk/Uses
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
..
ada.mk
bison.mk Fix a typo (specifed -> specified) 2013-11-19 23:24:20 +00:00
charsetfix.mk Mark all targets defines in _SEQ and .ORDER has .PHONY which they all should be 2014-01-04 00:02:08 +00:00
cmake.mk - Don't remove rpath from binaries during install [1] 2013-12-22 14:04:37 +00:00
compiler.mk Mention the new c++0x argument. 2014-01-10 22:09:07 +00:00
cran.mk Patch has been applied twice before committing 2013-12-28 12:03:18 +00:00
desktop-file-utils.mk Properly add targets to the sequence they belong to, that now makes them predictable 2014-01-04 00:26:03 +00:00
display.mk Mark some targets .PHONY 2013-11-20 07:29:08 +00:00
dos2unix.mk Properly add targets to the sequence they belong to, that now makes them predictable 2014-01-04 00:26:03 +00:00
fam.mk Add new USES=fam that will replace USE_FAM=yes 2014-01-04 23:36:50 +00:00
fmake.mk
fortran.mk Add the directory with GCC runtime libraries to LDFLAGS. This lets Clang 2013-12-20 16:33:59 +00:00
fuse.mk
gettext.mk Fix some typos and use modern Perl variables in comments. 2013-11-20 12:30:29 +00:00
gmake.mk
iconv.mk
imake.mk
kmod.mk Properly add targets to the sequence they belong to, that now makes them predictable 2014-01-04 00:26:03 +00:00
lua.mk add LUA_VER_STR to PLIST_SUB 2014-01-10 15:37:00 +00:00
motif.mk
ncurses.mk
ninja.mk Do not overwrite BUILD_DEPENDS 2014-01-08 07:23:14 +00:00
openal.mk Add new USES=openal, which will replace USE_OPENAL 2013-12-25 23:24:54 +00:00
pathfix.mk Mark all targets defines in _SEQ and .ORDER has .PHONY which they all should be 2014-01-04 00:02:08 +00:00
perl5.mk
pkgconfig.mk Fix some typos and use modern Perl variables in comments. 2013-11-20 12:30:29 +00:00
pure.mk Use USESDIR when possible 2013-11-12 15:13:04 +00:00
qmail.mk
qmake.mk In preparation for Qt 5 ports: 2014-01-06 16:16:52 +00:00
readline.mk
scons.mk
shared-mime-info.mk Properly add targets to the sequence they belong to, that now makes them predictable 2014-01-04 00:26:03 +00:00
shebangfix.mk Properly add targets to the sequence they belong to, that now makes them predictable 2014-01-04 00:26:03 +00:00
tcl.mk - Handle the case where both tcl and tk are part of USES 2014-01-10 13:44:54 +00:00
tk.mk - Handle the case where both tcl and tk are part of USES 2014-01-10 13:44:54 +00:00
twisted.mk New USES=twisted, to replace the old USE_TWISTED knob. 2013-12-08 12:04:07 +00:00
uidfix.mk Add LIBOWN and LIBGRP to uidfix 2014-01-09 00:21:10 +00:00
uniquefiles.mk New USES=uniquefiles to make files or directories unique 2014-01-11 16:52:34 +00:00
webplugin.mk Properly add targets to the sequence they belong to, that now makes them predictable 2014-01-04 00:26:03 +00:00
zenoss.mk
zope.mk