# # Makefile for libdvdcss Slackware package # Copyright (c) 2003 by Robert Stan # PROGNAME = libdvdcss VERSION = 1.2.8 ARCH = i486 BUILD = 1rob SOURCE = http://www.videolan.org/pub/libdvdcss/$(VERSION)/libdvdcss-$(VERSION).tar.bz2 DOCS = AUTHORS COPYING ChangeLog INSTALL README 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-shared \ --enable-static 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 STRIPLIB=$(STRIPLIB) STRIPBIN=$(STRIPBIN) ../../preparepkg $(PKG) cat slack-desc > ../$(PKGNAME).txt cat slack-desc > $(PKG)/install/slack-desc cd $(PKG) ; makepkg -l n -c n $(PKGNAME).tgz mv $(PKG)/$(PKGNAME).tgz .. include ../../Makefile.global