diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-10-09 01:24:28 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-10-09 01:24:28 +0000 |
commit | 73f7be82904f487d167493e76b415fbe5b5f8c5a (patch) | |
tree | 8d9acaf4414892fad533fd92ebfc7e65a2ad2785 /package/berkeleydb | |
parent | 0b5ad783691ef6fa1285c8d7858a51c425a8b38d (diff) |
Remove the old 'make' directory, and populate the new 'package'
directory.
Diffstat (limited to 'package/berkeleydb')
-rw-r--r-- | package/berkeleydb/berkeleydb.mk | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/package/berkeleydb/berkeleydb.mk b/package/berkeleydb/berkeleydb.mk new file mode 100644 index 000000000..5b4105a8e --- /dev/null +++ b/package/berkeleydb/berkeleydb.mk @@ -0,0 +1,94 @@ +############################################################# +# +# berkeley db +# +############################################################# +DB_SITE:=http://www.sleepycat.com/update/snapshot +DB_SOURCE:=db-4.1.25.NC.tar.gz +DB_DIR:=$(BUILD_DIR)/db-4.1.25.NC + + +$(DL_DIR)/$(DB_SOURCE): + $(WGET) -P $(DL_DIR) $(DB_SITE)/$(DB_SOURCE) + +berkeleydb-source: $(DL_DIR)/$(DB_SOURCE) + +$(DB_DIR)/.dist: $(DL_DIR)/$(DB_SOURCE) + zcat $(DL_DIR)/$(DB_SOURCE) | tar -C $(BUILD_DIR) -xvf - + touch $(DB_DIR)/.dist + +$(DB_DIR)/.configured: $(DB_DIR)/.dist + (cd $(DB_DIR)/build_unix; rm -rf config.cache; \ + $(TARGET_CONFIGURE_OPTS) \ + ../dist/configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/usr \ + --exec-prefix=/usr \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --libexecdir=/usr/lib \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + --localstatedir=/var \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --with-gnu-ld \ + --enable-shared \ + --disable-cxx \ + --disable-java \ + --disable-rpc \ + --disable-tcl \ + --disable-compat185 \ + --with-pic \ + ); + $(SED) 's/\.lo/.o/g' $(DB_DIR)/build_unix/Makefile + touch $(DB_DIR)/.configured + +$(DB_DIR)/build_unix/.libs/libdb-4.1.so: $(DB_DIR)/.configured + $(MAKE) CC=$(TARGET_CC) -C $(DB_DIR)/build_unix + +$(STAGING_DIR)/lib/libdb-4.1.so: $(DB_DIR)/build_unix/.libs/libdb-4.1.so + $(MAKE) \ + prefix=$(STAGING_DIR) \ + exec_prefix=$(STAGING_DIR) \ + bindir=$(STAGING_DIR)/bin \ + sbindir=$(STAGING_DIR)/sbin \ + libexecdir=$(STAGING_DIR)/lib \ + datadir=$(STAGING_DIR)/share \ + sysconfdir=$(STAGING_DIR)/etc \ + localstatedir=$(STAGING_DIR)/var \ + libdir=$(STAGING_DIR)/lib \ + infodir=$(STAGING_DIR)/info \ + mandir=$(STAGING_DIR)/man \ + includedir=$(STAGING_DIR)/include \ + -C $(DB_DIR)/build_unix install; + chmod a-x $(STAGING_DIR)/lib/libdb*so* + rm -f $(STAGING_DIR)/bin/db_* + rm -rf $(STAGING_DIR)/share/locale $(STAGING_DIR)/info \ + $(STAGING_DIR)/man $(STAGING_DIR)/share/doc + +$(TARGET_DIR)/lib/libdb-4.1.so: $(STAGING_DIR)/lib/libdb-4.1.so + rm -rf $(TARGET_DIR)/lib/libdb* + cp -a $(STAGING_DIR)/lib/libdb*so* $(TARGET_DIR)/lib/ + rm -f $(TARGET_DIR)/lib/libdb.so $(TARGET_DIR)/lib/libdb.la $(TARGET_DIR)/lib/libdb.a + (cd $(TARGET_DIR)/usr/lib; ln -fs /lib/libdb-4.1.so libdb.so) + -$(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libdb*so* + +$(TARGET_DIR)/usr/lib/libdb.a: $(STAGING_DIR)/lib/libdb-4.1.a + cp -dpf $(STAGING_DIR)/include/db.h $(TARGET_DIR)/usr/include/ + cp -dpf $(STAGING_DIR)/lib/libdb*.a $(TARGET_DIR)/usr/lib/ + cp -dpf $(STAGING_DIR)/lib/libdb*.la $(TARGET_DIR)/usr/lib/ + touch -c $(TARGET_DIR)/usr/lib/libdb.a + +berkeleydb-headers: $(TARGET_DIR)/usr/lib/libdb.a + +berkeleydb-clean: + $(MAKE) -C $(DB_DIR)/build_unix clean + +berkeleydb-dirclean: + rm -rf $(DB_DIR) + +berkeleydb: uclibc $(TARGET_DIR)/lib/libdb-4.1.so + |