Subversion Repositories svnkaklik

Rev

Rev 396 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
391 kaklik 1
# $Id: Makefile 1146 2005-06-05 13:32:28Z nbd $
2
 
3
include $(TOPDIR)/rules.mk
4
 
5
PKG_NAME:=indiserver
6
PKG_VERSION:=0.5
7
PKG_RELEASE:=1
8
PKG_MD5SUM:=
9
 
10
PKG_SOURCE_URL:=http://download.sourceforge.net/indi
11
PKG_SOURCE:=indilib-0.5.tar.gz
12
PKG_CAT:=zcat
13
 
14
PKG_BUILD_DIR:=$(BUILD_DIR)/indi
15
 
16
include $(TOPDIR)/package/rules.mk
17
 
18
$(eval $(call PKG_template,INDISERVER,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
 
393 kaklik 20
$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
21
	(cd $(PKG_BUILD_DIR); \
391 kaklik 22
		$(TARGET_CONFIGURE_OPTS) \
23
		CFLAGS="$(TARGET_CFLAGS)" \
393 kaklik 24
		CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
25
		LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
391 kaklik 26
		./configure \
393 kaklik 27
			CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti -nostdinc++" \
28
			CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
29
			LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
30
			LIBS="-luClibc++ -lc -lm -lgcc" \
31
			--target=$(GNU_TARGET_NAME) \
32
			--host=$(GNU_TARGET_NAME) \
33
			--build=$(GNU_HOST_NAME) \
34
			--prefix=/usr \
35
			--without-libiconv-prefix \
36
			--without-libintl-prefix \
37
			--disable-v4l2 \
38
			--disable-nls \
391 kaklik 39
	);
40
	touch $@
41
 
42
$(PKG_BUILD_DIR)/.built:
392 kaklik 43
	$(MAKE) -C $(PKG_BUILD_DIR)/src \
396 kaklik 44
		CC=$(TARGET_CC)
391 kaklik 45
	touch $@
46
 
392 kaklik 47
$(IPKG_INDISERVER):
396 kaklik 48
	mkdir -p $(IDIR_INDISERVER)/usr/sbin
397 kaklik 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/*
392 kaklik 55
	$(IPKG_BUILD) $(IDIR_INDISERVER) $(PACKAGE_DIR)
391 kaklik 56
 
57
mostlyclean:
58
	$(MAKE) -C $(PKG_BUILD_DIR) clean
59
	rm -f $(PKG_BUILD_DIR)/.built
393 kaklik 60