# Copyright (C) 2009 Volker Grabsch # Rocco Rutte # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so, subject # to the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # PDcurses PKG := pdcurses $(PKG)_IGNORE := $(PKG)_VERSION := 3.4 $(PKG)_CHECKSUM := e36684442a6171cc3a5165c8c49c70f67db7288c $(PKG)_SUBDIR := PDCurses-$($(PKG)_VERSION) $(PKG)_FILE := PDCurses-$($(PKG)_VERSION).tar.gz $(PKG)_WEBSITE := http://pdcurses.sourceforge.net/ $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/pdcurses/pdcurses/$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_DEPS := gcc define $(PKG)_UPDATE $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/pdcurses/files/pdcurses/) | \ $(SED) -n 's,.*PDCurses-\([0-9][^>]*\)\.tar.*,\1,p' | \ tail -1 endef define $(PKG)_BUILD $(SED) 's,copy,cp,' -i '$(1)/win32/mingwin32.mak' $(MAKE) -C '$(1)' -j '$(JOBS)' libs -f '$(1)/win32/mingwin32.mak' \ CC='$(TARGET)-gcc' \ LIBEXE='$(TARGET)-ar' \ DLL=N \ PDCURSES_SRCDIR=. \ WIDE=Y \ UTF8=Y $(TARGET)-ranlib '$(1)/pdcurses.a' '$(1)/panel.a' $(INSTALL) -d '$(PREFIX)/$(TARGET)/include/' $(INSTALL) -m644 '$(1)/curses.h' '$(1)/panel.h' '$(1)/term.h' '$(PREFIX)/$(TARGET)/include/' $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/' $(INSTALL) -m644 '$(1)/pdcurses.a' '$(PREFIX)/$(TARGET)/lib/libpdcurses.a' $(INSTALL) -m644 '$(1)/panel.a' '$(PREFIX)/$(TARGET)/lib/libpanel.a' endef