# # Makefile for MRTG Slackware package # Copyright (c) 2003 by Robert Stan # PROGNAME = mrtg VERSION = 2.10.15 ARCH = i486 BUILD = 1rob SOURCE = http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub/mrtg-$(VERSION).tar.gz DOCS = contrib 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 build: conf make -j4 -C $(PROGNAME)-$(VERSION) package: build cd $(PROGNAME)-$(VERSION); \ make prefix=$(PKG)/usr install mv -f $(PKG)/usr/share/doc $(PKG)/usr cd $(PROGNAME)-$(VERSION); \ cp -a $(DOCS) $(PKG)/usr/doc/mrtg2; \ rm -f $(PKG)/usr/doc/mrtg2/*.{pod,txt} mv $(PKG)/usr/doc/mrtg2 $(PKG)/usr/doc/mrtg-$(VERSION) 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