# # Makefile for zebra Slackware package # Copyright (c) 2003 by Robert Stan # PROGNAME = zebra VERSION = 0.94 ARCH = i686 BUILD = 2rob SOURCE = ftp://ftp.zebra.org/pub/zebra/zebra-$(VERSION).tar.gz DOCS = AUTHORS COPY* ChangeLog NEWS README REPORTING-BUGS SERVICES 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) conf: prep cd $(PROGNAME)-$(VERSION); \ CFLAGS=$(CFLAGS) CXXFLAGS=$(CXXFLAGS) \ ./configure --prefix=/usr \ --sysconfdir=/etc \ --enable-vtysh \ --enable-snmp \ --enable-tcp-zebra \ --enable-nssa \ --enable-opaque-lsa \ --enable-ospf-te build: conf make -j12 -C $(PROGNAME)-$(VERSION) package: build mkdir -p $(PKG)/usr/doc/$(PROGNAME)-$(VERSION) cd $(PROGNAME)-$(VERSION); \ cp -a $(DOCS) $(PKG)/usr/doc/$(PROGNAME)-$(VERSION); \ make DESTDIR=$(PKG) install rm $(PKG)/usr/info/dir cat slack-desc > ../$(PKGNAME).txt cat slack-desc > $(PKG)/install/slack-desc cat doinst.sh >> $(PKG)/install/doinst.sh STRIPLIB=$(STRIPLIB) STRIPBIN=$(STRIPBIN) ../../preparepkg $(PKG) cd $(PKG) ; makepkg -l y -c n $(PKGNAME).tgz mv $(PKG)/$(PKGNAME).tgz .. include ../../Makefile.global