1 include $(TOPDIR
)/rules.mk
6 PKG_MD5SUM
:=3b30e5dab0b1b679d2b945c3a5713636
7 PKG_SOURCE_URL
:=@SF
/tmsnc
8 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
9 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
12 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
14 include $(TOPDIR
)/package
/rules.mk
16 $(eval
$(call PKG_template
,TMSNC
,tmsnc
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
18 $(PKG_BUILD_DIR
)/.configured
:
19 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
20 ac_cv_func_malloc_0_nonnull
=yes \
21 ac_cv_func_realloc_0_nonnull
=yes \
22 $(TARGET_CONFIGURE_OPTS
) \
23 CFLAGS
="$(TARGET_CFLAGS)" \
24 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
25 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
27 --target
=$(GNU_TARGET_NAME
) \
28 --host
=$(GNU_TARGET_NAME
) \
29 --build
=$(GNU_HOST_NAME
) \
34 --libexecdir
=/usr
/lib \
36 --datadir=/usr
/share \
37 --localstatedir
=/var \
41 --with-libiconv-prefix
=$(STAGING_DIR
)/usr \
42 --with-openssl
=$(STAGING_DIR
)/usr \
43 --with-ncurses
=$(STAGING_DIR
) \
48 $(PKG_BUILD_DIR
)/.built
:
49 mkdir
-p
$(PKG_INSTALL_DIR
)
50 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
51 DESTDIR
="$(PKG_INSTALL_DIR)" \
53 rm -rf
$(PKG_INSTALL_DIR
)/usr
/man
57 mkdir
-p
$(IDIR_TMSNC
)
58 $(CP
) $(PKG_INSTALL_DIR
)/* $(IDIR_TMSNC
)/
59 $(RSTRIP
) $(IDIR_TMSNC
)
60 $(IPKG_BUILD
) $(IDIR_TMSNC
) $(PACKAGE_DIR
)