summaryrefslogtreecommitdiff
path: root/package/afpfs-ng
diff options
context:
space:
mode:
Diffstat (limited to 'package/afpfs-ng')
-rw-r--r--package/afpfs-ng/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/afpfs-ng/Makefile b/package/afpfs-ng/Makefile
index 268aff1de..736065766 100644
--- a/package/afpfs-ng/Makefile
+++ b/package/afpfs-ng/Makefile
@@ -16,6 +16,9 @@ PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=afpfs-ng/}
PKG_LIBNAME:= libafpclient
PKG_OPTS:= dev
+PKG_BUILDDEP_UCLIBC:= libiconv-tiny
+PKG_BUILDDEP_UCLIBC_NG:=libiconv-tiny
+
PKG_SUBPKGS:= AFPFS_NG LIBAFPCLIENT
PKGSD_LIBAFPCLIENT:= afp client library
PKGSC_LIBAFPCLIENT:= libs/net
@@ -27,6 +30,10 @@ include $(ADK_TOPDIR)/mk/package.mk
$(eval $(call PKG_template,AFPFS_NG,afpfs-ng,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,LIBAFPCLIENT,libafpclient,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_LIBAFPCLIENT},${PKGSD_LIBAFPCLIENT},${PKGSC_LIBAFPCLIENT}))
+ifeq ($(ADK_TARGET_LIB_UCLIBC)$(ADK_TARGET_LIB_UCLIBC_NG),y)
+TARGET_LDFLAGS+= -liconv
+endif
+
AUTOTOOL_STYLE:= autoreconf
CONFIGURE_ARGS+= --enable-gcrypt
CONFIGURE_ENV+= ac_cv_func_malloc_0_nonnull=yes