1 # $Id: Makefile 1146 2005-06-05 13:32:28Z nbd $
3 include $(TOPDIR
)/rules.mk
5 PKG_NAME
:=radiusclient-ng
8 PKG_MD5SUM
:=c54eb70e964bdd22dd44b39a9b4df8ca
10 PKG_SOURCE_URL
:=http
://download.berlios.de
/radiusclient-ng
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,RADIUSCLIENT_NG
,radiusclient-ng
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(eval
$(call PKG_template
,LIBRADIUSCLIENT_NG
,libradiusclient-ng
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(PKG_BUILD_DIR
)/.configured
:
23 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
24 $(TARGET_CONFIGURE_OPTS
) \
25 CFLAGS
="$(TARGET_CFLAGS)" \
26 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
27 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
28 ac_cv_func_getdomainname
=yes \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
48 $(DISABLE_LARGEFILE
) \
52 $(PKG_BUILD_DIR
)/.built
:
53 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
54 DESTDIR
=$(PKG_INSTALL_DIR
) \
55 install-exec install-data
58 $(IPKG_RADIUSCLIENT_NG
):
59 mkdir
-p
$(IDIR_RADIUSCLIENT_NG
)/usr
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
$(IDIR_RADIUSCLIENT_NG
)/usr
/
61 $(CP
) $(PKG_INSTALL_DIR
)/etc
$(IDIR_RADIUSCLIENT_NG
)/
62 $(RSTRIP
) $(IDIR_RADIUSCLIENT_NG
)/
63 $(IPKG_BUILD
) $(IDIR_RADIUSCLIENT_NG
) $(PACKAGE_DIR
)
65 $(IPKG_LIBRADIUSCLIENT_NG
):
66 mkdir
-p
$(IDIR_LIBRADIUSCLIENT_NG
)/usr
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
$(IDIR_LIBRADIUSCLIENT_NG
)/usr
/
68 $(RSTRIP
) $(IDIR_LIBRADIUSCLIENT_NG
)/
69 $(IPKG_BUILD
) $(IDIR_LIBRADIUSCLIENT_NG
) $(PACKAGE_DIR
)
71 $(STAGING_DIR
)/usr
/lib
/libradiusclient-ng.so
: $(PKG_BUILD_DIR
)/.built
72 mkdir
-p
$(STAGING_DIR
)/usr
/include
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ $(STAGING_DIR
)/usr
/
74 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libradiusclient-ng
{a
,la
,so
}* $(STAGING_DIR
)/usr
/lib
/
79 $(MAKE
) -C
$(PKG_BUILD_DIR
) clean
80 rm -f
$(PKG_BUILD_DIR
)/.built