anudeep26 / rudix

Automatically exported from code.google.com/p/rudix
Other
0 stars 0 forks source link

Buildsytem: Customization for the final name of *.pkg and *.dmg components #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Implemented in Revision: 201df4a576

Original comment by ruda.moura@gmail.com on 11 Mar 2011 at 4:56