[OpenWrt-Devel] [PATCH] New package libunistring

2012-12-13 Thread Espen Jürgensen
This a library required by forked-daapd, which is an improved iTunes
server.

Please refer to this:
https://lists.openwrt.org/pipermail/openwrt-devel/2012-December/017687.html

Signed-off-by: Espen Jürgensen espenjurgen...@gmail.com

---
Index: feeds/packages/libs/libunistring/Makefile
===
--- feeds/packages/libs/libunistring/Makefile   (revision 0)
+++ feeds/packages/libs/libunistring/Makefile   (revision 0)
@@ -0,0 +1,63 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libunistring
+PKG_VERSION:=0.9.3
+PKG_RELEASE:=1
+PKG_MD5SUM:=db8eca3b64163abadf8c40e5cecc261f
+
+PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/libunistring
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_FIXUP:=libtool
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/libunistring-$(PKG_VERSION)
+PKG_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+# This package is built without depending on libiconv-full, which is probably 
a mistake
+define Package/libunistring
+SECTION:=libs
+CATEGORY:=Libraries
+TITLE:=libunistring
+URL:=http://www.gnu.org/software/libunistring/
+MAINTAINER:=Espen Jürgensen espenjurgensen+open...@gmail.com
+endef
+
+define Package/libunistring/description
+  This library provides functions for manipulating Unicode strings and for 
manipulating C strings according to the Unicode standard.
+endef
+
+TARGET_CFLAGS += $(FPIC)
+
+define Build/Configure
+   $(call Build/Configure/Default, \
+   --enable-shared \
+   --enable-static \
+   )
+endef
+
+define Build/Compile
+   $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) DESTDIR=$(PKG_INSTALL_DIR) 
install
+endef
+
+define Build/InstallDev
+   $(INSTALL_DIR) $(1)/usr/include
+   $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
+   $(INSTALL_DIR) $(1)/usr/include/unistring
+   $(CP) $(PKG_INSTALL_DIR)/usr/include/unistring/*.h 
$(1)/usr/include/unistring/
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunistring.* $(1)/usr/lib/
+endef
+
+define Package/libunistring/install
+   $(INSTALL_DIR) $(1)/usr/include
+   $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
+   $(INSTALL_DIR) $(1)/usr/include/unistring
+   $(CP) $(PKG_INSTALL_DIR)/usr/include/unistring/*.h 
$(1)/usr/include/unistring/
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunistring.* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libunistring))

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] New package libantlr3c

2012-12-13 Thread Espen Jürgensen
This a library required by forked-daapd, which is an improved iTunes
server.

Please refer to this:
https://lists.openwrt.org/pipermail/openwrt-devel/2012-December/017687.html

Signed-off-by: Espen Jürgensen espenjurgen...@gmail.com

---
Index: feeds/packages/libs/libantlr3c/Makefile
===
--- feeds/packages/libs/libantlr3c/Makefile (revision 0)
+++ feeds/packages/libs/libantlr3c/Makefile (revision 0)
@@ -0,0 +1,56 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libantlr3c
+PKG_VERSION:=3.2
+PKG_RELEASE:=1
+PKG_MD5SUM:=674646e1d1bf5c6015435480cead725a
+
+PKG_SOURCE_URL:=http://www.antlr.org/download/C
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_FIXUP:=libtool
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/libantlr3c-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libantlr3c
+SECTION:=libs
+CATEGORY:=Libraries
+TITLE:=libantlr3c
+URL:=http://www.antlr.org/
+MAINTAINER:=Espen Jürgensen espenjurgensen+open...@gmail.com
+endef
+
+define Package/libantlr3c/description
+  ANother Tool for Language Recognition, is a language tool that provides a 
framework for constructing recognizers, \
+interpreters, compilers, and translators from grammatical descriptions 
containing actions in a variety of target languages.
+endef
+
+TARGET_CFLAGS += $(FPIC)
+
+define Build/Configure
+   $(call Build/Configure/Default, \
+   --enable-shared \
+   --enable-static \
+   )
+endef
+
+define Build/Compile
+   $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) DESTDIR=$(PKG_INSTALL_DIR) 
install
+endef
+
+define Build/InstallDev
+   $(INSTALL_DIR) $(1)/usr/include
+   $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libantlr3c.* $(1)/usr/lib/
+endef
+
+define Package/libantlr3c/install
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libantlr3c.*  $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libantlr3c))

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] New package libavl

2012-12-13 Thread Espen Jürgensen
This a library required by forked-daapd, which is an improved iTunes
server.

Please refer to this:
https://lists.openwrt.org/pipermail/openwrt-devel/2012-December/017687.html

Signed-off-by: Espen Jürgensen espenjurgen...@gmail.com

---
Index: feeds/packages/libs/libavl/Makefile
===
--- feeds/packages/libs/libavl/Makefile (revision 0)
+++ feeds/packages/libs/libavl/Makefile (revision 0)
@@ -0,0 +1,56 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libavl
+PKG_VERSION:=0.3.5
+PKG_RELEASE:=1
+PKG_MD5SUM:=882c68ea7f71876ca110f3b84d7ab12d
+
+PKG_SOURCE_URL:=http://alioth.debian.org/~jblache/forked-daapd \
+   http://www.gyfgafguf.dk/openwrt/mirror
+PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
+PKG_FIXUP:=libtool
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/avl-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libavl
+SECTION:=libs
+CATEGORY:=Libraries
+TITLE:=AVLTree
+MAINTAINER:=Espen Jürgensen espenjurgensen+open...@gmail.com
+URL:=http://www.jblache.org/projects/daapd/
+endef
+
+define Package/libavl/description
+  AVLTree is a small implementation of AVL trees for the C programming 
language.
+endef
+
+TARGET_CFLAGS += $(FPIC)
+
+define Build/Configure
+   $(call Build/Configure/Default, \
+   --enable-shared \
+   --enable-static \
+   )
+endef
+
+define Build/InstallDev
+   $(INSTALL_DIR) $(1)/usr/include
+   $(CP) $(PKG_BUILD_DIR)/avl.h $(1)/usr/include/
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_BUILD_DIR)/libavl.so* $(1)/usr/lib/
+   (cd $(1)/usr/lib; $(LN) libavl.so.1.5 libavl.so)
+   (cd $(1)/usr/lib; $(LN) libavl.so.1.5 libavl.so.1)
+endef
+
+define Package/libavl/install
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_BUILD_DIR)/libavl.so*  $(1)/usr/lib/
+   (cd $(1)/usr/lib; $(LN) libavl.so.1.5 libavl.so)
+   (cd $(1)/usr/lib; $(LN) libavl.so.1.5 libavl.so.1)
+endef
+
+$(eval $(call BuildPackage,libavl))

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/4] New package libavl

2012-11-05 Thread Espen Jürgensen
This a library required by forked-daapd, which is an improved iTunes
server. Please refer to my mail New package forked-daapd.


Signed-off-by: Espen Jürgensen espenjurgen...@gmail.com

---

Index: package/libavl/Makefile
===
--- package/libavl/Makefile (revision 0)
+++ package/libavl/Makefile (revision 0)
@@ -0,0 +1,56 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libavl
+PKG_VERSION:=0.3.5
+PKG_RELEASE:=1
+PKG_MD5SUM:=882c68ea7f71876ca110f3b84d7ab12d
+
+PKG_SOURCE_URL:=http://alioth.debian.org/~jblache/forked-daapd \
+   http://www.gyfgafguf.dk/openwrt/mirror
+PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
+PKG_FIXUP:=libtool
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/avl-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libavl
+SECTION:=libs
+CATEGORY:=Libraries
+TITLE:=AVLTree
+MAINTAINER:=Espen Jürgensen espenjurgensen+open...@gmail.com
+URL:=http://www.jblache.org/projects/daapd/
+endef
+
+define Package/libavl/description
+  AVLTree is a small implementation of AVL trees for the C programming 
language.
+endef
+
+TARGET_CFLAGS += $(FPIC)
+
+define Build/Configure
+   $(call Build/Configure/Default, \
+   --enable-shared \
+   --enable-static \
+   )
+endef
+
+define Build/InstallDev
+   $(INSTALL_DIR) $(1)/usr/include
+   $(CP) $(PKG_BUILD_DIR)/avl.h $(1)/usr/include/
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_BUILD_DIR)/libavl.so* $(1)/usr/lib/
+   (cd $(1)/usr/lib; $(LN) libavl.so.1.5 libavl.so)
+   (cd $(1)/usr/lib; $(LN) libavl.so.1.5 libavl.so.1)
+endef
+
+define Package/libavl/install
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_BUILD_DIR)/libavl.so*  $(1)/usr/lib/
+   (cd $(1)/usr/lib; $(LN) libavl.so.1.5 libavl.so)
+   (cd $(1)/usr/lib; $(LN) libavl.so.1.5 libavl.so.1)
+endef
+
+$(eval $(call BuildPackage,libavl))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 4/4] New package libunistring

2012-11-05 Thread Espen Jürgensen
This a library required by forked-daapd, which is an improved iTunes
server. Please refer to my mail New package forked-daapd.


Signed-off-by: Espen Jürgensen espenjurgen...@gmail.com

---

Index: package/libunistring/Makefile
===
--- package/libunistring/Makefile   (revision 0)
+++ package/libunistring/Makefile   (revision 0)
@@ -0,0 +1,63 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libunistring
+PKG_VERSION:=0.9.3
+PKG_RELEASE:=1
+PKG_MD5SUM:=db8eca3b64163abadf8c40e5cecc261f
+
+PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/libunistring
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_FIXUP:=libtool
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/libunistring-$(PKG_VERSION)
+PKG_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+# This package is built without depending on libiconv-full, which is probably 
a mistake
+define Package/libunistring
+SECTION:=libs
+CATEGORY:=Libraries
+TITLE:=libunistring
+URL:=http://www.gnu.org/software/libunistring/
+MAINTAINER:=Espen Jürgensen espenjurgensen+open...@gmail.com
+endef
+
+define Package/libunistring/description
+  This library provides functions for manipulating Unicode strings and for 
manipulating C strings according to the Unicode standard.
+endef
+
+TARGET_CFLAGS += $(FPIC)
+
+define Build/Configure
+   $(call Build/Configure/Default, \
+   --enable-shared \
+   --enable-static \
+   )
+endef
+
+define Build/Compile
+   $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) DESTDIR=$(PKG_INSTALL_DIR) 
install
+endef
+
+define Build/InstallDev
+   $(INSTALL_DIR) $(1)/usr/include
+   $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
+   $(INSTALL_DIR) $(1)/usr/include/unistring
+   $(CP) $(PKG_INSTALL_DIR)/usr/include/unistring/*.h 
$(1)/usr/include/unistring/
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunistring.* $(1)/usr/lib/
+endef
+
+define Package/libunistring/install
+   $(INSTALL_DIR) $(1)/usr/include
+   $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
+   $(INSTALL_DIR) $(1)/usr/include/unistring
+   $(CP) $(PKG_INSTALL_DIR)/usr/include/unistring/*.h 
$(1)/usr/include/unistring/
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunistring.* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libunistring))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/4] New package forked-daapd

2012-11-05 Thread Espen Jürgensen
This is an iTunes server (DAAP) for OpenWrt. It is a re-write of firefly media
server (mt-daapd), which is currently included in OpenWrt. forked-daapd has 
better 
features. It supports Apple Remote, and it also has been patched against a 
timeout-problem with iTunes, which I think mt-daapd has. I made a Wiki-Howto,
where you can read more about the package:

http://wiki.openwrt.org/inbox/howto/forked-daapd

I made the package available some time ago, here is the forum announcement:

https://forum.openwrt.org/viewtopic.php?id=30302

It depends on 3 libraries, which are not part of OpenWrt: libavl, libunistring 
and
libantlr3c. I'm also sending Makefiles for these libraries (I'm sending patches 
for
these in separat mails).


Signed-off-by: Espen Jürgensen espenjurgen...@gmail.com

---
Index: package/forked-daapd/patches/itunes_timeout.patch
===
--- package/forked-daapd/patches/itunes_timeout.patch   (revision 0)
+++ package/forked-daapd/patches/itunes_timeout.patch   (revision 0)
@@ -0,0 +1,164 @@
+--- a/src/httpd_daap.c 2011-09-11 15:46:25.0 +0200
 b/src/httpd_daap.c 2012-06-23 23:28:11.662712064 +0200
+@@ -58,9 +58,11 @@
+ 
+ 
+ /* Session timeout in seconds */
+-#define DAAP_SESSION_TIMEOUT 1800
++#define DAAP_SESSION_TIMEOUT 0 /* By default the session never times out */
++/* We announce this timeout to the client when returning server capabilities 
*/
++#define DAAP_SESSION_TIMEOUT_CAPABILITY 1800 
+ /* Update requests refresh interval in seconds */
+-#define DAAP_UPDATE_REFRESH  300
++#define DAAP_UPDATE_REFRESH  0
+ 
+ 
+ struct uri_map {
+@@ -130,7 +132,7 @@
+ 
+   s = (struct daap_session *)item;
+ 
+-  evtimer_del(s-timeout);
++  if (event_initialized(s-timeout)) evtimer_del(s-timeout);
+   free(s);
+ }
+ 
+@@ -173,8 +175,10 @@
+ 
+   next_session_id++;
+ 
+-  evtimer_set(s-timeout, daap_session_timeout_cb, s);
+-  event_base_set(evbase_httpd, s-timeout);
++  if (DAAP_SESSION_TIMEOUT  0) {
++evtimer_set(s-timeout, daap_session_timeout_cb, s);
++event_base_set(evbase_httpd, s-timeout);
++  }
+ 
+   node = avl_insert(daap_sessions, s);
+   if (!node)
+@@ -185,12 +189,14 @@
+   return NULL;
+ }
+ 
+-  evutil_timerclear(tv);
+-  tv.tv_sec = DAAP_SESSION_TIMEOUT;
+-
+-  ret = evtimer_add(s-timeout, tv);
+-  if (ret  0)
+-DPRINTF(E_LOG, L_DAAP, Could not add session timeout event for session 
%d\n, s-id);
++  if (DAAP_SESSION_TIMEOUT  0) {
++evutil_timerclear(tv);
++tv.tv_sec = DAAP_SESSION_TIMEOUT;
++
++ret = evtimer_add(s-timeout, tv);
++if (ret  0)
++  DPRINTF(E_LOG, L_DAAP, Could not add session timeout event for session 
%d\n, s-id);
++  }
+ 
+   return s;
+ }
+@@ -225,14 +231,18 @@
+ 
+   s = (struct daap_session *)node-item;
+ 
+-  event_del(s-timeout);
++  if (DAAP_SESSION_TIMEOUT  0) {
++event_del(s-timeout);
++  }
+ 
+   evutil_timerclear(tv);
+   tv.tv_sec = DAAP_SESSION_TIMEOUT;
+ 
+-  ret = evtimer_add(s-timeout, tv);
+-  if (ret  0)
+-DPRINTF(E_LOG, L_DAAP, Could not add session timeout event for session 
%d\n, s-id);
++  if (DAAP_SESSION_TIMEOUT  0) {
++ret = evtimer_add(s-timeout, tv);
++if (ret  0)
++  DPRINTF(E_LOG, L_DAAP, Could not add session timeout event for session 
%d\n, s-id);
++  }
+ 
+   return s;
+ 
+@@ -269,7 +279,7 @@
+ update_free(struct daap_update_request *ur)
+ {
+   if (event_initialized(ur-timeout))
+-  evtimer_del(ur-timeout);
++evtimer_del(ur-timeout);
+   free(ur);
+ }
+ 
+@@ -678,25 +688,23 @@
+   dmap_add_container(evbuf, msrv, len - 8);
+   dmap_add_int(evbuf, mstt, 200);  /* 12 */
+   dmap_add_int(evbuf, mpro, mpro); /* 12 */
+-  dmap_add_int(evbuf, apro, apro); /* 12 */
+   dmap_add_string(evbuf, minm, name); /* 8 + strlen(name) */
+-
+-  dmap_add_int(evbuf, mstm, DAAP_SESSION_TIMEOUT); /* 12 */
+-  dmap_add_char(evbuf, msal, 1);   /* 9 */
++  dmap_add_int(evbuf, apro, apro); /* 12 */
+ 
+   dmap_add_char(evbuf, mslr, 1);   /* 9 */
++  dmap_add_int(evbuf, mstm, DAAP_SESSION_TIMEOUT_CAPABILITY); /* 12 */
++  dmap_add_char(evbuf, msal, 1);   /* 9 */
+   dmap_add_char(evbuf, msau, (passwd) ? 2 : 0); /* 9 */
++  dmap_add_char(evbuf, msup, 1);   /* 9 */
++
++  dmap_add_char(evbuf, mspi, 1);   /* 9 */
+   dmap_add_char(evbuf, msex, 1);   /* 9 */
+   dmap_add_char(evbuf, msix, 1);   /* 9 */
+   dmap_add_char(evbuf, msbr, 1);   /* 9 */
+   dmap_add_char(evbuf, msqy, 1);   /* 9 */
+ 
+-  dmap_add_char(evbuf, mspi, 1);   /* 9 */
+   dmap_add_int(evbuf, msdc, 1);/* 12 */
+ 
+-  /* Advertise updates support even though we don't send updates */
+-  dmap_add_char(evbuf, msup, 1);   /* 9 */
+-
+   httpd_send_reply(req, HTTP_OK, OK, evbuf);
+ }
+ 
+@@ -887,22 +895,24 @@
+ }
+   memset(ur, 0, sizeof(struct daap_update_request));
+ 
+-  evtimer_set(ur-timeout, update_refresh_cb, ur);
+-  event_base_set(evbase_httpd, ur-timeout);
+-
+-  evutil_timerclear(tv);
+-  tv.tv_sec = DAAP_UPDATE_REFRESH;
+-
+-  ret = evtimer_add(ur

[OpenWrt-Devel] [PATCH 3/4] New package libantlr3c

2012-11-05 Thread Espen Jürgensen
This a library required by forked-daapd, which is an improved iTunes
server. Please refer to my mail New package forked-daapd.


Signed-off-by: Espen Jürgensen espenjurgen...@gmail.com

---

Index: package/libantlr3c/Makefile
===
--- package/libantlr3c/Makefile (revision 0)
+++ package/libantlr3c/Makefile (revision 0)
@@ -0,0 +1,56 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libantlr3c
+PKG_VERSION:=3.2
+PKG_RELEASE:=1
+PKG_MD5SUM:=674646e1d1bf5c6015435480cead725a
+
+PKG_SOURCE_URL:=http://www.antlr.org/download/C
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_FIXUP:=libtool
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/libantlr3c-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libantlr3c
+SECTION:=libs
+CATEGORY:=Libraries
+TITLE:=libantlr3c
+URL:=http://www.antlr.org/
+MAINTAINER:=Espen Jürgensen espenjurgensen+open...@gmail.com
+endef
+
+define Package/libantlr3c/description
+  ANother Tool for Language Recognition, is a language tool that provides a 
framework for constructing recognizers, \
+interpreters, compilers, and translators from grammatical descriptions 
containing actions in a variety of target languages.
+endef
+
+TARGET_CFLAGS += $(FPIC)
+
+define Build/Configure
+   $(call Build/Configure/Default, \
+   --enable-shared \
+   --enable-static \
+   )
+endef
+
+define Build/Compile
+   $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) DESTDIR=$(PKG_INSTALL_DIR) 
install
+endef
+
+define Build/InstallDev
+   $(INSTALL_DIR) $(1)/usr/include
+   $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libantlr3c.* $(1)/usr/lib/
+endef
+
+define Package/libantlr3c/install
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libantlr3c.*  $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libantlr3c))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Include zlib.pc (packageconfig) with zlib

