Subversion Repositories svnkaklik

Rev

Rev 410 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 410 Rev 497
Line -... Line 1...
-
 
1
# 
-
 
2
# Copyright (C) 2007 OpenWrt.org
-
 
3
#
-
 
4
# This is free software, licensed under the GNU General Public License v2.
-
 
5
# See /LICENSE for more information.
-
 
6
#
1
# $Id: Makefile 1146 2005-06-05 13:32:28Z nbd $
7
# This Makefile is a skeleton
-
 
8
#
-
 
9
# $Id: $
2
 
10
 
3
include $(TOPDIR)/rules.mk
11
include $(TOPDIR)/rules.mk
4
 
12
 
5
PKG_NAME:=indiserver
13
PKG_NAME:=indiserver
6
PKG_VERSION:=0.5
14
PKG_VERSION:=0.5
7
PKG_RELEASE:=1
-
 
8
PKG_MD5SUM:=
-
 
9
 
15
 
10
PKG_SOURCE_URL:=http://download.sourceforge.net/indi
-
 
11
PKG_SOURCE:=indilib-0.5.tar.gz
16
PKG_SOURCE:=indilib-0.5.tar.gz
-
 
17
PKG_SOURCE_URL:=http://download.sourceforge.net/indi
12
PKG_CAT:=zcat
18
PKG_MD5SUM:=
13
 
19
 
14
PKG_BUILD_DIR:=$(BUILD_DIR)/indi
20
PKG_BUILD_DIR:=$(BUILD_DIR)/indi
-
 
21
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
15
 
22
 
16
include $(TOPDIR)/package/rules.mk
23
include $(INCLUDE_DIR)/package.mk
17
 
-
 
18
$(eval $(call PKG_template,INDISERVER,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
-
 
19
 
24
 
20
$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
25
define Package/indiserver
21
	(cd $(PKG_BUILD_DIR); \
26
  SECTION:=utils
22
		$(TARGET_CONFIGURE_OPTS) \
27
  CATEGORY:=Utilities
23
		CFLAGS="$(TARGET_CFLAGS)" \
28
  TITLE:=Instrument Neutral Distributed Interface server
24
		CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
29
  URL:=http://indi.sourceforge.net/
25
		LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
30
  DEPENDS:=+libusb +zlib +libstdcpp
26
		./configure \
31
endef
-
 
32
 
27
			CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti -nostdinc++" \
33
define Package/indiserver/description
28
			CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
34
	INDI is a distributed control protocol designed to operate 
29
			LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
35
	astronomical instrumentation. INDI is small, flexible, easy to parse, 
30
			LIBS="-luClibc++ -lc -lm -lgcc" \
36
	and scalable. It supports common DCS functions 
31
			--target=$(GNU_TARGET_NAME) \
37
	such as remote control, data acquisition, monitoring, and a lot more.
32
			--host=$(GNU_TARGET_NAME) \
-
 
33
			--build=$(GNU_HOST_NAME) \
-
 
34
			--prefix=/usr \
38
endef
35
			--without-libiconv-prefix \
-
 
-
 
39
 
36
			--without-libintl-prefix \
40
CONFIGURE_ARGS += \
37
			--disable-v4l2 \
41
	--disable-v4l2 \
38
			--disable-nls \
42
	--disable-nls \
39
	);
-
 
40
	touch $@
-
 
41
 
43
 
42
$(PKG_BUILD_DIR)/.built:
44
define Build/Compile
-
 
45
	# pass CFLAGS again to override -O2 set by configure
43
	$(MAKE) -C $(PKG_BUILD_DIR)/src \
46
	$(MAKE) -C $(PKG_BUILD_DIR)/src DESTDIR="$(PKG_INSTALL_DIR)" install
44
		CC=$(TARGET_CC)
-
 
45
	touch $@
47
endef
46
 
48
 
47
$(IPKG_INDISERVER):
-
 
48
	mkdir -p $(IDIR_INDISERVER)/usr/sbin
49
define Package/indiserver/install
49
	cp $(PKG_BUILD_DIR)/src/indiserver $(IDIR_INDISERVER)/usr/sbin/
-
 
50
	cp $(PKG_BUILD_DIR)/src/lx200basic $(IDIR_INDISERVER)/usr/sbin/
-
 
51
	cp $(PKG_BUILD_DIR)/src/lx200generic $(IDIR_INDISERVER)/usr/sbin/
-
 
52
	cp $(PKG_BUILD_DIR)/src/v4ldriver $(IDIR_INDISERVER)/usr/sbin/
-
 
53
	cp $(PKG_BUILD_DIR)/src/v4lphilips $(IDIR_INDISERVER)/usr/sbin/
-
 
54
	$(STRIP) $(IDIR_INDISERVER)/usr/sbin/*
50
	$(INSTALL_DIR) $(1)/usr/bin
55
	$(IPKG_BUILD) $(IDIR_INDISERVER) $(PACKAGE_DIR)
51
	$(INSTALL_BIN) $(BUILD_DIR)/indi/src $(1)/usr/bin/
56
 
-
 
57
mostlyclean:
52
endef
58
	$(MAKE) -C $(PKG_BUILD_DIR) clean
-
 
59
	rm -f $(PKG_BUILD_DIR)/.built
-
 
60
 
53
 
-
 
54
$(eval $(call BuildPackage,indiserver))