b56a7a3b49
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8525 3c298f89-4303-0410-b956-a3cf2f4a3e73
59 lines
1.6 KiB
Makefile
59 lines
1.6 KiB
Makefile
# 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
|
|
|
|
PKG_NAME:=cbtt
|
|
PKG_VERSION:=20060727
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)80-$(PKG_VERSION)-src.tar.gz
|
|
PKG_SOURCE_URL:=@SF/bnbtusermods
|
|
PKG_MD5SUM:=d6edf0a11d7e68fa3d121e91308f22f5
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)80-$(PKG_VERSION)-src
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/cbtt
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
DEPENDS:=zlib
|
|
MENU:=1
|
|
TITLE:=Bittorrent tracker
|
|
DEPENDS:=+libpthread +uclibcxx +libmysqlclient
|
|
DESCRIPTION:=a C BitTorrent Tracker
|
|
URL:=http://bnbtusermods.sourceforge.net
|
|
endef
|
|
|
|
define Package/cbtt-mysql
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
DEPENDS:=cbtt +libmysqlclient
|
|
TITLE:=Bittorrent tracker with mysql support
|
|
DESCRIPTION:=Bittorrent tracker with mysql support
|
|
URL:=http://bnbtusermods.sourceforge.net
|
|
endef
|
|
|
|
MAKE_FLAGS += \
|
|
LFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/usr/lib/mysql -L. -lz -lmysqlclient -nodefaultlibs -lpthread -luClibc++ -lc -lm -lgcc" \
|
|
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -fno-builtin -fno-rtti -nostdinc++"
|
|
|
|
define Package/cbtt/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bnbt $(1)/usr/bin/
|
|
endef
|
|
|
|
define Package/cbtt-mysql/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bnbtmysql $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,cbtt))
|
|
$(eval $(call BuildPackage,cbtt-mysql))
|