summaryrefslogtreecommitdiffstats
path: root/package/ntfs-3g/ntfs-3g.mk
blob: efe15fa9e7773659f75875ff5769343b8c2c4dcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#############################################################
#
# ntfs-3g
#
#############################################################
NTFS_3G_VERSION:=2009.3.8
NTFS_3G_SOURCE:=ntfs-3g-$(NTFS_3G_VERSION).tgz
NTFS_3G_SITE:=http://www.ntfs-3g.org/
NTFS_3G_CONF_OPT:=--disable-ldconfig --program-prefix=""
NTFS_3G_INSTALL_STAGING:=yes

$(eval $(call AUTOTARGETS,package,ntfs-3g))

$(NTFS_3G_TARGET_INSTALL_TARGET): $(NTFS_3G_TARGET_INSTALL_STAGING)
	$(call MESSAGE,"Installing to target")
	cp -dpf $(STAGING_DIR)/usr/lib/libntfs-3g.so* $(TARGET_DIR)/lib/
	$(INSTALL) -m 0755 $(STAGING_DIR)/usr/bin/ntfs-3g $(TARGET_DIR)/bin/
	$(INSTALL) -m 0755 $(STAGING_DIR)/usr/bin/ntfs-3g.probe $(TARGET_DIR)/bin/
	touch $@

ifeq ($(BR2_ENABLE_DEBUG),)
$(NTFS_3G_HOOK_POST_INSTALL): $(NTFS_3G_TARGET_INSTALL_TARGET)
	$(STRIPCMD) $(STRIP_STRIP_ALL) $(TARGET_DIR)/bin/ntfs-3g
	$(STRIPCMD) $(STRIP_STRIP_ALL) $(TARGET_DIR)/bin/ntfs-3g.probe
	$(STRIPCMD) $(STRIP_STRIP_ALL) $(TARGET_DIR)/lib/libntfs-3g.so*
	touch $@
endif

$(NTFS_3G_TARGET_UNINSTALL):
	$(call MESSAGE,"Uninstalling")
	$(MAKE) DESTDIR=$(STAGING_DIR) -C $(NTFS_3G_DIR) uninstall
	rm -f $(TARGET_DIR)/lib/libntfs-3g*
	rm -f $(TARGET_DIR)/bin/ntfs-3g $(TARGET_DIR)/bin/ntfs-3g.probe
	rm -f $(NTFS_3G_TARGET_INSTALL_STAGING) $(NTFS_3G_TARGET_INSTALL_TARGET) $(NTFS_3G_HOOK_POST_INSTALL)