2011-10-12 Thread Espen Jürgensen
Compiling zlib produces zlib.pc (pkgconfig), but it is not currently
installed in staging_dir/usr/lib/pkgconfig. If it was included other
packages depending on zlib could easier be compiled.

Signed-off-by: Espen Jürgensen espenjurgen...@gmail.com

---

Index: trunk/package/zlib/Makefile
===
--- trunk/package/zlib/Makefile (revision 28430)
+++ trunk/package/zlib/Makefile (working copy)
@@ -56,6 +56,9 @@
mkdir -p $(1)/usr/lib
$(CP)   $(PKG_INSTALL_DIR)/usr/lib/libz.{a,so*} \
$(1)/usr/lib/
+   mkdir -p $(1)/usr/lib/pkgconfig
+   $(CP)   $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/zlib.pc \
+   $(1)/usr/lib/pkgconfig
 endef
 
 # libz.so is needed for openssl (zlib-dynamic)

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Include all libraries with libevent

2011-10-10 Thread Espen Jürgensen
libevent provides some extra libraries (libevent-core and
libevent-extra) which are not included in the current package. Some
packages - like the one I'm working on - may depend on these, so it
would be nice if they were included.

Some symlinks are also missing in the current package.

Signed-off-by: Espen Jürgensen espenjurgen...@gmail.com

---

Index: packages/libs/libevent/Makefile
===
--- packages/libs/libevent/Makefile (revision 28407)
+++ packages/libs/libevent/Makefile (working copy)
@@ -9,7 +9,7 @@
 
 PKG_NAME:=libevent
 PKG_VERSION:=1.4.14b
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-stable
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-stable.tar.gz
@@ -54,13 +54,17 @@
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
-   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent.{la,a,so} $(1)/usr/lib/
-   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent-1.4.so* $(1)/usr/lib/
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent* $(1)/usr/lib/
 endef
 
 define Package/libevent/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent-1.4.so.* $(1)/usr/lib/
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent_core-1.4.so.* $(1)/usr/lib/
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent_extra-1.4.so.* $(1)/usr/lib/
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent.so $(1)/usr/lib/
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent_core.so $(1)/usr/lib/
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent_extra.so $(1)/usr/lib/
 endef
 
 $(eval $(call BuildPackage,libevent))



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel