summaryrefslogtreecommitdiff
path: root/package/libevent/libevent.mk
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-19 20:13:08 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-19 20:13:08 +0000
commit7b0ad787d6fb0e967e4ee938fffaf804cf433588 (patch)
tree25c0adbb86f6287a4a74700277cc9aeb803fe4d9 /package/libevent/libevent.mk
parent7935c98db167e9c3a34ea88332977efa2cafc79a (diff)
- fixes and cleanups (Cristian Ionescu-Idbohrn)
Diffstat (limited to 'package/libevent/libevent.mk')
-rw-r--r--package/libevent/libevent.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/package/libevent/libevent.mk b/package/libevent/libevent.mk
index 5befbfbd6..11e9d974c 100644
--- a/package/libevent/libevent.mk
+++ b/package/libevent/libevent.mk
@@ -31,6 +31,7 @@ $(LIBEVENT_DIR)/.configured: $(LIBEVENT_DIR)/.unpacked
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/usr \
+ --mandir=/usr/share/man \
--disable-static \
--with-gnu-ld \
)
@@ -44,9 +45,11 @@ $(STAGING_DIR)/$(LIBEVENT_TARGET_BINARY): $(LIBEVENT_DIR)/$(LIBEVENT_BINARY)
$(TARGET_DIR)/$(LIBEVENT_TARGET_BINARY): $(STAGING_DIR)/$(LIBEVENT_TARGET_BINARY)
$(MAKE) -C $(LIBEVENT_DIR) DESTDIR=$(TARGET_DIR) install
- rm -f $(TARGET_DIR)/usr/lib/libevent*.la $(TARGET_DIR)/usr/include/ev*
- rm -f $(TARGET_DIR)/usr/man/man3/ev*.3
- rmdir -p --ignore-fail-on-non-empty $(TARGET_DIR)/usr/man/man3
+ rm -f $(addprefix $(TARGET_DIR)/usr/,lib/libevent*.la \
+ include/ev*)
+ifneq ($(BR2_HAVE_MANPAGES),y)
+ rm -fr $(TARGET_DIR)/usr/share/man
+endif
libevent: uclibc $(TARGET_DIR)/$(LIBEVENT_TARGET_BINARY)