[Buildroot] [PATCH 5/6] vpnc: convert to generic-package infrastructure

Peter Korsgaard jacmet at uclibc.org
Mon Oct 8 21:14:12 UTC 2012


>>>>> "Samuel" == Samuel Martin <s.martin49 at gmail.com> writes:

 Samuel> Signed-off-by: Samuel Martin <s.martin49 at gmail.com>
 Samuel>  create mode 100644 package/vpnc/vpnc-0.5.3-fix-build.patch

 Samuel> +VPNC_VERSION       = 0.5.3
 Samuel> +VPNC_SITE          = http://www.unix-ag.uni-kl.de/~massar/vpnc
 Samuel> +VPNC_LICENSE       = GPLv2+
 Samuel> +VPNC_LICENSE_FILES = COPYING
 Samuel> +
 Samuel> +VPNC_DEPENDENCIES  = libgcrypt libgpg-error
 Samuel> +
 Samuel> +VPNC_LDFLAGS  = $(TARGET_LDFLAGS) -lgcrypt -lgpg-error
 Samuel> +VPNC_CPPFLAGS = -DVERSION=\\\"$(VPNC_VERSION)\\\"
 Samuel> +
 Samuel> +define VPNC_BUILD_CMDS
 Samuel> +	$(MAKE)	-C $(@D) $(TARGET_CONFIGURE_OPTS) CC="$(TARGET_CC)" \
 Samuel> +		CPPFLAGS="$(VPNC_CPPFLAGS)" CFLAGS="$(TARGET_CFLAGS)" \
 Samuel> +		LDFLAGS="$(VPNC_LDFLAGS)"

CC and CFLAGS are included in TARGET_CONFIGURE_OPTS, so those can be
dropped.

 Samuel> +endef
 Samuel> +
 Samuel> +define VPNC_INSTALL_TARGET_CMDS
 Samuel> +	$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(@D)/vpnc
 Samuel> +	$(MAKE) -C $(@D) install $(TARGET_CONFIGURE_OPTS) \
 Samuel> +		CPPFLAGS="$(VPNC_CPPFLAGS)" CFLAGS="$(TARGET_CFLAGS)" \
 Samuel> +		LDFLAGS="$(VPNC_LDFLAGS)" DESTDIR="$(TARGET_DIR)" PREFIX=/usr
 Samuel> +endef

The explicit STRIPCMD shouldn't be used, and CFLAGS can again be
dropped.

Committed with those fixes, thanks.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list