diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2011-04-12 14:11:46 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2011-04-12 14:11:46 +0000 |
commit | 2dce2605afcdb09074150594e3f4b3d688557c36 (patch) | |
tree | fad6df935bf394ea4f1f7d272a77056358ee31e8 /testing/libdlna | |
parent | 932416f0c6d8eee2516a958dbc9cf997cb69ff22 (diff) | |
download | aports-2dce2605afcdb09074150594e3f4b3d688557c36.tar.bz2 aports-2dce2605afcdb09074150594e3f4b3d688557c36.tar.xz |
testing/libdlna: patch for makefile
Diffstat (limited to 'testing/libdlna')
-rw-r--r-- | testing/libdlna/Makefile.patched | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/testing/libdlna/Makefile.patched b/testing/libdlna/Makefile.patched new file mode 100644 index 0000000000..7c4a028aa2 --- /dev/null +++ b/testing/libdlna/Makefile.patched @@ -0,0 +1,64 @@ +ifeq (,$(wildcard config.mak)) +$(error "config.mak is not present, run configure !") +endif +include config.mak + +DISTFILE = libdlna-$(VERSION).tar.bz2 +PKGCONFIG_DIR = $(libdir)/pkgconfig +PKGCONFIG_FILE = libdlna.pc + +SRCS = test-libdlna.c + +EXTRADIST = AUTHORS \ + ChangeLog \ + configure \ + COPYING \ + README \ + +SUBDIRS = src \ + +CFLAGS += -Isrc +LDFLAGS += -Lsrc -ldlna + +ifeq ($(BUILD_STATIC),yes) + LDFLAGS += $(EXTRALIBS) +endif + +all: lib + +lib: + $(MAKE) -C src + +clean: + $(MAKE) -C src clean + -$(RM) -f $(LIBTEST) + +distclean: clean + -$(RM) -f config.log + -$(RM) -f config.mak + -$(RM) -f $(PKGCONFIG_FILE) + +install: install-pkgconfig + $(MAKE) -C src install + +install-pkgconfig: $(PKGCONFIG_FILE) + $(INSTALL) -d "$(PKGCONFIG_DIR)" + $(INSTALL) -m 644 $< "$(PKGCONFIG_DIR)" + +.PHONY: clean distclean +.PHONY: install install-pkgconfig + +dist: + -$(RM) $(DISTFILE) + dist=$(shell pwd)/libdlna-$(VERSION) && \ + for subdir in . $(SUBDIRS); do \ + mkdir -p "$$dist/$$subdir"; \ + $(MAKE) -C $$subdir dist-all DIST="$$dist/$$subdir"; \ + done && \ + tar cjf $(DISTFILE) libdlna-$(VERSION) + -$(RM) -rf libdlna-$(VERSION) + +dist-all: + cp $(EXTRADIST) $(SRCS) Makefile $(DIST) + +.PHONY: dist dist-all |