| [2892] | 1 | # $Id: $
 | 
|---|
 | 2 | ## @file
 | 
|---|
 | 3 | #
 | 
|---|
 | 4 | # Makefile for the gzip port.
 | 
|---|
 | 5 | #
 | 
|---|
 | 6 | # Copyright (c) 2006 knut st. osmundsen <bird-kbuild-src@anduin.net>
 | 
|---|
 | 7 | #
 | 
|---|
 | 8 | #
 | 
|---|
 | 9 | # This file is part of kNIX.
 | 
|---|
 | 10 | #
 | 
|---|
 | 11 | # kNIX is free software; you can redistribute it and/or modify
 | 
|---|
 | 12 | # it under the terms of the GNU General Public License as published by
 | 
|---|
 | 13 | # the Free Software Foundation; either version 2 of the License, or
 | 
|---|
 | 14 | # (at your option) any later version.
 | 
|---|
 | 15 | #
 | 
|---|
 | 16 | # kNIX is distributed in the hope that it will be useful,
 | 
|---|
 | 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
|---|
 | 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
|---|
 | 19 | # GNU General Public License for more details.
 | 
|---|
 | 20 | #
 | 
|---|
 | 21 | # You should have received a copy of the GNU General Public License
 | 
|---|
 | 22 | # along with kNIX; if not, write to the Free Software
 | 
|---|
 | 23 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 | 
|---|
 | 24 | #
 | 
|---|
 | 25 | #
 | 
|---|
 | 26 | 
 | 
|---|
 | 27 | 
 | 
|---|
 | 28 | 
 | 
|---|
 | 29 | #
 | 
|---|
 | 30 | # Configuration stuff which doesn't really belong here, but 
 | 
|---|
 | 31 | # will stick around untill I've finished working out the details.
 | 
|---|
 | 32 | #
 | 
|---|
 | 33 | # If anyone was wondering, this is not an attempt at reimpleming 
 | 
|---|
 | 34 | # ports nor a light weight portage. Though, it might be used in
 | 
|---|
 | 35 | # similar ways, that's no the purpose. kNIX is aiming at getting
 | 
|---|
 | 36 | # portage working on OS/2 and NT one day after all.
 | 
|---|
 | 37 | #
 | 
|---|
 | 38 | # The idea that's being explored here is that that sometimes
 | 
|---|
 | 39 | # you don't want to check in the full sources, build tools or something
 | 
|---|
 | 40 | # else that's required to get stuff working. There are many reasons
 | 
|---|
 | 41 | # for this, one is to restrict the size required on the subversion 
 | 
|---|
 | 42 | # server, another is to keep the checkout small. There could also be 
 | 
|---|
 | 43 | # legal reasons or similar. I'm doing a testdrive of this kBuild 
 | 
|---|
 | 44 | # concept by building gzip from code that's fetched from a GNU 
 | 
|---|
 | 45 | # ftp mirror. When I'm done, there will be at least one patch applied.
 | 
|---|
 | 46 | #
 | 
|---|
 | 47 | 
 | 
|---|
 | 48 | # Move to top level Config.kmk or somewhere.
 | 
|---|
 | 49 | #MIRROR_ftp.gnu.org ?= ftp://wuarchive.wustl.edu/mirrors/gnu
 | 
|---|
 | 50 | MIRROR_ftp.gnu.org ?= http://system360/mirrors/ftp.gnu.org
 | 
|---|
 | 51 | 
 | 
|---|
 | 52 | # Template for source that we fetch.
 | 
|---|
 | 53 | TEMPLATE_WGETSRC = wget source
 | 
|---|
 | 54 | TEMPLATE_WGETSRC_FETCHTOOL = WGET
 | 
|---|
 | 55 | TEMPLATE_WGETSRC_INST = $(PATH_CURRENT)/src/
 | 
|---|
 | 56 | 
 | 
|---|
 | 57 | DEPTH = ..
 | 
|---|
 | 58 | include $(PATH_KBUILD)/header.kmk
 | 
|---|
 | 59 | 
 | 
|---|
 | 60 | 
 | 
|---|
 | 61 | #PROGRAMS = gzip
 | 
|---|
 | 62 | #INSTALLS = gzip.stuff
 | 
|---|
 | 63 | 
 | 
|---|
 | 64 | 
 | 
|---|
 | 65 | #
 | 
|---|
 | 66 | # Target for downloading and unpacking the source into ./src.
 | 
|---|
 | 67 | #
 | 
|---|
 | 68 | FETCHES = gzip.src
 | 
|---|
 | 69 | gzip.src_TEMPLATE = WGETSRC
 | 
|---|
 | 70 | #gzip.src_SOURCES = $(MIRROR_ftp.gnu.org)/gzip/gzip-1.2.4.tar.gz
 | 
|---|
 | 71 | #gzip-1.2.4.tar.gz_MD5 = 618b61219aa2d812893281bf6c66f158
 | 
|---|
 | 72 | #gzip-1.2.4.tar.gz_FETCHTOOL = WGET
 | 
|---|
 | 73 | gzip.src_SOURCES = $(MIRROR_ftp.gnu.org)/gzip/gzip-1.2.4.tar
 | 
|---|
 | 74 | gzip-1.2.4.tar_MD5 = 5e43dc6fbb245a802d19e12b85ca105a
 | 
|---|
 | 75 | 
 | 
|---|
 | 76 | 
 | 
|---|
 | 77 | ifdef NOT_DEFINED
 | 
|---|
 | 78 | gzip.src_PATCHES = $(PATH_CURRENT)/gzip-1.2.4-os2-patch.diff
 | 
|---|
 | 79 | endif
 | 
|---|
 | 80 | 
 | 
|---|
 | 81 | 
 | 
|---|
 | 82 | include $(PATH_KBUILD)/footer.kmk
 | 
|---|
 | 83 | 
 | 
|---|
 | 84 | 
 | 
|---|