summaryrefslogtreecommitdiff
path: root/package/dbus/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-10-11 19:36:32 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-10-11 19:36:32 +0200
commit6d26b19269a28ff576e872473cb3b4610a61fceb (patch)
treed93378254682782dbe0175dcf69edb1fbf65dbe3 /package/dbus/Makefile
parentb45a02c444117a90d202706013d71a56813990e1 (diff)
make more apps statically linkable
- update libusb to latest upstream - update bluez to latest upstream - add a new PKG_OPTS option: libonly, useful for library only packages, which are not created, when static linking is choosen
Diffstat (limited to 'package/dbus/Makefile')
-rw-r--r--package/dbus/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/package/dbus/Makefile b/package/dbus/Makefile
index a099da821..46739bfa2 100644
--- a/package/dbus/Makefile
+++ b/package/dbus/Makefile
@@ -12,10 +12,13 @@ PKG_SECTION:= net
PKG_DEPENDS:= libexpat
PKG_URL:= http://dbus.freedesktop.org
PKG_SITES:= http://dbus.freedesktop.org/releases/dbus/
+ifeq ($(ADK_STATIC),y)
+PKG_OPTS:= libonly
+endif
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,DBUS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,DBUS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
CONFIGURE_STYLE:= gnu
CONFIGURE_ARGS+= --disable-tests \
@@ -31,13 +34,15 @@ CONFIGURE_ENV+= ac_cv_have_abstract_sockets=no
BUILD_STYLE:= auto
INSTALL_STYLE:= auto
+pre-install:
+ ${INSTALL_DIR} $(STAGING_DIR)/usr/include/dbus-1.0/dbus
+ $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
+ $(STAGING_DIR)/usr/include/dbus-1.0/dbus/
+
post-install:
${INSTALL_DIR} ${IDIR_DBUS}/etc ${IDIR_DBUS}/usr/lib ${IDIR_DBUS}/usr/bin
- ${INSTALL_DIR} $(STAGING_DIR)/usr/include/dbus-1.0/dbus
${CP} ${WRKINST}/etc/dbus-1 ${IDIR_DBUS}/etc/
${CP} ${WRKINST}/usr/lib/libdbus-1.so.* ${IDIR_DBUS}/usr/lib/
- $(CP) $(WRKINST)/usr/lib/dbus-1.0/include/dbus/dbus-arch-deps.h \
- $(STAGING_DIR)/usr/include/dbus-1.0/dbus/
${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-daemon ${IDIR_DBUS}/usr/bin/
${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-launch ${IDIR_DBUS}/usr/bin/