summaryrefslogtreecommitdiffstats
path: root/contrib/libgnurx/module.defs
blob: a4c0f2504ea3c9dad688a3dfc63c4b0faa573261 (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
$(eval $(call import.MODULE.defs,LIBGNURX,libgnurx))
$(eval $(call import.CONTRIB.defs,LIBGNURX))

LIBGNURX.FETCH.url = http://download.handbrake.fr/handbrake/contrib/mingw-libgnurx-2.5.1-src.tar.gz
LIBGNURX.FETCH.md5 = 35c8fed3101ca1f253e9b6b1966661f6
LIBGNURX.EXTRACT.tarbase = mingw-libgnurx-2.5.1

LIBGNURX.CONFIGURE.env += AR="$(AR.exe)"
LIBGNURX.CONFIGURE.bootstrap = autoreconf -fiv;

LIBGNURX.BUILD.ntargets = libregex.a-static

define LIBGNURX.INSTALL
    $(CP.exe) $(LIBGNURX.EXTRACT.dir/)libregex.a $(CONTRIB.build/)lib/
    $(CP.exe) $(LIBGNURX.EXTRACT.dir/)regex.h $(CONTRIB.build/)include/
    $(TOUCH.exe) $@
endef

define LIBGNURX.UNINSTALL
    $(RM.exe) -f $(CONTRIB.build/)lib/libregex.a
    $(RM.exe) -f $(CONTRIB.build/)include/regex.h
    $(RM.exe) -f $(LIBGNURX.INSTALL.target)
endef

ifeq (1,$(FEATURE.local_pkgconfig))
    LIBGNURX.CONFIGURE.env += PATH="$(call fn.ABSOLUTE,$(CONTRIB.build/)bin):$(PATH)"
    LIBGNURX.BUILD.env     += PATH="$(call fn.ABSOLUTE,$(CONTRIB.build/)bin):$(PATH)"
endif