summaryrefslogtreecommitdiff
path: root/package/cxxtools/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-05-30 20:39:07 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-05-30 20:39:07 +0200
commitba3359722cbf8aa7b0ed39e1f81d1d74ec88fecd (patch)
tree10c726d162bc0ded85eb7aeacf8f246bd39ad63a /package/cxxtools/Makefile
parentbbd610f15a71b27c955175cb98392b114717fd47 (diff)
optimize ipkg package management
- generate ipkg control file from PKG_* variables - automatically install init scripts from ./files/*.init set #PKG pkgname to set the binary package - rename FWINIT -> INIT - move postinst and conffiles meta data to ./files - update the packages to the latest upstream version - remove some unready or unused package (strongswan,..) more cleanups needed after allmodconfig
Diffstat (limited to 'package/cxxtools/Makefile')
-rw-r--r--package/cxxtools/Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/package/cxxtools/Makefile b/package/cxxtools/Makefile
index 8458b7729..392581ce8 100644
--- a/package/cxxtools/Makefile
+++ b/package/cxxtools/Makefile
@@ -9,19 +9,27 @@ PKG_NAME:= cxxtools
PKG_VERSION:= 1.4.8
PKG_RELEASE:= 1
PKG_MD5SUM:= 16ce92a83beb925fa5138fc9a52d55af
-MASTER_SITES:= http://www.tntnet.org/download/
+PKG_DESCR:= a collection of general-purpose C++ classes
+PKG_SECTION:= net
+PKG_DEPENDS:= libiconv
+PKG_URL:= http://www.tntnet.org
+PKG_SITES:= http://www.tntnet.org/download/
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,CXXTOOLS,cxxtools,${PKG_VERSION}-${PKG_RELEASE}))
+ifeq (${ADK_COMPILE_CXXTOOLS_WITH_UCLIBCXX},y)
+PKG_DEPENDS+= uclibc++
+else
+PKG_DEPENDS+= libstdcxx
+endif
+
+$(eval $(call PKG_template,CXXTOOLS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
ifeq (${ADK_COMPILE_CXXTOOLS_WITH_UCLIBCXX},y)
TCXXFLAGS+= -fno-builtin -nostdinc++ -I${STAGING_DIR}/usr/include/uClibc++
TLDFLAGS+= -luClibc++ -liconv -lm -nodefaultlibs
-DEPENDS= "libgcc, uclibc++, libiconv"
else
TLDFLAGS+= -liconv -shared
-DEPENDS= "libgcc, libiconv, libstdcxx"
endif
CONFIGURE_STYLE:= gnu
@@ -39,6 +47,5 @@ endif
post-install:
${INSTALL_DIR} ${IDIR_CXXTOOLS}/usr/lib
${CP} ${WRKINST}/usr/lib/libcxxtools.so.* ${IDIR_CXXTOOLS}/usr/lib/
- echo Depends: ${DEPENDS} >>${IDIR_CXXTOOLS}/CONTROL/control
include ${TOPDIR}/mk/pkg-bottom.mk