use Build/Configure/Default macro, Makefile cleanup

git-svn-id: svn://svn.openwrt.org/openwrt/packages@5329 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2006-10-28 22:43:08 +00:00
parent f200c1bf2c
commit d1cac1e535
58 changed files with 1133 additions and 2630 deletions

View File

@ -12,12 +12,12 @@ PKG_NAME:=bluez-libs
PKG_VERSION:=2.24
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://bluez.sourceforge.net/download
PKG_MD5SUM:=d0ba50e251ae1e7f2c09024facde8e40
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -26,55 +26,22 @@ define Package/bluez-libs
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Bluetooth library
DESCRIPTION:=Bluetooth library.
URL:=http://www.bluez.org/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-rpath \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/bluez-libs/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include/bluetooth
$(CP) $(PKG_INSTALL_DIR)/usr/include/bluetooth/*.h $(STAGING_DIR)/usr/include/bluetooth
@ -88,4 +55,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libbluetooth.{a,so*}
endef
define Package/bluez-libs/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,bluez-libs))

View File

@ -12,7 +12,6 @@ PKG_NAME:=curl
PKG_VERSION:=7.14.0
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://curl.haxx.se/download/ \
http://www.mirrorspace.org/curl/ \
@ -24,59 +23,35 @@ PKG_SOURCE_URL:=http://curl.haxx.se/download/ \
PKG_MD5SUM:=46ce665e47d37fce1a0bad935cce58a9
PKG_CAT:=bzcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
define Package/libcurl
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=+libopenssl +zlib
TITLE:=A client-side URL transfer utility
DESCRIPTION:=A client-side URL transfer utility.
define Package/curl/Default
SECTION:=net
CATEGORY:=Network
URL:=http://curl.haxx.se/
endef
define Package/curl
SECTION:=net
CATEGORY:=Network
$(call Package/curl/Default)
DEPENDS:=+libcurl
TITLE:=A client-side URL transfer library
DESCRIPTION:=A client-side URL transfer library.
URL:=http://curl.haxx.se/
endef
define Package/libcurl
$(call Package/curl/Default)
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=+libopenssl +zlib
TITLE:=A client-side URL transfer utility
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(strip $(TARGET_CFLAGS))" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-rpath \
--with-gnu-ld \
--disable-thread \
--enable-cookies \
--enable-crypto-auth \
@ -104,23 +79,11 @@ define Build/Configure
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libcurl/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcurl.so.* $(1)/usr/lib/
endef
define Package/curl/install
install -m0755 -d $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/curl $(1)/usr/bin/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/curl-config $(STAGING_DIR)/usr/bin/
@ -133,11 +96,20 @@ define Build/InstallDev
endef
define Build/UninstallDev
rm -rf \
$(STAGING_DIR)/usr/bin/curl-config \
rm -rf $(STAGING_DIR)/usr/bin/curl-config \
$(STAGING_DIR)/usr/include/curl \
$(STAGING_DIR)/usr/lib/libcurl.{a,so*}
endef
$(eval $(call BuildPackage,libcurl))
define Package/curl/install
install -d -m0755 $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/curl $(1)/usr/bin/
endef
define Package/libcurl/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcurl.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,curl))
$(eval $(call BuildPackage,libcurl))

View File

@ -12,13 +12,14 @@ PKG_NAME:=cyrus-sasl
PKG_VERSION:=2.1.20
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://ftp.andrew.cmu.edu/pub/cyrus-mail/
PKG_MD5SUM:=268ead27f4ac39bcfe17d9e38e0f2977
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
PKG_BUILDDEP:=libopenssl
include $(INCLUDE_DIR)/package.mk
@ -27,36 +28,11 @@ define Package/libsasl2
SECTION:=libs
CATEGORY:=Libraries
TITLE:=A general purpose authentication library
DESCRIPTION:=A general purpose authentication library.
URL:=http://asg.web.cmu.edu/sasl/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-sample \
@ -99,8 +75,6 @@ define Build/Configure
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR)/include \
CC="$(HOSTCC)" \
LINK="$(HOSTCC) -o makemd5 -lc" \
@ -112,13 +86,6 @@ define Build/Compile
all install
endef
define Package/libsasl2/install
install -m0755 -d $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.so.* $(1)/usr/lib/
install -m0755 -d $(1)/usr/lib/sasl2
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.so.* $(1)/usr/lib/sasl2/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include/
$(CP) $(PKG_INSTALL_DIR)/usr/include/sasl $(STAGING_DIR)/usr/include/
@ -131,10 +98,16 @@ define Build/InstallDev
endef
define Build/UninstallDev
rm -rf \
$(STAGING_DIR)/usr/include/sasl \
rm -rf $(STAGING_DIR)/usr/include/sasl \
$(STAGING_DIR)/usr/lib/libsasl{2,}.{a,so*} \
$(STAGING_DIR)/usr/lib/sasl2
endef
define Package/libsasl2/install
install -d -m0755 $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.so.* $(1)/usr/lib/
install -d -m0755 $(1)/usr/lib/sasl2
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.so.* $(1)/usr/lib/sasl2/
endef
$(eval $(call BuildPackage,libsasl2))

View File

@ -12,12 +12,12 @@ PKG_NAME:=expat
PKG_VERSION:=1.95.8
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=aff487543845a82fe262e6e2922b4c8e
PKG_SOURCE_URL:=@SF/expat
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -26,54 +26,24 @@ define Package/libexpat
SECTION:=libs
CATEGORY:=Libraries
TITLE:=An XML parsing library
DESCRIPTION:=A fast, non-validating, stream-oriented XML parsing library.
DESCRIPTION:=\
A fast, non-validating, stream-oriented XML parsing library.
URL:=http://expat.sourceforge.net/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libexpat/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/xmlwf $(STAGING_DIR)/usr/bin/
@ -90,4 +60,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libexpat.{a,so*}
endef
define Package/libexpat/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libexpat))

View File

@ -12,12 +12,12 @@ PKG_NAME:=libfreetype
PKG_VERSION:=2.1.9
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/freetype-$(PKG_VERSION)
PKG_SOURCE:=freetype-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@SF/freetype
PKG_MD5SUM:=ec1b903e4be5f073caa72458ea58c29c
PKG_CAT:=bzcat
PKG_BUILD_DIR:=$(BUILD_DIR)/freetype-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -27,7 +27,7 @@ define Package/libfreetype
CATEGORY:=Libraries
DEPENDS:=+zlib
TITLE:=A free, high-quality and portable font engine
DESCRIPTION:=A free, high-quality and portable font engine.\\\
DESCRIPTION:=\
The FreeType project is a team of volunteers who develop free, \\\
portable and high-quality software solutions for digital typography.\\\
They specifically target embedded systems and focus on bringing small, \\\
@ -36,48 +36,20 @@ define Package/libfreetype
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
$(TARGET_CONFIGURE_OPTS) \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--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 \
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
--enable-shared=yes \
--enable-static=yes \
--disable-rpath \
);
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
)
$(SED) 's|^sys_lib_dlsearch_path_spec=.*|sys_lib_dlsearch_path_spec="$(STAGING_DIR)/usr/lib $(STAGING_DIR)/lib"|g' \
$(PKG_BUILD_DIR)/builds/unix/libtool
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libfreetype/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/freetype-config $(STAGING_DIR)/usr/bin/
@ -101,4 +73,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/pkgconfig/freetype2.pc
endef
define Package/libfreetype/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libfreetype))

View File

@ -12,7 +12,6 @@ PKG_NAME:=glib
PKG_VERSION:=1.2.10
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.gtk.org/pub/gtk/v1.2 \
http://ftp.gwdg.de/pub/misc/grafik/gimp/gtk/v1.2/ \
@ -21,6 +20,7 @@ PKG_SOURCE_URL:=ftp://ftp.gtk.org/pub/gtk/v1.2 \
PKG_MD5SUM:=6fe30dad87c77b91b632def29dd69ef9
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -30,68 +30,44 @@ define Package/glib1
CATEGORY:=Libraries
DEPENDS:=+libpthread
TITLE:=The GLib library of C routines
DESCRIPTION:=The GLib library of C routines.\\\
DESCRIPTION:=\
GLib is a library containing many useful C routines for things such \\\
as trees, hashes, and lists.
URL:=http://www.gtk.org/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
# commas are interpreted by the $(call ...) macro, so define an intermediate variable holding our settings
PKG_CONFIGURE_VARS:=\
glib_cv_prog_cc_ansi_proto=no \
glib_cv_has__inline=yes \
glib_cv_has__inline__=yes \
glib_cv_hasinline=yes \
glib_cv_sane_realloc=yes \
glib_cv_va_copy=no \
glib_cv___va_copy=yes \
glib_cv_va_val_copy=yes \
glib_cv_rtldglobal_broken=no \
glib_cv_uscore=no \
glib_cv_func_pthread_mutex_trylock_posix=yes \
glib_cv_func_pthread_cond_timedwait_posix=yes \
glib_cv_sizeof_gmutex=24 \
glib_cv_prog_cc_ansi_proto="no" \
glib_cv_has__inline="yes" \
glib_cv_has__inline__="yes" \
glib_cv_hasinline="yes" \
glib_cv_sane_realloc="yes" \
glib_cv_va_copy="no" \
glib_cv___va_copy="yes" \
glib_cv_va_val_copy="yes" \
glib_cv_rtldglobal_broken="no" \
glib_cv_uscore="no" \
glib_cv_func_pthread_mutex_trylock_posix="yes" \
glib_cv_func_pthread_cond_timedwait_posix="yes" \
glib_cv_sizeof_gmutex="24" \
glib_cv_byte_contents_gmutex="0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--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 \
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
--enable-shared=yes \
--enable-static=yes \
);
define Build/Configure
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
, \
$(PKG_CONFIGURE_VARS) \
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
install
endef
define Package/glib1/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libg{lib,module,thread}-1.2.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/glib-config $(STAGING_DIR)/usr/bin/
@ -116,4 +92,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/pkgconfig/g{lib,module,thread}.pc
endef
define Package/glib1/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libg{lib,module,thread}-1.2.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,glib1))

View File

@ -12,7 +12,6 @@ PKG_NAME:=gnutls
PKG_VERSION:=1.0.25
PKG_RELEASE:=0
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.gnutls.org/pub/gnutls/ \
ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/ \
@ -22,90 +21,64 @@ PKG_SOURCE_URL:=ftp://ftp.gnutls.org/pub/gnutls/ \
PKG_MD5SUM:=3585b5b204135e51e0efc9084b3e028b
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
define Package/libgnutls
define Package/gnutls/Default
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=+libgcrypt
TITLE:=GNU TLS library
DESCRIPTION:=The GNU TLS library.\\\
TITLE:=GNU TLS
DESCRIPTION:=\
GnuTLS is a project that aims to develop a library which provides a \\\
secure layer, over a reliable transport layer. Currently the GnuTLS \\\
library implements the proposed standards by the IETF's TLS working \\\
group.\\\
\\\
This packages contains the GnuTLS shared libraries, needed by other programs.
URL:=http://www.gnu.org/software/gnutls/
endef
define Package/libgnutls-openssl
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=libgnutls
TITLE:=GNU TLS OpenSSL compatibility layer library
DESCRIPTION:=The GNU TLS OpenSSL compatibility layer library.\\\
GnuTLS is a project that aims to develop a library which provides a \\\
secure layer, over a reliable transport layer. Currently the GnuTLS \\\
library implements the proposed standards by the IETF's TLS working \\\
group.\\\
\\\
This packages contains the GnuTLS OpenSSL compatibility layer shared library.
group.
URL:=http://www.gnu.org/software/gnutls/
endef
define Package/gnutls-utils
$(call Package/gnutls/Default)
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+libgnutls
TITLE:=GNU TLS utilitis
DESCRIPTION:=The GNU TLS utilities.\\\
GnuTLS is a project that aims to develop a library which provides a \\\
secure layer, over a reliable transport layer. Currently the GnuTLS \\\
library implements the proposed standards by the IETF's TLS working \\\
group.\\\
TITLE+= (utilities)
DESCRIPTION+=\\\
\\\
This packages contains some GnuTLS utilities.
URL:=http://www.gnu.org/software/gnutls/
This package contains some GnuTLS utilities.
endef
define Package/libgnutls
$(call Package/gnutls/Default)
DEPENDS:=+libgcrypt
TITLE+= (library)
DESCRIPTION+=\\\
\\\
This package contains the GnuTLS shared libraries, needed by other programs.
endef
define Package/libgnutls-openssl
$(call Package/gnutls/Default)
DEPENDS:=libgnutls
TITLE+= (OpenSSL compat library)
DESCRIPTION+=\\\
\\\
This package contains the GnuTLS OpenSSL compatibility layer shared library.
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
touch configure.in ; \
touch acinclude.m4 ; \
touch aclocal.m4 ; \
touch Makefile.in ; \
touch config.h.in ; \
touch configure ; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
(cd $(PKG_BUILD_DIR); touch \
configure.in \
acinclude.m4 \
aclocal.m4 \
Makefile.in \
config.h.in \
configure \
)
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-rpath \
--disable-srp-authentication \
--disable-anon-authentication \
--disable-openpgp-authentication \
@ -114,33 +87,15 @@ define Build/Configure
--with-included-libcfg=yes \
--without-zlib \
--without-lzo \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libgnutls/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnutls{,-extra}.so.* $(1)/usr/lib/
endef
define Package/libgnutls-openssl/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnutls-openssl.so.* $(1)/usr/lib/
endef
define Package/gnutls-utils/install
install -m0755 -d $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/certtool $(1)/usr/bin/
$(CP) $(PKG_INSTALL_DIR)/usr/bin/gnutls-{cli,serv} $(1)/usr/bin/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/libgnutls{,-extra}-config $(STAGING_DIR)/usr/bin/
@ -157,14 +112,29 @@ define Build/InstallDev
endef
define Build/UninstallDev
rm -rf \
$(STAGING_DIR)/usr/bin/libgnutls{,-extra}-config \
rm -rf $(STAGING_DIR)/usr/bin/libgnutls{,-extra}-config \
$(STAGING_DIR)/usr/include/gnutls \
$(STAGING_DIR)/usr/lib/libgnutls{,-extra,-openssl}.{a,so*} \
$(STAGING_DIR)/usr/lib/pkgconfig/gnutls{,-extra}.pc \
$(STAGING_DIR)/usr/share/aclocal/libgnutls{,-extra}.m4
endef
define Package/gnutls-utils/install
install -d -m0755 $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/certtool $(1)/usr/bin/
$(CP) $(PKG_INSTALL_DIR)/usr/bin/gnutls-{cli,serv} $(1)/usr/bin/
endef
define Package/libgnutls/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnutls{,-extra}.so.* $(1)/usr/lib/
endef
define Package/libgnutls-openssl/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnutls-openssl.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,gnutls-utils))
$(eval $(call BuildPackage,libgnutls))
$(eval $(call BuildPackage,libgnutls-openssl))
$(eval $(call BuildPackage,gnutls-utils))

View File

@ -12,12 +12,12 @@ PKG_NAME:=id3lib
PKG_VERSION:=3.8.3
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/id3lib
PKG_MD5SUM:=19f27ddd2dda4b2d26a559a4f0f402a7
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -27,58 +27,28 @@ define Package/id3lib
CATEGORY:=Libraries
DEPENDS:=+zlib +uclibcxx
TITLE:=An ID3v1/ID3v2 tag manipulation library
DESCRIPTION:=An ID3v1/ID3v2 tag manipulation library.\\\
URL:=http://www.id3lib.org/
endef
# commas are interpreted by the $(call ...) macro, so define a intermediate variable holding our settings
PKG_CONFIGURE_LIBS:=-Wl,-Bdynamic,-luClibc++,-Bstatic,-lstdc++,-Bdynamic,-lz,-lm,-lc
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(LINUX_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
LIBS="-Wl,-Bdynamic,-luClibc++,-Bstatic,-lstdc++,-Bdynamic,-lz,-lm,-lc" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-rpath \
--with-gnu-ld \
);
, \
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti" \
LIBS="$(PKG_CONFIGURE_LIBS)" \
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/id3lib/install
install -d -m0755 $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3-*.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/id3 $(STAGING_DIR)/usr/include/
@ -96,4 +66,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libid3-*.so.*
endef
define Package/id3lib/install
install -d -m0755 $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3-*.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,id3lib))

View File

@ -12,12 +12,12 @@ PKG_NAME:=libao
PKG_VERSION:=0.8.6
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://downloads.xiph.org/releases/ao/
PKG_MD5SUM:=12e136a4c0995068ff134997c84421ed
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -27,63 +27,29 @@ define Package/libao
DEPENDS:=+alsa-lib
CATEGORY:=Libraries
TITLE:=A cross platform audio library
DESCRIPTION:=A cross platform audio library.\\\
DESCRIPTION:=\
Libao is a cross-platform audio library that allows programs to \\\
output audio using a simple API on a wide variety of platforms.
URL:=http://www.xiph.org/ao/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(strip $(TARGET_CFLAGS))" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-rpath \
--with-gnu-ld \
--disable-esd \
--disable-arts \
--disable-nas \
--disable-polyp \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libao/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/ao $(STAGING_DIR)/usr/include/
@ -102,4 +68,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/pkgconfig/ao.pc
endef
define Package/libao/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libao))

View File

@ -12,12 +12,12 @@ PKG_NAME:=libart
PKG_VERSION:=2.3.17
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_lgpl-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)_lgpl-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://ftp.gnome.org/pub/gnome/sources/libart_lgpl/2.3
PKG_MD5SUM:=f1f6b3e5490f382535dccb288f5d8b14
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_lgpl-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -26,7 +26,7 @@ define Package/libart
SECTION:=libs
CATEGORY:=Libraries
TITLE:=An high-performance 2D graphics library
DESCRIPTION:=An high-performance 2D graphics library.\\\
DESCRIPTION:=\
A library of functions for 2D graphics supporting a superset of the \\\
PostScript imaging model, designed to be integrated with graphics, artwork, \\\
and illustration programs. It is written in optimized C, and is fully \\\
@ -36,49 +36,19 @@ define Package/libart
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
$(TARGET_CONFIGURE_OPTS) \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--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 \
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
--enable-shared=yes \
--enable-static=yes \
--disable-rpath \
);
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
HOSTCC="$(HOSTCC)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libart/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/libart2-config $(STAGING_DIR)/usr/bin/
@ -100,4 +70,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/pkgconfig/libart-2.0.pc
endef
define Package/libart/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libart))

View File

@ -12,12 +12,12 @@ PKG_NAME:=libaudiofile
PKG_VERSION:=0.2.6
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.cti.ecp.fr/~beauxir5/peercast
PKG_MD5SUM:=460f848ce5f4a33ae66b15a4fb7720ec
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -26,7 +26,7 @@ define Package/libaudiofile
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Audio File library
DESCRIPTION:=Audio File library.\\\
DESCRIPTION:=\
The audiofile library allows the processing of audio data to and from audio \\\
files of many common formats (currently AIFF, AIFF-C, WAVE, NeXT/Sun, BICS, \\\
and raw data).
@ -34,52 +34,19 @@ define Package/libaudiofile
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
ac_cv_linux_vers=$(BR2_DEFAULT_KERNEL_HEADERS) \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--with-build-cc="$(HOSTCC)" \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
CCOPT="$(TARGET_CFLAGS)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libaudiofile/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/audiofile-config $(STAGING_DIR)/usr/bin/
@ -104,4 +71,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/pkgconfig/libaudiofile.pc
endef
define Package/libaudiofile/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libaudiofile))

View File

@ -12,12 +12,12 @@ PKG_NAME:=libdaemon
PKG_VERSION:=0.10
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://0pointer.de/lennart/projects/libdaemon/
PKG_MD5SUM:=6812a5e4063b5016f25e9a0cebbd3dd9
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -26,15 +26,14 @@ define Package/libdaemon
SECTION:=libs
CATEGORY:=Libraries
TITLE:=A lightweight C library that eases the writing of UNIX daemons
DESCRIPTION:=A lightweight C library that eases the writing of UNIX daemons.\\\
DESCRIPTION:=\
libdaemon is a lightweight C library that eases the writing of UNIX daemons.\\\
It consists of the following parts:\\\
\\\
* A wrapper around fork() which does the correct daemonization procedure of a process\\\
* A wrapper around syslog() for simpler and compatible log output to Syslog or STDERR\\\
* An API for writing PID files\\\
* An API for serializing UNIX signals into a pipe for usage with select() or poll()\\\
* An API for running subprocesses with STDOUT and STDERR redirected to syslog\\\
- A wrapper around fork() which does the correct daemonization procedure of a process\\\
- A wrapper around syslog() for simpler and compatible log output to Syslog or STDERR\\\
- An API for writing PID files\\\
- An API for serializing UNIX signals into a pipe for usage with select() or poll()\\\
- An API for running subprocesses with STDOUT and STDERR redirected to syslog\\\
\\\
APIs like these are used in most daemon software available. It is not that \\\
simple to get it done right and code duplication is not a goal.
@ -42,53 +41,19 @@ define Package/libdaemon
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
ac_cv_func_setpgrp_void=yes \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-rpath \
--with-gnu-ld \
--disable-lynx \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libdaemon/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdaemon.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/libdaemon $(STAGING_DIR)/usr/include/
@ -109,4 +74,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/pkgconfig/libdaemon.pc
endef
define Package/libdaemon/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdaemon.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libdaemon))

View File

@ -12,12 +12,12 @@ PKG_NAME:=libdnet
PKG_VERSION:=1.10
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/libdnet-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
PKG_MD5SUM:=416b765e9d9961501ac85e9a366fd219
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/libdnet-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -26,66 +26,34 @@ define Package/libdnet
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Low-level network library
DESCRIPTION:=Low-level network library.\\\
DESCRIPTION:=\
libdnet is a library of simplified, portable interface to several \\\
low-level networking routines.
URL:=http://sourceforge.net/projects/libdnet/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
touch configure.in; \
touch include.m4; \
touch aclocal.m4; \
touch Makefile.in; \
touch configure; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
ac_cv_dnet_bsd_bpf=no \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var/run \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
(cd $(PKG_BUILD_DIR); touch \
configure.in \
include.m4 \
aclocal.m4 \
Makefile.in \
configure \
);
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
);
, \
ac_cv_dnet_bsd_bpf=no \
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libdnet/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdnet.so.* $(1)/usr/lib/
install -m0755 -d $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/dnet $(1)/usr/sbin/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/dnet-config $(STAGING_DIR)/usr/bin/
@ -104,4 +72,11 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libdnet.{a,so*}
endef
define Package/libdnet/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdnet.so.* $(1)/usr/lib/
install -d -m0755 $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/dnet $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,libdnet))

View File

@ -12,12 +12,12 @@ PKG_NAME:=libelf
PKG_VERSION:=0.8.8
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.mr511.de/software/
PKG_MD5SUM:=be84e553686dd50c8b6d520f86f46521
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -26,61 +26,29 @@ define Package/libelf
SECTION:=libs
CATEGORY:=Libraries
TITLE:=ELF object file access library
DESCRIPTION:=ELF object file access library
URL:=http://www.stud.uni-hannover.de/~michael/software/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--enable-elf64=yes \
, \
mr_cv_target_elf=yes \
libelf_64bit=yes \
libelf_cv_struct_elf64_ehdr=yes \
libelf_cv_type_elf64_addr=no \
libelf_cv_struct_elf64_rel=yes \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
--enable-shared \
--enable-static \
--enable-elf64=yes \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
CC="$(TARGET_CC)" LD="$(TARGET_CROSS)ld" ARCH=$(ARCH) \
instroot="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libelf/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libelf.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/libelf* $(STAGING_DIR)/usr/include/
@ -94,4 +62,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libelf.{a,so*}
endef
define Package/libelf/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libelf.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libelf))

View File

@ -26,7 +26,7 @@ define Package/libevent
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Event notification library
DESCRIPTION:=Event notification library for event-driven network servers.\\\
DESCRIPTION:=\
The libevent API provides a mechanism to execute a callback function \\\
when a specific event occurs on a file descriptor or after a timeout \\\
has been reached. Furthermore, libevent also support callbacks due \\\
@ -40,49 +40,18 @@ define Package/libevent
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libevent/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent-$(PKG_VERSION).so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/event.h $(STAGING_DIR)/usr/include/
@ -98,4 +67,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libevent-$(PKG_VERSION).so*
endef
define Package/libevent/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent-$(PKG_VERSION).so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libevent))

View File

@ -12,12 +12,12 @@ PKG_NAME:=libgcrypt
PKG_VERSION:=1.2.1
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://ftp.gnupg.org/gcrypt/libgcrypt/
PKG_MD5SUM:=b6d3217c9333c520fe54d2e8dc5e60ec
PKG_CAT:=bzcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -27,7 +27,7 @@ define Package/libgcrypt
CATEGORY:=Libraries
DEPENDS:=+libgpg-error
TITLE:=GNU crypto library
DESCRIPTION:=The GNU crypto library.\\\
DESCRIPTION:=\
This is a general purpose cryptographic library based on the code from \\\
GnuPG. It provides functions for all cryptograhic building blocks: \\\
symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash \\\
@ -38,52 +38,20 @@ define Package/libgcrypt
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-rpath \
--disable-asm \
--with-gpg-error-prefix="$(STAGING_DIR)/usr" \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libgcrypt/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgcrypt.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/libgcrypt-config $(STAGING_DIR)/usr/bin/
@ -103,4 +71,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/share/aclocal/libgcrypt.m4
endef
define Package/libgcrypt/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgcrypt.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libgcrypt))

View File

@ -12,12 +12,12 @@ PKG_NAME:=libgdbm
PKG_VERSION:=1.8.3
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/gdbm-$(PKG_VERSION)
PKG_SOURCE:=gdbm-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/gdbm
PKG_MD5SUM:=1d1b1d5c0245b1c00aff92da751e9aa1
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/gdbm-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -26,57 +26,24 @@ define Package/libgdbm
SECTION:=libs
CATEGORY:=Libraries
TITLE:=GNU database manager
DESCRIPTION:=GNU database manager.
URL:=http://www.gnu.org/software/gdbm/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
BINOWN=`id -u` \
BINGRP=`id -g` \
$(TARGET_CONFIGURE_OPTS) \
INSTALL_ROOT="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libgdbm/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/gdbm.h $(STAGING_DIR)/usr/include/
@ -90,4 +57,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libgdbm.{a,so*}
endef
define Package/libgdbm/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libgdbm))

View File

@ -12,7 +12,6 @@ PKG_NAME:=libgpg-error
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.gnupg.org/gcrypt/libgpg-error/ \
http://mirrors.rootmode.com/ftp.gnupg.org/libgpg-error/ \
@ -21,6 +20,7 @@ PKG_SOURCE_URL:=ftp://ftp.gnupg.org/gcrypt/libgpg-error/ \
PKG_MD5SUM:=ff409db977e4a4897aa09ea420a28a2f
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -29,7 +29,8 @@ define Package/libgpg-error
SECTION:=libs
CATEGORY:=Libraries
TITLE:=GnuPG error handling helper library
DESCRIPTION:=An helper library for common error codes and descriptions.\\\
DESCRIPTION:=\
An helper library for common error codes and descriptions.\\\
This is a library that defines common error values for all GnuPG \\\
components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, \\\
Libksba, DirMngr, Pinentry, SmartCard Daemon and possibly more in the \\\
@ -38,50 +39,19 @@ define Package/libgpg-error
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-rpath \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libgpg-error/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/gpg-error-config $(STAGING_DIR)/usr/bin/
@ -101,4 +71,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/share/aclocal/gpg-error.m4
endef
define Package/libgpg-error/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libgpg-error))

View File

@ -12,12 +12,12 @@ PKG_NAME:=libid3tag
PKG_VERSION:=0.15.1b
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/mad
PKG_MD5SUM:=e5808ad997ba32c498803822078748c3
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -27,60 +27,27 @@ define Package/libid3tag
CATEGORY:=Libraries
DEPENDS:=+zlib
TITLE:=An ID3 tag manipulation library
DESCRIPTION:=An ID3 tag manipulation library.\\\
DESCRIPTION:=\
libid3tag is a library for reading and (eventually) writing ID3 tags, both \\\
ID3v1 and the various versions of ID3v2.
URL:=http://mad.sourceforge.net/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include" \
LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-rpath \
--with-gnu-ld \
--disable-debugging \
--disable-profiling \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libid3tag/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(STAGING_DIR)/usr/include/
@ -94,4 +61,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libid3tag.{a,so*}
endef
define Package/libid3tag/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libid3tag))

View File

@ -12,13 +12,13 @@ PKG_NAME:=libmad
PKG_VERSION:=0.15.1b
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/mad \
ftp://ftp.mars.org/pub/mpeg/
PKG_MD5SUM:=1be543bc30c56fb6bea1d7bf6a64e66c
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -35,7 +35,7 @@ define Package/libmad
SECTION:=libs
CATEGORY:=Libraries
TITLE:=An high-quality MPEG audio decoding library
DESCRIPTION:=An high-quality MPEG audio decoding library.\\\
DESCRIPTION:=\
MAD is a high-quality MPEG audio decoder. It currently supports \\\
MPEG-1 and the MPEG-2 extension to lower sampling frequencies, \\\
as well as the de facto MPEG 2.5 format. All three audio layers - \\\
@ -44,55 +44,21 @@ define Package/libmad
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(strip $(TARGET_CFLAGS))" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-rpath \
--with-gnu-ld \
--enable-fpm=$(FPM) \
--enable-fpm="$(FPM)" \
--disable-debugging \
--enable-speed \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libmad/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmad.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/mad.h $(STAGING_DIR)/usr/include/
@ -106,4 +72,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libmad.{a,so*}
endef
define Package/libmad/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmad.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libmad))

View File

@ -12,12 +12,12 @@ PKG_NAME:=libol
PKG_VERSION:=0.3.17
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.balabit.com/downloads/libol/0.3
PKG_MD5SUM:=28cc52e84bdb472b7830f9ad120a62a7
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -26,44 +26,17 @@ define Package/libol
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Support library for syslog-ng
DESCRIPTION:=Support library for syslog-ng.
URL:=http://www.balabit.com/products/syslog_ng/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
# pass CFLAGS again to override -O2 set by configure
$(MAKE) -C $(PKG_BUILD_DIR) \
CFLAGS="$(TARGET_CFLAGS)" \
@ -71,11 +44,6 @@ define Build/Compile
all install
endef
define Package/libol/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libol.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/libol-config $(STAGING_DIR)/usr/bin/
@ -92,4 +60,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libol.{*a,so*}
endef
define Package/libol/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libol.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libol))

View File

@ -12,12 +12,12 @@ PKG_NAME:=libosip2
PKG_VERSION:=2.2.0
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/osip
PKG_MD5SUM:=f1237af0250c59b318bd64a59f5750ea
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -27,61 +27,29 @@ define Package/libosip2
CATEGORY:=Libraries
DEPENDS:=+libpthread
TITLE:=The GNU oSIP library
DESCRIPTION:=The GNU oSIP library.\\\
DESCRIPTION:=\
GNU oSIP library, a Session Initiation Protocol (SIP) implementation.
URL:=http://www.gnu.org/software/osip/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(strip $(TARGET_CFLAGS))" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--with-gnu-ld \
--disable-debug \
--disable-trace \
--enable-pthread \
--enable-semaphore \
--enable-ntimer \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libosip2/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/osip{,parser}2 $(STAGING_DIR)/usr/include/
@ -98,4 +66,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/pkgconfig/libosip2.pc
endef
define Package/libosip2/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libosip2))

View File

@ -12,12 +12,12 @@ PKG_NAME:=libpng
PKG_VERSION:=1.2.8
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-config
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-config.tar.gz
PKG_SOURCE_URL:=@SF/libpng
PKG_MD5SUM:=e5a39003eed16103cbbd3b6a8bc6b1f9
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-config
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -27,55 +27,23 @@ define Package/libpng
CATEGORY:=Libraries
DEPENDS:=+zlib
TITLE:=A PNG format files handling library
DESCRIPTION:=A PNG (Portable Network Graphics) format files handling library.
URL:=http://www.libpng.org/pub/png/libpng.html
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--with-zlib=$(STAGING_DIR)/usr/ \
);
--with-zlib="$(STAGING_DIR)/usr" \
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libpng/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpng{,12}.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/libpng{,12}-config $(STAGING_DIR)/usr/bin/
@ -99,4 +67,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/pkgconfig/libpng{,12}.pc
endef
define Package/libpng/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpng{,12}.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libpng))

View File

@ -12,7 +12,6 @@ PKG_NAME:=libtasn1
PKG_VERSION:=0.2.13
PKG_RELEASE:=0
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.gnutls.org/pub/gnutls/libtasn1/ \
ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/libtasn1/ \
@ -22,6 +21,7 @@ PKG_SOURCE_URL:=ftp://ftp.gnutls.org/pub/gnutls/libtasn1/ \
PKG_MD5SUM:=d124b11908cfb88883fe71472c25d53a
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -30,63 +30,33 @@ define Package/libtasn1
SECTION:=libs
CATEGORY:=Libraries
TITLE:=An ASN.1 and DER structures manipulation library
DESCRIPTION:=An ASN.1 and DER structures manipulation library. \\\
DESCRIPTION:=\
This is a library for Abstract Syntax Notation One (ASN.1) and \\\
Distinguish Encoding Rules (DER) manipulation.
URL:=ftp://ftp.gnutls.org/pub/gnutls/libtasn1/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
touch configure.ac ; \
touch acinclude.m4 ; \
touch aclocal.m4 ; \
touch Makefile.in ; \
touch config.h.in ; \
touch configure ; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
(cd $(PKG_BUILD_DIR); touch \
configure.ac \
acinclude.m4 \
aclocal.m4 \
Makefile.in \
config.h.in \
configure \
);
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-rpath \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libtasn1/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/libtasn1-config $(STAGING_DIR)/usr/bin/
@ -106,4 +76,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/share/aclocal/libtasn1.m4
endef
define Package/libtasn1/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libtasn1))

View File

@ -12,12 +12,12 @@ PKG_NAME:=libusb
PKG_VERSION:=0.1.10a
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/libusb
PKG_MD5SUM:=c6062b29acd2cef414bcc34e0decbdd1
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -26,55 +26,22 @@ define Package/libusb
SECTION:=libs
CATEGORY:=Libraries
TITLE:=A library for accessing Linux USB devices
DESCRIPTION:=A library for accessing Linux USB devices.
URL:=http://libusb.sourceforge.net/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
CC="$(TARGET_CC)" LD="$(TARGET_CROSS)ld" ARCH=$(ARCH) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libusb/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb*.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/libusb-config $(STAGING_DIR)/usr/bin/
@ -91,4 +58,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libusb*.{a,so*}
endef
define Package/libusb/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb*.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libusb))

View File

@ -12,12 +12,12 @@ PKG_NAME:=libvorbisidec
PKG_VERSION:=1.2.0-dave
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://users.tpg.com.au/davico/openwrt/
PKG_MD5SUM:=cb8e51aab92ef164f8e0e8853f7164fa
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -26,7 +26,7 @@ define Package/libvorbisidec
SECTION:=libs
CATEGORY:=Libraries
TITLE:=A fixed-point Ogg/Vorbis decoder library
DESCRIPTION:=A fixed-point Ogg/Vorbis decoder library.\\\
DESCRIPTION:=\
libvorbisidec is "tremor", a fixed-point implementation of libvorbis.\\\
It also has libogg built-in. It is suitable as a replacement for \\\
libvorbis and libogg in tremor-aware applications.\\\
@ -35,52 +35,18 @@ define Package/libvorbisidec
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(strip $(TARGET_CFLAGS))" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-rpath \
--with-gnu-ld \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libvorbisidec/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(STAGING_DIR)/usr/include/
@ -94,4 +60,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libvorbisidec.{a,so*}
endef
define Package/libvorbisidec/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libvorbisidec))

View File

@ -12,13 +12,13 @@ PKG_NAME:=libxml2
PKG_VERSION:=2.6.20
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://xmlsoft.org/sources/ \
ftp://fr.rpmfind.net/pub/libxml/
PKG_MD5SUM:=8f0b3ce721bda11401e656b90ba4e78c
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -28,40 +28,15 @@ define Package/libxml2
CATEGORY:=Libraries
DEPENDS:=+libpthread +zlib
TITLE:=Gnome XML library
DESCRIPTION:=A library for manipulating XML and HTML resources.
DESCRIPTION:=\
A library for manipulating XML and HTML resources.
URL:=http://xmlsoft.org/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(strip $(TARGET_CFLAGS))" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-rpath \
--with-gnu-ld \
--without-c14n \
--without-catalog \
--without-debug \
@ -89,22 +64,15 @@ define Build/Configure
--with-xpath \
--with-xptr \
--with-zlib \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libxml2/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libxml2.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/xml2-config $(STAGING_DIR)/usr/bin/
@ -131,4 +99,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/pkgconfig/libxml-2.0.pc
endef
define Package/libxml2/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libxml2.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libxml2))

View File

@ -12,13 +12,13 @@ PKG_NAME:=libxslt
PKG_VERSION:=1.1.14
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://xmlsoft.org/sources/ \
ftp://fr.rpmfind.net/pub/libxml/
PKG_MD5SUM:=db71660bb7d01ccd4e6be990af8d813b
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -28,40 +28,15 @@ define Package/libxslt
CATEGORY:=Libraries
DEPENDS:=+libxml2
TITLE:=Gnome XSLT library
DESCRIPTION:=A library for XML transformation using XSLT.
DESCRIPTION:=\
A library for XML transformation using XSLT.
URL:=http://xmlsoft.org/XSLT/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(strip $(TARGET_CFLAGS))" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/libxml2" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-rpath \
--with-gnu-ld \
--with-libxml-prefix="$(STAGING_DIR)/usr" \
--with-libxml-include-prefix="$(STAGING_DIR)/usr/include" \
--with-libxml-libs-prefix="$(STAGING_DIR)/usr/lib" \
@ -70,22 +45,17 @@ define Build/Configure
--without-debug \
--without-mem-debug \
--without-debugger \
);
, \
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/libxml2" \
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libxslt/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libxslt.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/xslt-config $(STAGING_DIR)/usr/bin/
@ -113,4 +83,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/pkgconfig/libxslt.pc
endef
define Package/libxslt/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libxslt.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libxslt))

View File

@ -12,12 +12,12 @@ PKG_NAME:=lzo
PKG_VERSION:=2.02
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.oberhumer.com/opensource/lzo/download/
PKG_MD5SUM:=6760e5819f4238328709bf93bf10071c
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -26,55 +26,23 @@ define Package/liblzo
SECTION:=libs
CATEGORY:=Libraries
TITLE:=A real-time data compression library
DESCRIPTION:=A real-time data compression library.
URL:=http://www.oberhumer.com/opensource/lzo/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(strip $(TARGET_CFLAGS))" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
CFLAGS_O="$(TARGET_CFLAGS)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/liblzo/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.so.* $(1)/usr/lib
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(STAGING_DIR)/usr/include/
@ -88,4 +56,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/liblzo2.{a,so*}
endef
define Package/liblzo/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.so.* $(1)/usr/lib
endef
$(eval $(call BuildPackage,liblzo))

View File

@ -12,7 +12,6 @@ PKG_NAME:=mysql
PKG_VERSION:=5.0.18
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=\
http://mysql.planetmirror.com/Downloads/MySQL-5.0/ \
@ -22,7 +21,9 @@ PKG_SOURCE_URL:=\
PKG_MD5SUM:=f18153b0239aaa03fc5a751f2d82cb71
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
PKG_BUILDDEP:=libncurses libreadline
include $(INCLUDE_DIR)/package.mk
@ -32,44 +33,18 @@ define Package/libmysqlclient
CATEGORY:=Libraries
DEPENDS:=zlib
TITLE:=MySQL client library
DESCRIPTION:=MySQL client library.
URL:=http://dev.mysql.com/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
touch configure.in; \
touch aclocal.m4; \
touch Makefile.in; \
touch config.h.in; \
touch configure; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CXXFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
mysql_cv_compress=yes \
mysql_cv_gethostname_style=glibc2 \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
(cd $(PKG_BUILD_DIR); touch \
configure.in \
aclocal.m4 \
Makefile.in \
config.h.in \
configure \
);
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-assembler \
@ -89,6 +64,9 @@ define Build/Configure
--without-bench \
--without-readline \
--with-named-thread-libs=-lpthread \
, \
mysql_cv_compress=yes \
mysql_cv_gethostname_style=glibc2 \
);
endef
@ -116,11 +94,6 @@ define Build/Compile
install
endef
define Package/libmysqlclient/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/mysql/libmysqlclient.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/mysql_config $(STAGING_DIR)/usr/bin/
@ -138,4 +111,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/mysql
endef
define Package/libmysqlclient/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/mysql/libmysqlclient.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libmysqlclient))

View File

@ -12,7 +12,6 @@ PKG_NAME:=opencdk
PKG_VERSION:=0.5.5
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=ftp://ftp.gnutls.org/pub/gnutls/opencdk/ \
ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/opencdk/ \
@ -22,6 +21,7 @@ PKG_SOURCE_URL:=ftp://ftp.gnutls.org/pub/gnutls/opencdk/ \
PKG_MD5SUM:=aaff60107f0153873192ffda00699a96
PKG_CAT:=bzcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -31,7 +31,7 @@ define Package/libopencdk
CATEGORY:=Libraries
DEPENDS:=+libgcrypt
TITLE:=The Open Crypto Development Kit library
DESCRIPTION:=The Open Crypto Development Kit library.\\\
DESCRIPTION:=\
This library provides basic parts of the OpenPGP message format.\\\
For reference, please read the rfc2440.txt in the doc/ directory.\\\
Due to some possible security problems, the library also implements \\\
@ -41,57 +41,27 @@ define Package/libopencdk
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
touch configure.ac ; \
touch acinclude.m4 ; \
touch aclocal.m4 ; \
touch Makefile.in ; \
touch config.h.in ; \
touch configure ; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
(cd $(PKG_BUILD_DIR); touch \
configure.ac \
acinclude.m4 \
aclocal.m4 \
Makefile.in \
config.h.in \
configure \
);
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-rpath \
--with-libgcrypt-prefix="$(STAGING_DIR)/usr" \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libopencdk/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libopencdk.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/opencdk-config $(STAGING_DIR)/usr/bin/
@ -108,4 +78,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libopencdk.{a,so*}
endef
define Package/libopencdk/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libopencdk.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libopencdk))

View File

@ -12,52 +12,28 @@ PKG_NAME:=pcre
PKG_VERSION:=5.0
PKG_RELEASE:=3
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@SF/pcre
PKG_MD5SUM:=813850808894d99fb5b1c41ec6335d4f
PKG_CAT:=bzcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/libpcre
SECTION:=libs
CATEGORY:=Libraries
TITLE:=A Perl Compatible Regular Expression library
DESCRIPTION:=A Perl Compatible Regular Expression library.
URL:=http://www.pcre.org/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=$(STAGING_DIR)/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--enable-utf8 \
);
)
endef
define Build/Compile
@ -72,11 +48,6 @@ define Build/Compile
all
endef
define Package/libpcre/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/.libs/libpcre{,posix}.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/bin
$(CP) $(PKG_BUILD_DIR)/pcre-config $(STAGING_DIR)/usr/bin/
@ -93,4 +64,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libpcre{,posix}.{a,so*}
endef
define Package/libpcre/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/.libs/libpcre{,posix}.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libpcre))

View File

@ -12,27 +12,32 @@ PKG_NAME:=radiusclient-ng
PKG_VERSION:=0.5.2
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://download.berlios.de/radiusclient-ng/
PKG_MD5SUM:=c54eb70e964bdd22dd44b39a9b4df8ca
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
define Package/libradiusclient-ng
SECTION:=libs
CATEGORY:=Libraries
TITLE:=A RADIUS client library
DESCRIPTION:=A RADIUS client library.\\\
define Package/radiusclient-ng/Default
DESCRIPTION:=\
Purpose of this project is to build a portable, easy-to-use and standard \\\
compliant library suitable for developing free and commercial software \\\
that need support for RADIUS protocol (RFCs 2128 and 2139).\\\
that need support for RADIUS protocol (RFCs 2128 and 2139).
URL:=http://developer.berlios.de/projects/radiusclient-ng/
endef
define Package/libradiusclient-ng
$(call Package/radiusclient-ng/Default)
SECTION:=libs
CATEGORY:=Libraries
TITLE:=RADIUS client library
DESCRIPTION+=\\\
\\\
This package contains shared libraries, needed by other programs.
URL:=http://developer.berlios.de/projects/radiusclient-ng/
endef
define Package/libradiusclient-ng/conffiles
@ -43,72 +48,29 @@ define Package/libradiusclient-ng/conffiles
endef
define Package/radiusclient-ng
$(call Package/radiusclient-ng/Default)
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libradiusclient-ng
TITLE:=A RADIUS client
DESCRIPTION:=A RADIUS client.\\\
Purpose of this project is to build a portable, easy-to-use and standard \\\
compliant library suitable for developing free and commercial software \\\
that need support for RADIUS protocol (RFCs 2128 and 2139).\\\
TITLE:=RADIUS client
DESCRIPTION+=\\\
\\\
This package contains a RADIUS client.
URL:=http://www.balabit.com/products/syslog_ng/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-rpath \
--with-gnu-ld \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libradiusclient-ng/install
install -d -m0755 $(1)/etc
$(CP) $(PKG_INSTALL_DIR)/etc/radiusclient-ng $(1)/etc/
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libradiusclient-ng.so.* $(1)/usr/lib/
endef
define Package/radiusclient-ng/install
install -d -m0755 $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/rad{acct,iusclient,login,status} $(1)/usr/sbin/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/radiusclient-ng.h $(STAGING_DIR)/usr/include/
@ -122,5 +84,17 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libradiusclient-ng.{a,so}*
endef
define Package/libradiusclient-ng/install
install -d -m0755 $(1)/etc
$(CP) $(PKG_INSTALL_DIR)/etc/radiusclient-ng $(1)/etc/
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libradiusclient-ng.so.* $(1)/usr/lib/
endef
define Package/radiusclient-ng/install
install -d -m0755 $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/rad{acct,iusclient,login,status} $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,libradiusclient-ng))
$(eval $(call BuildPackage,radiusclient-ng))

View File

@ -12,12 +12,12 @@ PKG_NAME:=readline
PKG_VERSION:=5.1
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/readline
PKG_MD5SUM:=7ee5a692db88b30ca48927a13fd60e46
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -26,7 +26,7 @@ define Package/libreadline
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Command lines edition library
DESCRIPTION:=Command lines edition library\\\
DESCRIPTION:=\
The Readline library provides a set of functions for use by applications \\\
that allow users to edit command lines as they are typed in. Both Emacs \\\
and vi editing modes are available. The Readline library includes \\\
@ -37,50 +37,19 @@ define Package/libreadline
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(strip $(TARGET_CFLAGS))" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--without-curses \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libreadline/install
install -m0755 -d $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/readline $(STAGING_DIR)/usr/include/
@ -94,4 +63,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/lib{history,readline}.{a,so*}
endef
define Package/libreadline/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libreadline))

View File

@ -12,65 +12,36 @@ PKG_NAME:=serdisplib
PKG_VERSION:=1.96
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/serdisplib
PKG_MD5SUM:=b074e02d8d63f34cba8ec45c23f63f78
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/serdisplib
SECTION:=libs
CATEGORY:=Libraries
TITLE:=A display control library
DESCRIPTION:=A display control library.\\\
DESCRIPTION:=\
serdisplib is a library to drive serial and parallel displays \\\
with built-in controllers.
URL:=http://serdisplib.sourceforge.net/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--disable-static \
--with-gnu-ld \
);
--enable-static \
)
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) all
endef
define Package/serdisplib/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(1)/usr/lib
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_BUILD_DIR)/include/serdisplib $(STAGING_DIR)/usr/include/
@ -84,4 +55,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/libserdisp.{a,so*}
endef
define Package/serdisplib/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(1)/usr/lib
endef
$(eval $(call BuildPackage,serdisplib))

View File

@ -12,12 +12,12 @@ PKG_NAME:=speex
PKG_VERSION:=1.1.8
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://us.speex.org/download
PKG_MD5SUM:=734892c8ca5e7e835828048a1289a0cc
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -26,7 +26,8 @@ define Package/libspeex
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Open source speech compression codec library
DESCRIPTION:=Open source patent-free speech compression codec library.\\\
DESCRIPTION:=\
Open source patent-free speech compression codec library.\\\
Speex is an Open Source/Free Software patent-free audio compression \\\
format designed for speech. The Speex Project aims to lower the \\\
barrier of entry for voice applications by providing a free \\\
@ -39,53 +40,20 @@ define Package/libspeex
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(strip $(TARGET_CFLAGS))" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-rpath \
--with-gnu-ld \
--disable-oggtest \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
bin_PROGRAMS="" \
all install
endef
define Package/libspeex/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.so.* $(1)/usr/lib/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/speex $(STAGING_DIR)/usr/include/
@ -104,4 +72,9 @@ define Build/UninstallDev
$(STAGING_DIR)/usr/lib/pkgconfig/speex.pc
endef
define Package/libspeex/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libspeex))

View File

@ -12,50 +12,54 @@ PKG_NAME:=sqlite2
PKG_VERSION:=2.8.17
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/sqlite-$(PKG_VERSION)
PKG_SOURCE:=sqlite-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.sqlite.org/
PKG_MD5SUM:=838dbac20b56d2c4292e98848505a05b
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/sqlite-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
PKG_BUILDDEP:=libncurses libreadline
include $(INCLUDE_DIR)/package.mk
define Package/sqlite2/Default
TITLE:=SQLite (v2.x) database engine
DESCRIPTION:=\
SQLite is a small C library that implements a self-contained, embeddable, \\\
zero-configuration SQL database engine.
URL:=http://www.sqlite.org/
endef
define Package/libsqlite2
$(call Package/sqlite2/Default)
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Self-contained SQL database engine
DESCRIPTION:=Self-contained, embeddable, zero-configuration SQL database engine.\\\
SQLite is a small C library that implements a self-contained, embeddable, \\\
zero-configuration SQL database engine.\\\
TITLE+= (library)
DESCRIPTION+=\\\
\\\
This package contains the shared library, needed by other programs.
URL:=http://www.sqlite.org/
This package contains the SQLite (v2.x) shared library, used by other programs.
endef
define Package/sqlite2-cli
$(call Package/sqlite2/Default)
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+libsqlite2 +libncurses +libreadline
TITLE:=Command line interface for SQLite
DESCRIPTION:=Command line interface for SQLite.\\\
SQLite is a small C library that implements a self-contained, embeddable, \\\
zero-configuration SQL database engine.\\\
TITLE+= (cli)
DESCRIPTION+=\\\
\\\
This package contains a terminal-based front-end to the SQLite library \\\
This package contains a terminal-based front-end to the SQLite (v2.x) library \\\
that can evaluate queries interactively and display the results in \\\
multiple formats.
URL:=http://www.sqlite.org/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
, \
config_BUILD_CC="$(HOSTCC)" \
config_BUILD_CFLAGS="-O2" \
config_TARGET_CC="$(TARGET_CC)" \
@ -63,48 +67,15 @@ define Build/Configure
config_TARGET_READLINE_INC="-I$(STAGING_DIR)/usr/include" \
config_TARGET_READLINE_LIBS="-L$(STAGING_DIR)/usr/lib -lreadline -lncurses" \
config_TARGET_TCL_INC="-DNO_TCL=1" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
--enable-shared \
--enable-static \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libsqlite2/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsqlite.so.* $(1)/usr/lib/
endef
define Package/sqlite2-cli/install
install -d -m0755 $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/sqlite $(1)/usr/bin/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/sqlite.h $(STAGING_DIR)/usr/include/
@ -117,11 +88,20 @@ define Build/InstallDev
endef
define Build/UninstallDev
rm -rf \
$(STAGING_DIR)/usr/include/sqlite.h \
rm -rf $(STAGING_DIR)/usr/include/sqlite.h \
$(STAGING_DIR)/usr/lib/libsqlite.{a,so*} \
$(STAGING_DIR)/usr/lib/pkgconfig/sqlite.pc
endef
define Package/libsqlite2/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsqlite.so.* $(1)/usr/lib/
endef
define Package/sqlite2-cli/install
install -d -m0755 $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/sqlite $(1)/usr/bin/
endef
$(eval $(call BuildPackage,libsqlite2))
$(eval $(call BuildPackage,sqlite2-cli))

View File

@ -12,100 +12,69 @@ PKG_NAME:=sqlite
PKG_VERSION:=3.3.3
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.sqlite.org/
PKG_MD5SUM:=eb5d9d7e7853b3af78e767d709b7fced
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
PKG_BUILDDEP:=libncurses libreadline
include $(INCLUDE_DIR)/package.mk
define Package/sqlite3/Default
TITLE:=SQLite (v3.x) database engine
DESCRIPTION:=\
SQLite is a small C library that implements a self-contained, embeddable, \\\
zero-configuration SQL database engine.
URL:=http://www.sqlite.org/
endef
define Package/libsqlite3
$(call Package/sqlite3/Default)
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Self-contained SQL database engine
DESCRIPTION:=Self-contained, embeddable, zero-configuration SQL database engine.\\\
SQLite is a small C library that implements a self-contained, embeddable, \\\
zero-configuration SQL database engine.\\\
\\\
This package contains the shared library, needed by other programs.
URL:=http://www.sqlite.org/
TITLE+= (library)
DESCRIPTION+=\\\
This package contains the SQLite (v3.x) shared library, used by other programs.
endef
define Package/sqlite3-cli
$(call Package/sqlite3/Default)
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+libsqlite3 +libncurses +libreadline
TITLE:=Command line interface for SQLite
DESCRIPTION:=Command line interface for SQLite.\\\
SQLite is a small C library that implements a self-contained, embeddable, \\\
zero-configuration SQL database engine.\\\
TITLE+= (cli)
DESCRIPTION+=\\\
\\\
This package contains a terminal-based front-end to the SQLite library \\\
This package contains a terminal-based front-end to the SQLite (v3.x) library \\\
that can evaluate queries interactively and display the results in \\\
multiple formats.
URL:=http://www.sqlite.org/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--disable-tcl \
, \
config_BUILD_CC="$(HOSTCC)" \
config_BUILD_CFLAGS="-O2" \
config_TARGET_CC="$(TARGET_CC)" \
config_TARGET_CFLAGS="$(TARGET_CFLAGS)" \
config_TARGET_READLINE_INC="-I$(STAGING_DIR)/usr/include" \
config_TARGET_READLINE_LIBS="-L$(STAGING_DIR)/usr/lib -lreadline -lncurses" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
--enable-shared \
--enable-static \
--disable-tcl \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/libsqlite3/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsqlite3.so.* $(1)/usr/lib/
endef
define Package/sqlite3-cli/install
install -d -m0755 $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/sqlite3 $(1)/usr/bin/
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/sqlite3.h $(STAGING_DIR)/usr/include/
@ -118,11 +87,20 @@ define Build/InstallDev
endef
define Build/UninstallDev
rm -rf \
$(STAGING_DIR)/usr/include/sqlite3.h \
rm -rf $(STAGING_DIR)/usr/include/sqlite3.h \
$(STAGING_DIR)/usr/lib/libsqlite3.{a,so*} \
$(STAGING_DIR)/usr/lib/pkgconfig/sqlite3.pc
endef
define Package/libsqlite3/install
install -d -m0755 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsqlite3.so.* $(1)/usr/lib/
endef
define Package/sqlite3-cli/install
install -d -m0755 $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/sqlite3 $(1)/usr/bin/
endef
$(eval $(call BuildPackage,libsqlite3))
$(eval $(call BuildPackage,sqlite3-cli))

View File

@ -11,10 +11,10 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=chillispot
PKG_VERSION:=1.1.0
PKG_RELEASE:=1
PKG_MD5SUM:=9d2597756af3fa14d7331b4a3651fc9b
PKG_SOURCE_URL:=http://www.chillispot.org/download
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.chillispot.org/download
PKG_MD5SUM:=9d2597756af3fa14d7331b4a3651fc9b
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
@ -27,7 +27,7 @@ define Package/chillispot
CATEGORY:=Network
DEPENDS:=@+PACKAGE_KMOD_TUN
TITLE:=Wireless LAN HotSpot controller
DESCRIPTION:=Wireless LAN HotSpot controller\\\
DESCRIPTION:=\
ChilliSpot is an open source captive portal or wireless LAN \\\
access point controller. It is used for authenticating users \\\
of a wireless LAN. It supports web based login which is today's \\\
@ -42,43 +42,10 @@ define Package/chillispot/conffiles
/etc/chilli.conf
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
--enable-shared \
--disable-static \
--with-gnu-ld \
);
endef
# uses GNU configure
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef

View File

@ -12,20 +12,20 @@ PKG_NAME:=ez-ipupdate
PKG_VERSION:=3.0.11b8
PKG_RELEASE:=2
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/e/ez-ipupdate \
http://ftp.de.debian.org/debian/pool/main/e/ez-ipupdate
PKG_MD5SUM:=000211add4c4845ffa4211841bff4fb0
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/ez-ipupdate
SECTION:=net
CATEGORY:=Network
TITLE:=Dynamic DNS services client
DESCRIPTION:=Dynamic DNS services client.
URL:=http://ez-ipupdate.com/
endef
@ -33,44 +33,19 @@ define Package/ez-ipupdate/conffiles
/etc/ez-ipupdate.conf
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
);
endef
# uses GNU configure
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)
endef
define Package/ez-ipupdate/install
install -d -m0755 $(1)/etc
install -m0600 ./files/$(PKG_NAME).conf $(1)/etc/
install -d -m0755 $(1)/etc/hotplug.d/iface
install -m0755 ./files/$(PKG_NAME).hotplug $(1)/etc/hotplug.d/iface/10-$(PKG_NAME)
install -d -m0755 $(1)/usr/sbin
install -m0755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
install -m0755 $(PKG_BUILD_DIR)/ez-ipupdate $(1)/usr/sbin/
install -d -m0755 $(1)/etc
install -m0600 ./files/ez-ipupdate.conf $(1)/etc/
install -d -m0755 $(1)/etc/hotplug.d/iface
install -m0755 ./files/ez-ipupdate.hotplug $(1)/etc/hotplug.d/iface/10-ez-ipupdate
endef
$(eval $(call BuildPackage,ez-ipupdate))

View File

@ -1,3 +1,4 @@
#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
@ -10,10 +11,10 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=gmediaserver
PKG_VERSION:=0.9.0
PKG_RELEASE:=1
PKG_MD5SUM:=93de0f8dcbc1353a0d0dd5b5ab4b3142
PKG_SOURCE_URL:=http://savannah.nongnu.org/download/gmediaserver/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://savannah.nongnu.org/download/gmediaserver/
PKG_MD5SUM:=93de0f8dcbc1353a0d0dd5b5ab4b3142
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
@ -26,65 +27,33 @@ define Package/gmediaserver
CATEGORY:=Network
DEPENDS:=+id3lib +libupnp
TITLE:=An UPnP music media server
DESCRIPTION:=An UPnP music media server.
URL:=http://www.nongnu.org/gmediaserver/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
LIBS=" -lixml -lthreadutil -lupnp -luClibc++ -lz" \
am_cv_func_iconv=no \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
--enable-shared \
--disable-static \
$(call Build/Configure/Default, \
--disable-rpath \
--with-gnu-ld \
--with-id3lib="$(STAGING_DIR)/usr" \
--with-libupnp="$(STAGING_DIR)/usr" \
);
, \
LIBS=" -lixml -lthreadutil -lupnp -luClibc++ -lz" \
am_cv_func_iconv=no \
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/gmediaserver/install
install -m0755 -d $(1)/etc/default
install -m0644 ./files/gmediaserver.default $(1)/etc/default/gmediaserver
install -m0755 -d $(1)/etc/init.d
install -m0755 ./files/gmediaserver.init $(1)/etc/init.d/gmediaserver
install -m0755 -d $(1)/usr/sbin
install -d -m0755 $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/gmediaserver $(1)/usr/sbin/
$(RSTRIP) $(1)
$(IPKG_BUILD) $(1) $(PACKAGE_DIR)
install -d -m0755 $(1)/etc/default
install -m0644 ./files/gmediaserver.default $(1)/etc/default/gmediaserver
install -d -m0755 $(1)/etc/init.d
install -m0755 ./files/gmediaserver.init $(1)/etc/init.d/gmediaserver
endef
$(eval $(call BuildPackage,gmediaserver))

View File

@ -1,3 +1,4 @@
#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
@ -10,10 +11,10 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=icecast
PKG_VERSION:=2.3.0
PKG_RELEASE:=1
PKG_MD5SUM:=35256fbc4a93571662af2ed18fbbfcc5
PKG_SOURCE_URL:=http://downloads.us.xiph.org/releases/icecast/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://downloads.us.xiph.org/releases/icecast/
PKG_MD5SUM:=35256fbc4a93571662af2ed18fbbfcc5
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
@ -26,47 +27,19 @@ define Package/icecast
CATEGORY:=Network
DEPENDS:=+libcurl +libvorbisidec +libxml2 +libxslt
TITLE:=A streaming media server for Ogg/Vorbis and MP3 audio streams
DESCRIPTION:=Icecast is a streaming media server which currently supports Ogg\\\
DESCRIPTION:=\
Icecast is a streaming media server which currently supports Ogg \\\
Vorbis and MP3 audio streams. It can be used to create an Internet \\\
radio station or a privately running jukebox and many things in \\\
between. It is very versatile in that new formats can be added \\\
relatively easily and supports open standards for commuincation and \\\
interaction.\\\
interaction.
URL:=http://www.icecast.org/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/libxml2 " \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
--enable-shared \
--disable-static \
--disable-rpath \
--with-gnu-ld \
$(call Build/Configure/Default, \
--enable-yp \
--with-curl="yes" \
--with-curl-config="$(STAGING_DIR)/usr/bin/curl-config" \
@ -75,12 +48,12 @@ define Build/Configure
--with-theora="no" \
--with-vorbis="$(STAGING_DIR)/usr" \
--with-xslt-config="$(STAGING_DIR)/usr/bin/xslt-config" \
);
, \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/libxml2 " \
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install

View File

@ -1,3 +1,9 @@
#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
@ -5,10 +11,10 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=knock
PKG_VERSION:=0.5
PKG_RELEASE:=1
PKG_MD5SUM:=ca09d61458974cff90a700aba6120891
PKG_SOURCE_URL:=http://www.zeroflux.org/knock/files/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.zeroflux.org/knock/files/
PKG_MD5SUM:=ca09d61458974cff90a700aba6120891
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
@ -16,12 +22,13 @@ PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
define Package/knock
define Package/knock/Default
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpcap
TITLE:=A port-knocking client
DESCRIPTION:=It listens to all traffic on an ethernet (or PPP) interface,\\\
TITLE:=Port-knocking
DESCRIPTION:=\
It listens to all traffic on an ethernet (or PPP) interface, \\\
looking for special "knock" sequences of port-hits. A client \\\
makes these port-hits by sending a TCP (or UDP) packet to a \\\
port on the server. This port need not be open -- since \\\
@ -29,70 +36,40 @@ knockd listens at the link-layer level, it sees all traffic\\\
even if it's destined for a closed port. When the server \\\
detects a specific sequence of port-hits, it runs a command \\\
defined in its configuration file. This can be used to open \\\
up holes in a firewall for quick access.\\\
up holes in a firewall for quick access.
URL:=http://www.zeroflux.org/cgi-bin/cvstrac/knock/wiki
endef
define Package/knock
$(call Package/knock/Default)
TITLE+= client
DESCRIPTION+=\\\
\\\
This package contains the port-knocking client.
endef
define Package/knockd
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpcap
TITLE:=A port-knocking server
DESCRIPTION:=It listens to all traffic on an ethernet (or PPP) interface,\\\
looking for special "knock" sequences of port-hits. A client\\\
makes these port-hits by sending a TCP (or UDP) packet to a\\\
port on the server. This port need not be open -- since\\\
knockd listens at the link-layer level, it sees all traffic\\\
even if it's destined for a closed port. When the server\\\
detects a specific sequence of port-hits, it runs a command\\\
defined in its configuration file. This can be used to open\\\
up holes in a firewall for quick access.\\\
URL:=http://www.zeroflux.org/cgi-bin/cvstrac/knock/wiki
$(call Package/knock/Default)
TITLE+= server
DESCRIPTION+=\\\
\\\
This package contains the port-knocking server.
endef
define Package/knockd/conffiles
/etc/knockd.conf
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
$(call Build/Configure/Default, \
, \
CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
ac_cv_lib_pcap_pcap_open_live=yes \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc/kismet \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
--enable-shared \
--disable-static \
--disable-rpath \
--with-gnu-ld \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
CFLAGS="-I$(STAGING_DIR)/usr/include" \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef

View File

@ -12,12 +12,12 @@ PKG_NAME:=matrixtunnel
PKG_VERSION:=0.1
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://znerol.ch/files
PKG_MD5SUM:=ffbbe0c50cc1863f6080aca302f7e2c8
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -27,55 +27,29 @@ define Package/matrixtunnel
CATEGORY:=Network
DEPENDS:=+libmatrixssl
TITLE:=SSL tunnel based on matrixssl
DESCRIPTION:=SSL tunnel based on matrixssl.\\\
DESCRIPTION:=\
matrixtunnel is a stripped down version of stunnel \\\
based on matrixssl library
based on matrixssl library.
URL:=http://znerol.ch/svn/matrixtunnel/trunk/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/sbin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--without-libiconv-prefix \
--without-libintl-prefix \
--with-matrixssl-src=$(BUILD_DIR)/matrixssl \
);
--with-matrixssl-src="$(BUILD_DIR)/matrixssl" \
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR)/src \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/matrixtunnel/install
install -d -m0755 $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/matrixtunnel $(1)/usr/sbin/
install -d -m0755 $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/matrixtunnel $(1)/usr/bin/
endef
$(eval $(call BuildPackage,matrixtunnel))

View File

@ -11,11 +11,12 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=mtr
PKG_VERSION:=0.69
PKG_RELEASE:=1
PKG_MD5SUM:=58904d6d8d70114195cdeb653d56914c
PKG_SOURCE_URL:=ftp://ftp.bitwizard.nl/mtr/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.bitwizard.nl/mtr/
PKG_MD5SUM:=58904d6d8d70114195cdeb653d56914c
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
@ -26,63 +27,38 @@ define Package/mtr
CATEGORY:=Network
DEPENDS:=+libncurses
TITLE:=Full screen ncurses traceroute tool
DESCRIPTION:=mtr combines the functionality of the 'traceroute' and 'ping' programs\\\
DESCRIPTION:=\
mtr combines the functionality of the 'traceroute' and 'ping' programs \\\
in a single network diagnostic tool.\\\
As mtr starts, it investigates the network connection between the host \\\
mtr runs on and a user-specified destination host. After it \\\
determines the address of each network hop between the machines, \\\
it sends a sequence ICMP ECHO requests to each one to determine the \\\
quality of the link to each machine. As it does this, it prints \\\
running statistics about each machine.\\\
running statistics about each machine.
URL:=http://www.bitwizard.nl/mtr/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
touch configure.in; \
touch aclocal.m4; \
touch Makefile.in; \
touch img/Makefile.in; \
touch stamp-h.in; \
touch config.h.in; \
touch configure; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
ac_cv_lib_resolv_res_mkquery=yes \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
--without-gtk \
(cd $(PKG_BUILD_DIR); touch \
configure.in \
aclocal.m4 \
Makefile.in \
img/Makefile.in \
stamp-h.in \
config.h.in \
configure \
);
$(call Build/Configure/Default, \
--without-gtk \
, \
ac_cv_lib_resolv_res_mkquery=yes \
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
all install
endef

View File

@ -5,18 +5,20 @@
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=nsca
PKG_VERSION:=2.6
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/nagios
PKG_MD5SUM:=d526a3ac3c29648c729c5fb4fb332488
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/send-nsca
@ -24,7 +26,6 @@ define Package/send-nsca
CATEGORY:=Network
DEPENDS:=+libmcrypt
TITLE:=Nagios Service Check Acceptor (NSCA) client
DESCRIPTION:=Nagios Service Check Acceptor (NSCA) client.
URL:=http://www.nagios.org/
endef
@ -33,32 +34,11 @@ define Package/send-nsca/conffiles
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--with-libmcrypt-prefix="$(STAGING_DIR)/usr" \
);
, \
CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
)
endef
define Build/Compile

View File

@ -11,11 +11,12 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=slurm
PKG_VERSION:=0.3.3
PKG_RELEASE:=1
PKG_MD5SUM:=e68d09202b835c644f7f6b7f070f29a2
PKG_SOURCE_URL:=http://www.wormulon.net/files/code/slurm/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.wormulon.net/files/code/slurm/
PKG_MD5SUM:=e68d09202b835c644f7f6b7f070f29a2
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
@ -26,54 +27,32 @@ define Package/slurm
CATEGORY:=Network
DEPENDS:=+libncurses
TITLE:=A realtime network interface monitor
DESCRIPTION:=A realtime network interface monitor with the following features:\\\
* realtime traffic statistics divided into incoming and outgoing\\\
* optional combined view\\\
* can monitor any kind of network interface\\\
* shows detailed statistics about the interface.\\\
* it's themeable\\\
DESCRIPTION:=\
A realtime network interface monitor with the following features: \\\
- realtime traffic statistics divided into incoming and outgoing ;\\\
- optional combined view ;\\\
- can monitor any kind of network interface ;\\\
- shows detailed statistics about the interface ;\\\
- it's themeable.
URL:=http://www.wormulon.net/projects/slurm
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
touch configure.in; \
touch aclocal.m4; \
touch Makefile.in; \
touch config.h.in; \
touch configure; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
(cd $(PKG_BUILD_DIR); touch \
configure.in \
aclocal.m4 \
Makefile.in \
config.h.in \
configure \
);
$(call Build/Configure/Default, \
, \
LIBS="-lncurses" \
ac_cv_lib_ncurses_use_default_colors=yes \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install

View File

@ -11,13 +11,13 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=tcpdump
PKG_VERSION:=3.9.4
PKG_RELEASE:=1
PKG_MD5SUM:=4b64755bbc8ba1af49c747271a6df5b8
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.tcpdump.org/release/ \
http://ftp.gwdg.de/pub/misc/tcpdump/ \
http://www.at.tcpdump.org/ \
http://www.br.tcpdump.org/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=4b64755bbc8ba1af49c747271a6df5b8
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
@ -30,49 +30,21 @@ define Package/tcpdump
CATEGORY:=Network
DEPENDS:=+libpcap
TITLE:=Network monitoring and data acquisition tool
DESCRIPTION:=A tool for network monitoring and data acquisition.
URL:=http://www.tcpdump.org/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
BUILD_CC="$(TARGET_CC)" HOSTCC="$(HOSTCC)" \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
ac_cv_linux_vers=2 \
td_cv_buggygetaddrinfo="no" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
--enable-shared \
--disable-static \
$(call Build/Configure/Default, \
--enable-ipv6 \
--without-crypto \
);
, \
BUILD_CC="$(TARGET_CC)" \
HOSTCC="$(HOSTCC)" \
td_cv_buggygetaddrinfo="no" \
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
CCOPT="$(TARGET_CFLAGS)" INCLS="-I. -I$(STAGING_DIR)/usr/include" \
DESTDIR="$(PKG_INSTALL_DIR)" \

View File

@ -12,48 +12,24 @@ PKG_NAME:=wput
PKG_VERSION:=0.5
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=@SF/wput
PKG_MD5SUM:=441b2e07219f78167b29a7ac33488fff
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/wput
SECTION:=net
CATEGORY:=Network
TITLE:=A wget-like command-line FTP client
DESCRIPTION:=A wget-like command-line FTP client.
URL:=http://itooktheredpill.dyndns.org/wput/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
--enable-shared \
--disable-static \
$(call Build/Configure/Default, \
--disable-g-switch \
)
endef

View File

@ -12,12 +12,12 @@ PKG_NAME:=xinetd
PKG_VERSION:=2.3.13
PKG_RELEASE:=2
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.xinetd.org/
PKG_MD5SUM:=4295b5fe12350f09b5892b363348ac8b
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -26,7 +26,6 @@ define Package/xinetd
SECTION:=net
CATEGORY:=Network
TITLE:=A powerful and secure super-server
DESCRIPTION:=A powerful and secure super-server.
URL:=http://www.xinetd.org/
endef
@ -35,54 +34,26 @@ define Package/xinetd/conffiles
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
--enable-shared \
--disable-static \
$(call Build/Configure/Default, \
--without-libwrap \
--with-loadavg \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
build install
endef
define Package/xinetd/install
install -d -m0755 $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/xinetd $(1)/usr/sbin/
install -d -m0755 $(1)/etc
install -m0644 ./files/xinetd.conf $(1)/etc/xinetd.conf
install -d -m0755 $(1)/etc/xinetd.d
install -d -m0755 $(1)/etc/init.d
install -m0755 ./files/xinetd.init $(1)/etc/init.d/xinetd
install -d -m0755 $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/xinetd $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,xinetd))

View File

@ -11,10 +11,10 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=xsupplicant
PKG_VERSION:=1.2.7
PKG_RELEASE:=1
PKG_MD5SUM:=f66c49cd6e4f331d05bf83513ed91990
PKG_SOURCE_URL:=@SF/open1x
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/open1x
PKG_MD5SUM:=f66c49cd6e4f331d05bf83513ed91990
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
@ -27,8 +27,9 @@ define Package/xsupplicant
CATEGORY:=Network
DEPENDS:=+libopenssl +wireless-tools
TITLE:=A fully compliant 802.1x authenticator
DESCRIPTION:=This software allows a GNU/Linux or BSD workstation to authenticate with\\\
a RADIUS server using 802.1x and various EAP protocols.\\\
DESCRIPTION:=\
This software allows a GNU/Linux or BSD workstation to authenticate with \\\
a RADIUS server using 802.1x and various EAP protocols.
URL:=http://open1x.sourceforge.net/
endef
@ -37,48 +38,22 @@ define Package/xsupplicant/conffiles
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
touch configure.in; \
touch aclocal.m4; \
touch Makefile.in; \
touch configure; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include \
-I$(PKG_BUILD_DIR)/lib/libxsupconfig/ \
-I$(STAGING_DIR)/usr/include/madwifi" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
CC="$(TARGET_CROSS)gcc" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
(cd $(PKG_BUILD_DIR); touch \
configure.in \
aclocal.m4 \
Makefile.in \
configure \
);
$(call Build/Configure/Default, \
--with-openssl="$(STAGING_DIR)/usr" \
--with-madwifi-path="$(STAGING_DIR)/usr/include/madwifi" \
);
, \
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/madwifi" \
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
CC="$(TARGET_CC)" \
DESTDIR=$(PKG_INSTALL_DIR) \
all install
endef

View File

@ -12,12 +12,12 @@ PKG_NAME:=mpd
PKG_VERSION:=0.12.0
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://users.tpg.com.au/davico/openwrt/
PKG_MD5SUM:=65e62cc813f2186dff0f96f164a853f8
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -27,7 +27,7 @@ define Package/mpd
CATEGORY:=Sound
DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec
TITLE:=Music Player Daemon
DESCRIPTION:=Music Player Daemon.\\\
DESCRIPTION:=\
MPD is a music player supporting flac, mp3 and ogg files.\\\
It is typically controlled over a network using one of it's many \\\
clients including mpc(console), gmpc(gnome), phpmp(php) etc.
@ -38,7 +38,8 @@ define Package/mpd/conffiles
/etc/mpd.conf
endef
PKG_CONFIGURE_OPTIONS := \
define Build/Configure
$(call Build/Configure/Default, \
--disable-alsa \
--disable-shout \
--disable-mod \
@ -55,42 +56,11 @@ PKG_CONFIGURE_OPTIONS := \
--with-tremor \
--with-tremor-includes="$(STAGING_DIR)/usr/include" \
--with-tremor-libraries="$(STAGING_DIR)/usr/lib" \
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(strip $(TARGET_CFLAGS))" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(PKG_CONFIGURE_OPTIONS) \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef

View File

@ -12,50 +12,29 @@ PKG_NAME:=gnupg
PKG_VERSION:=1.4.2.1
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/gnupg \
ftp://ftp.gnupg.org/gcrypt/gnupg
PKG_MD5SUM:=2d59ed50d92f69994dbfbe00fe1612e4
PKG_CAT:=bzcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/gnupg
SECTION:=utils
CATEGORY:=Utilities
TITLE:=GNU Privacy Guard
DESCRIPTION:=GNU Privacy Guard (GnuPG).\\\
DESCRIPTION:=\
GPG is an encryption program.
URL:=http://www.gnupg.org/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--disable-rpath \
--with-gnu-ld \
--disable-asm \
--disable-gnupg-iconv \
--disable-card-support \
@ -68,10 +47,12 @@ define Build/Configure
--disable-ftp \
--disable-dns-srv \
--enable-fake-curl \
--disable-nls \
--disable-rpath \
--disable-regex \
);
)
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)
endef
define Package/gnupg/install

View File

@ -12,13 +12,14 @@ PKG_NAME:=lcd4linux
PKG_VERSION:=0.10.0+cvs20051015
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/lcd4linux/ \
http://ftp.de.debian.org/debian/pool/main/l/lcd4linux/
PKG_MD5SUM:=5b5ac629be4bb5c29104fb8f6b7fa444
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
include $(INCLUDE_DIR)/package.mk
define Package/lcd4linux
@ -26,46 +27,25 @@ define Package/lcd4linux
CATEGORY:=Utilities
DEPENDS:=+libncurses
TITLE:=LCD display utility
DESCRIPTION:=LCD display utility.\\\
DESCRIPTION:=\
LCD4Linux is a small program that grabs information from the kernel and \\\
some subsystems and displays it on an external liquid crystal display.
URL:=http://lcd4linux.bulix.org/
endef
# commas are interpreted by the $(call ...) macro, so define a intermediate variable holding our drivers spec
PKG_CONFIGURE_DRIVERS:=all,!PNG,!RouterBoard,!X11
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--without-x \
--with-drivers='all,!PNG,!RouterBoard,!X11' \
--with-drivers="$(PKG_CONFIGURE_DRIVERS)" \
--with-plugins=wireless \
);
)
endef
define Build/Compile
$(call Build/Compile/Default, CFLAGS="$(TARGET_CFLAGS) -Wall")
$(MAKE) -C $(PKG_BUILD_DIR)
endef
define Package/lcd4linux/install

View File

@ -12,12 +12,12 @@ PKG_NAME:=rsync
PKG_VERSION:=2.6.5
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://rsync.samba.org/ftp/rsync/
PKG_MD5SUM:=3691cdf1540d0649ba679edce6bae8fc
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -27,51 +27,27 @@ define Package/rsync
CATEGORY:=Utilities
DEPENDS:=+libpopt
TITLE:=A fast incremental file transfer utility
DESCRIPTION:=A fast incremental file transfer utility.
URL:=http://rsync.samba.org/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
);
$(call Build/Configure/Default, \
--with-included-popt=no \
--disable-debug \
--disable-ipv6 \
--disable-locale \
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/rsync/install
install -d -m0755 $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/rsync $(1)/usr/bin/
endef
$(eval $(call BuildPackage,rsync))

View File

@ -11,10 +11,10 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=screen
PKG_VERSION:=4.0.2
PKG_RELEASE:=1
PKG_MD5SUM:=ed68ea9b43d9fba0972cb017a24940a1
PKG_SOURCE_URL:=@GNU/screen
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/screen
PKG_MD5SUM:=ed68ea9b43d9fba0972cb017a24940a1
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
@ -27,41 +27,13 @@ define Package/screen
CATEGORY:=Utilities
DEPENDS:=+libncurses
TITLE:=Full-screen terminal window manager
DESCRIPTION:=Screen is a full-screen window manager that multiplexes a physical\\\
terminal between several processes, typically interactive shells.\\\
DESCRIPTION:=\
Screen is a full-screen window manager that multiplexes a physical\\\
terminal between several processes, typically interactive shells.
URL:=http://www.gnu.org/software/screen/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
--enable-shared \
--disable-static \
);
endef
# uses GNU configure
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)

View File

@ -12,19 +12,20 @@ PKG_NAME:=setserial
PKG_VERSION:=2.17
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/setserial
PKG_MD5SUM:=c4867d72c41564318e0107745eb7a0f2
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/setserial
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Serial port configuration utility
DESCRIPTION:=Serial port configuration utility.\\\
DESCRIPTION:=\
setserial is a program designed to set and/or report the \\\
configuration information associated with a serial port. This \\\
information includes what I/O port and IRQ a particular \\\
@ -33,31 +34,7 @@ define Package/setserial
URL:=http://setserial.sourceforge.net/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
);
endef
# uses GNU configure
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
@ -65,10 +42,10 @@ define Build/Compile
endef
define Package/setserial/install
install -d -m0755 $(1)/etc/init.d
install -m0755 ./files/serial.init $(1)/etc/init.d/setserial
install -d -m0755 $(1)/usr/sbin
install -m0755 $(PKG_BUILD_DIR)/setserial $(1)/usr/sbin/
install -d -m0755 $(1)/etc/init.d
install -m0755 ./files/serial.init $(1)/etc/init.d/setserial
endef
$(eval $(call BuildPackage,setserial))

View File

@ -12,12 +12,12 @@ PKG_NAME:=usbutils
PKG_VERSION:=0.71
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/linux-usb
PKG_MD5SUM:=479d7c7098ef44cc95e7978fd71c712c
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@ -27,44 +27,17 @@ define Package/usbutils
CATEGORY:=Utilities
DEPENDS:=+libusb
TITLE:=USB devices listing utilities
DESCRIPTION:=USB devices listing utilities.
URL:=http://linux-usb.sourceforge.net/
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
$(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
);
)
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install