# # Makefile for ucspi-tcp Slackware package # Copyright (c) 2003 by Robert Stan # PROGNAME = ucspi-tcp VERSION = 0.88 ARCH = i486 BUILD = 1rob SOURCE = http://cr.yp.to/$(PROGNAME)/$(PROGNAME)-$(VERSION).tar.gz DOCS = CHANGES README TODO CUSTNAME = $(PROGNAME) PKGNAME = $(CUSTNAME)-$(VERSION)-$(ARCH)-$(BUILD) MAINTAINER = Robert Stan CFLAGS = "-O2 -pipe -march=$(ARCH) -mcpu=i686" CXXFLAGS = $(CFLAGS) STRIPLIB = y STRIPBIN = y TMP = /var/tmp PKG = $(TMP)/package-$(PROGNAME)-$(VERSION) build: prep patch -p0 < patches/ucspi-tcp-0.88.errno.patch patch -p0 < patches/ucspi-tcp-0.88.nobase.patch patch -p0 < patches/ucspi-tcp-0.88.a_record.patch echo "gcc $(CFLAGS)" > $(PROGNAME)-$(VERSION)/conf-cc make -C $(PROGNAME)-$(VERSION) package: build mkdir -p $(PKG)/usr/doc/$(PROGNAME)-$(VERSION) $(PKG)/usr/local cd $(PROGNAME)-$(VERSION); \ cp -a $(DOCS) $(PKG)/usr/doc/$(PROGNAME)-$(VERSION); \ echo $(PKG)/usr/local > conf-home; \ rm install instcheck; \ make install instcheck; \ ./install; ./instcheck cat slack-desc > ../$(PKGNAME).txt cat slack-desc > $(PKG)/install/slack-desc STRIPLIB=$(STRIPLIB) STRIPBIN=$(STRIPBIN) ../../preparepkg $(PKG) cd $(PKG) ; makepkg -l y -c n $(PKGNAME).tgz mv $(PKG)/$(PKGNAME).tgz .. include ../../Makefile.global