]> git.sesse.net Git - vlc/blob - contrib/src/ncurses/rules.mak
contrib: install .pc file for ncursesw
[vlc] / contrib / src / ncurses / rules.mak
1 # ncurses
2
3 NCURSES_VERSION := 5.9
4 NCURSES_URL := $(GNU)/ncurses/ncurses-$(NCURSES_VERSION).tar.gz
5
6 ifdef HAVE_MACOSX
7 PKGS += ncurses
8 endif
9
10 ifeq ($(call need_pkg,"ncursesw"),)
11 PKGS_FOUND += ncurses
12 endif
13
14 $(TARBALLS)/ncurses-$(NCURSES_VERSION).tar.gz:
15         $(call download,$(NCURSES_URL))
16
17 .sum-ncurses: ncurses-$(NCURSES_VERSION).tar.gz
18
19 ncurses: ncurses-$(NCURSES_VERSION).tar.gz .sum-ncurses
20         $(UNPACK)
21         $(MOVE)
22
23 .ncurses: ncurses
24         cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --without-debug --enable-widec --without-develop --without-shared --with-terminfo-dirs=/usr/share/terminfo --enable-pc-files
25         cd $</ncurses && make -j1 && make install
26         cd $</include && make -j1 && make install
27         cd $</misc && make pc-files && mkdir -p "$(PREFIX)/lib/pkgconfig" && cp ncursesw.pc "$(PREFIX)/lib/pkgconfig"
28         touch $@