rules.mak 729 Bytes
Newer Older
Naohiro KORIYAMA's avatar
Naohiro KORIYAMA committed
1 2
# aribb24

3 4
ARIBB24_VERSION := 1.0.3
ARIBB24_URL := https://github.com/nkoriyama/aribb24/archive/v$(ARIBB24_VERSION).tar.gz
Naohiro KORIYAMA's avatar
Naohiro KORIYAMA committed
5

6 7
ifdef GPL
ifdef GNUV3
Naohiro KORIYAMA's avatar
Naohiro KORIYAMA committed
8
PKGS += aribb24
9 10
endif
endif
Naohiro KORIYAMA's avatar
Naohiro KORIYAMA committed
11 12 13 14
ifeq ($(call need_pkg,"aribb24"),)
PKGS_FOUND += aribb24
endif

15
$(TARBALLS)/aribb24-$(ARIBB24_VERSION).tar.gz:
16
	$(call download_pkg,$(ARIBB24_URL),aribb24)
Naohiro KORIYAMA's avatar
Naohiro KORIYAMA committed
17

18
.sum-aribb24: aribb24-$(ARIBB24_VERSION).tar.gz
Naohiro KORIYAMA's avatar
Naohiro KORIYAMA committed
19

20
aribb24: aribb24-$(ARIBB24_VERSION).tar.gz .sum-aribb24
Naohiro KORIYAMA's avatar
Naohiro KORIYAMA committed
21
	$(UNPACK)
22
	$(APPLY) $(SRC)/aribb24/libm.patch
23
	$(call pkg_static,"src/aribb24.pc.in")
Naohiro KORIYAMA's avatar
Naohiro KORIYAMA committed
24 25 26 27 28
	$(MOVE)

DEPS_aribb24 = png

.aribb24: aribb24
29 30
	$(REQUIRE_GPL)
	$(REQUIRE_GNUV3)
31
	cd $< && $(SHELL) ./bootstrap
Naohiro KORIYAMA's avatar
Naohiro KORIYAMA committed
32 33 34
	cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
	cd $< && $(MAKE) && $(MAKE) install
	touch $@