[Buildroot] [PATCH 1/3] cgic: new package

Danomi Manchego danomimanchego123 at gmail.com
Thu Jan 22 21:25:34 UTC 2015


David,

On Thu, Jan 22, 2015 at 2:11 PM, David Bender <codehero at gmail.com> wrote:
snip
> @@ -0,0 +1,36 @@
> +################################################################################
> +#
> +# cgic
> +#
> +################################################################################
> +
> +CGIC_VERSION = 2.06
> +CGIC_SOURCE = cgic206.tar.gz
> +CGIC_SITE = http://boutell.com/cgic
> +CGIC_LICENSE = Custom
> +CGIC_LICENSE_FILES = license.txt
> +
> +CGIC_ENV = AR=$(TARGET_CROSS)ar \
> +       CC=$(TARGET_CROSS)gcc \
> +       RANLIB=$(TARGET_CROSS)ranlib
> +

Could use TARGET_CONFIGURE_OPTS instead of defining your own CGIC_ENV.

> +define CGIC_BUILD_CMDS
> +       (cd $(@D); \
> +               $(CGIC_ENV) \
> +               make libcgic.a \
> +               )
> +endef

Instead of a compound cd/make, why not just use -C?
Should use $(MAKE) as well.

define CGIC_BUILD_CMDS
    $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) libcgic.a
endef

Same comment for the steps below.

Danomi -

> +
> +define CGIC_INSTALL_STAGING_CMDS
> +       (cd $(@D); \
> +               PREFIX=$(STAGING_DIR) make install \
> +               )
> +endef
> +
> +define CGIC_INSTALL_TARGET_CMDS
> +       (cd $(@D); \
> +               PREFIX=$(TARGET_DIR) make install \
> +               )
> +endef
> +
> +$(eval $(generic-package))
> --
> 1.7.8.6
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot


More information about the buildroot mailing list