Create the special attribute $DISTNAME in Rules.mk to allow override the
current name of the package (set on $NAME) to a different one. This special
attribute shall be used in 'make pkg' and 'make dmg'.
The initial motivation is to allow automatization for creating static-only
packages.
Here's a example:
Suppose I want to create a static-only version of libevent, the $NAME of the
package is libevent, but I want to setup up $DISTNAME to static-$(NAME), which
expands to static-libevent when I compile it with 'make STATIC_ONLY=1 dmg'.
The Makefile will contain:
{{{
ifdef STATIC_ONLY
CONFIG_OPTS= --enable-static --disable-shared
DISTNAME= static-$(NAME)
endif
}}}
So after the above command, libevent will be created as static-libevent.pkg and
the dmg also includes the *static-* portion. Note that the identification of
the package (--id) will be change to $(VENDOR).pkg.$(DISTNAME) to avoid clash.
This special attribute should not cause impact in previous receipts defined in
Makefiles.
Original issue reported on code.google.com by ruda.moura@gmail.com on 9 Mar 2011 at 2:35
Original issue reported on code.google.com by
ruda.moura@gmail.com
on 9 Mar 2011 at 2:35