2005-07-12 21:12:53 +00:00
|
|
|
# action is snap or all
|
|
|
|
PKGDIR=/usr/local/pkg
|
|
|
|
|
|
|
|
all: maui326
|
|
|
|
|
|
|
|
maui326:
|
|
|
|
ACTION=snap ; \
|
|
|
|
PKG=maui ; \
|
|
|
|
VERSION=3.2.6 ; \
|
2006-11-20 17:04:44 +00:00
|
|
|
PATCH=p18 ; \
|
2005-07-12 21:12:53 +00:00
|
|
|
BASEDIR=$$PKG-$$VERSION$$PATCH ; \
|
|
|
|
cd $$BASEDIR ; \
|
|
|
|
for i in src/[ms]* include; do \
|
|
|
|
(cd $$i;mkheader.pl ./header.tmpl ./header.cfg $(PKGDIR)/$$BASEDIR/$$i *.[ch]); \
|
|
|
|
done ; \
|
|
|
|
for i in contrib docs; do \
|
|
|
|
(cd $$i;cp -r * $(PKGDIR)/$$BASEDIR/$$i); \
|
|
|
|
(cd $(PKGDIR)/$$BASEDIR/$$i;find . -name CVS -exec rm -rf {} \; 2>/dev/null) ; \
|
|
|
|
done ; \
|
|
|
|
cd .. ; \
|
|
|
|
TMPFILE=$(PKGDIR)/tmp/$$BASEDIR.tar.gz; \
|
|
|
|
rm -f $$TMPFILE; \
|
|
|
|
(cd $(PKGDIR);tar -czf $$TMPFILE $$BASEDIR) ;\
|
|
|
|
./copyfiles maui $$VERSION $$PATCH $$TMPFILE $$ACTION
|
|
|
|
|