Subversion Repositories svnkaklik

Rev

Go to most recent revision | 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:
51
	$(MAKE) -C $(PKG_BUILD_DIR) \
52
		CC=$(TARGET_CC)
53
	touch $@
54
 
55
$(IPKG_STRACE): 
56
	mkdir -p $(IDIR_STRACE)/usr/sbin
57
	cp $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_STRACE)/usr/sbin/
58
	$(STRIP) $(IDIR_STRACE)/usr/sbin/*
59
	$(IPKG_BUILD) $(IDIR_STRACE) $(PACKAGE_DIR)
60
 
61
mostlyclean:
62
	$(MAKE) -C $(PKG_BUILD_DIR) clean
63
	rm -f $(PKG_BUILD_DIR)/.built