Subversion Repositories svnkaklik

Rev

Details | 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
 
20
$(PKG_BUILD_DIR)/.configured:
21
	(cd $(PKG_BUILD_DIR); rm -rf config.cache; \
22
		$(TARGET_CONFIGURE_OPTS) \
23
		CFLAGS="$(TARGET_CFLAGS)" \
24
		CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
25
		LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
26
		./configure \
27
		--target=$(GNU_TARGET_NAME) \
28
		--host=$(GNU_TARGET_NAME) \
29
		--build=$(GNU_HOST_NAME) \
30
		--program-prefix="" \
31
		--program-suffix="" \
32
		--prefix=/usr \
33
		--exec-prefix=/usr \
34
		--bindir=/usr/bin \
35
		--datadir=/usr/share \
36
		--includedir=/usr/include \
37
		--infodir=/usr/share/info \
38
		--libdir=/usr/lib \
39
		--libexecdir=/usr/lib \
40
		--localstatedir=/var \
41
		--mandir=/usr/share/man \
42
		--sbindir=/usr/sbin \
43
		--sysconfdir=/etc \
44
		--disable-v4l2 \
45
		$(DISABLE_NLS) \
46
		$(DISABLE_LARGEFILE) \
47
	);
48
	touch $@
49
 
50
$(PKG_BUILD_DIR)/.built:
392 kaklik 51
	rm -rf $(PKG_INSTALL_DIR)
52
	mkdir -p $(PKG_INSTALL_DIR)/usr/bin
53
	$(MAKE) -C $(PKG_BUILD_DIR)/src \
54
		$(TARGET_CONFIGURE_OPTS) \
55
		prefix="$(PKG_INSTALL_DIR)/usr"
56
	$(CP) $(PKG_BUILD_DIR)/indi/src $(PKG_INSTALL_DIR)/usr/bin
391 kaklik 57
	touch $@
58
 
392 kaklik 59
$(IPKG_INDISERVER):
60
	install -d -m0755 $(IDIR_INDISERVER)/usr/bin
61
	$(CP) $(PKG_INSTALL_DIR)/usr/bin/indiserver $(IDIR_INDISERVER)/usr/bin
62
	$(RSTRIP) $(IDIR_INDISERVER)
63
	$(IPKG_BUILD) $(IDIR_INDISERVER) $(PACKAGE_DIR)
391 kaklik 64
 
65
mostlyclean:
66
	$(MAKE) -C $(PKG_BUILD_DIR) clean
67
	rm -f $(PKG_BUILD_DIR)/.built