3 include $(TOPDIR
)/rules.mk
10 PKG_SOURCE_URL
:=ftp
://ftp.sleepycat.com
/releases
/ \
11 http
://downloads.sleepycat.com
/
12 PKG_SOURCE
:=db-
$(PKG_VERSION
).
tar.gz
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/db-
$(PKG_VERSION
)
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 include $(TOPDIR
)/package
/rules.mk
20 $(eval
$(call PKG_template
,LIBDB
,libdb
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(PKG_BUILD_DIR
)/.configured
:
23 (cd
$(PKG_BUILD_DIR
)/build_unix
; \
24 $(TARGET_CONFIGURE_OPTS
) \
25 CFLAGS
="$(TARGET_CFLAGS)" \
26 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
27 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
29 --target
=$(GNU_TARGET_NAME
) \
30 --host
=$(GNU_TARGET_NAME
) \
31 --build
=$(GNU_HOST_NAME
) \
37 --datadir=/usr
/share \
38 --includedir=/usr
/include \
39 --infodir=/usr
/share
/info \
41 --libexecdir
=/usr
/lib \
42 --localstatedir
=/var \
43 --mandir=/usr
/share
/man \
47 $(DISABLE_LARGEFILE
) \
52 --disable-posixmutexes \
59 --enable-replication \
60 --enable-cryptography \
64 $(PKG_BUILD_DIR
)/.built
:
65 rm -rf
$(PKG_INSTALL_DIR
)
66 mkdir
-p
$(PKG_INSTALL_DIR
)
67 $(MAKE
) -C
$(PKG_BUILD_DIR
)/build_unix \
68 DESTDIR
="$(PKG_INSTALL_DIR)" install
72 install -m0755
-d
$(IDIR_LIBDB
)/usr
/lib
73 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libdb
*.so
$(IDIR_LIBDB
)/usr
/lib
/
74 $(RSTRIP
) $(IDIR_LIBDB
)
75 $(IPKG_BUILD
) $(IDIR_LIBDB
) $(PACKAGE_DIR
)
77 $(STAGING_DIR
)/usr
/lib
/libdb.so
: $(PKG_BUILD_DIR
)/.built
78 mkdir
-p
$(STAGING_DIR
)/usr
/include
79 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/db.h
$(STAGING_DIR
)/usr
/include/
80 mkdir
-p
$(STAGING_DIR
)/usr
/lib
81 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libdb
*.
{a
,so
} $(STAGING_DIR
)/usr
/lib
/
82 touch
$(STAGING_DIR
)/usr
/lib
/libdb.so
84 install-dev
: $(STAGING_DIR
)/usr
/lib
/libdb.so
87 rm -rf
$(STAGING_DIR
)/usr
/include/db.h
88 rm -rf
$(STAGING_DIR
)/usr
/lib
/libdb
*.
{a
,so
}
90 compile-targets
: install-dev
91 clean-targets
: uninstall-dev
This page took 0.038759 seconds and 5 git commands to generate.