# # Makefile for xvidcore Slackware package # Copyright (c) 2004 by Robert Stan # PROGNAME = xvidcore VERSION = 1.0.1 ARCH = i686 BUILD = 1rob SOURCE = http://files.xvid.org/downloads/xvidcore-$(VERSION).tar.bz2 DOCS = AUTHORS ChangeLog CodingStyle LICENSE README doc/INSTALL examples CUSTNAME = $(PROGNAME) PKGNAME = $(CUSTNAME)-$(VERSION)-$(ARCH)-$(BUILD) MAINTAINER = Robert Stan CFLAGS = "-O3 -pipe -march=$(ARCH) -mcpu=i686 -fomit-frame-pointer -funroll-loops -ffast-math -finline-functions -Wall -pedantic" CXXFLAGS = $(CFLAGS) STRIPLIB = y STRIPBIN = y TMP = /var/tmp PKG = $(TMP)/package-$(PROGNAME)-$(VERSION) conf: prep cd $(PROGNAME)-$(VERSION); \ CFLAGS=$(CFLAGS) CXXFLAGS=$(CXXFLAGS) \ ./build/generic/configure --prefix=/usr \ --sysconfdir=/etc \ --enable-divx4compat build: conf make -j10 -C $(PROGNAME)-$(VERSION)/build/generic package: build mkdir -p $(PKG)/usr/{doc/$(PROGNAME)-$(VERSION),include,lib} cd $(PROGNAME)-$(VERSION); \ cp -a $(DOCS) $(PKG)/usr/doc/$(PROGNAME)-$(VERSION); \ make -C build/generic \ libdir=$(PKG)/usr/lib \ includedir=$(PKG)/usr/include \ 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