# # Makefile for openh323 Slackware package # Copyright (c) 2004 by Robert Stan # PROGNAME = openh323 VERSION = 1.13.5 ARCH = i486 BUILD = 1rob SOURCE = http://www.gnomemeeting.org/admin/downloads/latest/sources/openh323-$(VERSION).tar.gz DOCS = *.txt mpl-1.0.htm 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) ren: ln -sf openh323-v1_13_5-1-src.tar.gz openh323-1.13.5.tar.gz || true conf: ren prep mv $(PROGNAME) $(PROGNAME)-$(VERSION) cd $(PROGNAME)-$(VERSION); \ patch -p1 < ../patches/openh323-1.12.0-asnparser.patch; \ patch -p1 < ../patches/openh323-1.12.0-nosamples.patch; \ patch -p1 < ../patches/openh323-1.13.4-prefix.patch; \ autoconf; \ CFLAGS=$(CFLAGS) CXXFLAGS=$(CXXFLAGS) \ ./configure --prefix=/usr \ --libdir=/usr/lib \ --sysconfdir=/etc \ --enable-shared \ --disable-static \ --enable-localspeex=yes #patch -p1 < ../patches/openh323-1.13.4-PIC.patch; \ build: conf cd $(PROGNAME)-$(VERSION); \ make -j1 optshared OPTCCFLAGS=$(CFLAGS) package: build mkdir -p $(PKG)/usr/doc/$(PROGNAME)-$(VERSION) cd $(PROGNAME)-$(VERSION); \ cp -a $(DOCS) $(PKG)/usr/doc/$(PROGNAME)-$(VERSION); \ make PREFIX=$(PKG)/usr LIBDIR=$(PKG)/usr/lib install STRIPLIB=$(STRIPLIB) STRIPBIN=$(STRIPBIN) ../../preparepkg $(PKG) cat slack-desc > ../$(PKGNAME).txt cat slack-desc > $(PKG)/install/slack-desc cat slack-required > $(PKG)/install/slack-required cd $(PKG) ; makepkg -l y -c n $(PKGNAME).tgz mv $(PKG)/$(PKGNAME).tgz .. include ../../Makefile.global