kumquat-buildroot/package/vpnc/vpnc.mk
Samuel Martin 6a4b254082 vpnc: convert to generic-package infrastructure
[Peter: minor fixes]
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-10-08 23:14:19 +02:00

29 lines
781 B
Makefile

#############################################################
#
# vpnc
#
#############################################################
VPNC_VERSION = 0.5.3
VPNC_SITE = http://www.unix-ag.uni-kl.de/~massar/vpnc
VPNC_LICENSE = GPLv2+
VPNC_LICENSE_FILES = COPYING
VPNC_DEPENDENCIES = libgcrypt libgpg-error
VPNC_LDFLAGS = $(TARGET_LDFLAGS) -lgcrypt -lgpg-error
VPNC_CPPFLAGS = -DVERSION=\\\"$(VPNC_VERSION)\\\"
define VPNC_BUILD_CMDS
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
CPPFLAGS="$(VPNC_CPPFLAGS)" LDFLAGS="$(VPNC_LDFLAGS)"
endef
define VPNC_INSTALL_TARGET_CMDS
$(MAKE) -C $(@D) install $(TARGET_CONFIGURE_OPTS) \
CPPFLAGS="$(VPNC_CPPFLAGS)" LDFLAGS="$(VPNC_LDFLAGS)" \
DESTDIR="$(TARGET_DIR)" PREFIX=/usr
endef
$(eval $(generic-package))