# # Makefile for id3lib Slackware package # Copyright (c) 2003 by Robert Stan # PROGNAME = id3lib VERSION = 3.8.3 ARCH = i486 BUILD = 1rob SOURCE = http://heanet.dl.sourceforge.net/sourceforge/id3lib/id3lib-$(VERSION).tar.gz DOCS = AUTHORS COPYING ChangeLog HISTORY NEWS README THANKS 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 --disable-debug build: conf make -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 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