diff --git a/.gitignore b/.gitignore index dbc8785f2..5965122e4 100644 --- a/.gitignore +++ b/.gitignore @@ -52,6 +52,7 @@ /libports/include/ncurses/unctrl.h /libports/include/openjpeg /libports/include/python2.6 +/libports/include/qoost /libports/include/readline/keymaps.h /libports/include/readline/rlstdc.h /libports/include/readline/rltypedefs.h diff --git a/libports/ports/qoost.mk b/libports/ports/qoost.mk new file mode 100644 index 000000000..7e3f6df43 --- /dev/null +++ b/libports/ports/qoost.mk @@ -0,0 +1,31 @@ +QOOST_VERSION = 9d77949579dc +QOOST = qoost-$(QOOST_VERSION) +QOOST_TBZ = $(QOOST_VERSION).tar.bz2 +QOOST_URL = http://qoost.hg.sourceforge.net/hgweb/qoost/qoost/archive/$(QOOST_TBZ) + +# +# Interface to top-level prepare Makefile +# +PORTS += $(QOOST) + +prepare-qoost: $(CONTRIB_DIR)/$(QOOST) include/qoost + +$(CONTRIB_DIR)/$(QOOST): clean-qoost + +# +# Port-specific local rules +# +$(DOWNLOAD_DIR)/$(QOOST_TBZ): + $(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(QOOST_URL) && touch $@ + +$(CONTRIB_DIR)/$(QOOST): $(DOWNLOAD_DIR)/$(QOOST_TBZ) + $(VERBOSE)tar xfj $< -C $(CONTRIB_DIR) && touch $@ + +include/qoost: + $(VERBOSE)mkdir -p $(dir $@) + $(VERBOSE)ln -sf ../$(CONTRIB_DIR)/$(QOOST)/include/qoost $@ + + +clean-qoost: + $(VERBOSE)rm -f include/qoost + $(VERBOSE)rm -rf $(CONTRIB_DIR)/$(QOOST)