summaryrefslogtreecommitdiffstats
path: root/package/vpnc/vpnc.mk
blob: 4d3e7b68a3aadf6e335932b7a416c194c34698f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
################################################################################
#
# 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))