# $FreeWRT$ #- # This file is part of the FreeWRT project. FreeWRT is copyrighted # material, please see the LICENCE file in the top-level directory # or at http://www.freewrt.org/licence for details. include $(TOPDIR)/rules.mk PKG_NAME:= libdb PKG_VERSION:= 4.2.52 PKG_RELEASE:= 1 PKG_MD5SUM:= 8b5cff6eb83972afdd8e0b821703c33c PKG_SOURCE_URL:= ftp://ftp.sleepycat.com/releases/ \ http://downloads.sleepycat.com/ PKG_SOURCE:= db-$(PKG_VERSION).tar.gz WRKSRC= ${WRKDIR}/db-$(PKG_VERSION) include $(TOPDIR)/mk/package.mk $(eval $(call PKG_template,LIBDB,libdb,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(WRKBUILD)/.configured: (cd $(WRKBUILD)/build_unix ; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ CPPFLAGS="-I$(STAGING_DIR)/usr/include" \ LDFLAGS="-L$(STAGING_DIR)/usr/lib" \ ../dist/configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \ --program-prefix="" \ --program-suffix="" \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --datadir=/usr/share \ --includedir=/usr/include \ --infodir=/usr/share/info \ --libdir=/usr/lib \ --libexecdir=/usr/lib \ --localstatedir=/var \ --mandir=/usr/share/man \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --disable-nls \ --enable-largefile \ --enable-shared \ --enable-static \ --disable-java \ --enable-cxx \ --disable-posixmutexes \ --disable-uimutexes \ --disable-tcl \ --disable-rpc \ --enable-compat185 \ --enable-debug \ --enable-statistics \ --enable-replication \ --enable-cryptography \ ); touch $@ $(WRKBUILD)/.built: rm -rf $(WRKINST) mkdir -p $(WRKINST) $(MAKE) -C $(WRKBUILD)/build_unix \ DESTDIR="$(WRKINST)" install touch $@ $(IPKG_LIBDB): install -m0755 -d $(IDIR_LIBDB)/usr/lib $(CP) $(WRKINST)/usr/lib/libdb*.so $(IDIR_LIBDB)/usr/lib/ $(RSTRIP) $(IDIR_LIBDB) $(IPKG_BUILD) $(IDIR_LIBDB) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libdb.so: $(WRKBUILD)/.built mkdir -p $(STAGING_DIR)/usr/include $(CP) $(WRKINST)/usr/include/db.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib $(CP) $(WRKINST)/usr/lib/libdb*.{a,so} $(STAGING_DIR)/usr/lib/ touch $(STAGING_DIR)/usr/lib/libdb.so install-dev: $(STAGING_DIR)/usr/lib/libdb.so uninstall-dev: rm -rf $(STAGING_DIR)/usr/include/db.h rm -rf $(STAGING_DIR)/usr/lib/libdb*.{a,so} compile-targets: install-dev clean-targets: uninstall-dev