Subversion Repositories Scribus

Rev

Rev 11295 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
11294 avox 1
DEPLIBRARIES=jpeg.pkg tiff.mpkg lcms.pkg freetype.pkg cairo.mpkg
2
ADDITIONAL=ghostscript.mpkg antiword.pkg aspell.pkg
3
 
4
PKGNAME=Scribus-135
5
DISTDIR=dist
6
INPUTDIR=inputs
7
INFOFILE=${INPUTDIR}/Info.plist
8
DESCFILE=${INPUTDIR}/Description.plist
9
RESOURCES=${INPUTDIR}/Resources
10
 
11
all: clean ${DEPLIBRARIES}
12
	@echo Packaging ${PKGNAME} from ${DEPLIBRARIES}
13
	@/Developer/Tools/packagemaker -build -p ${DISTDIR}/${PKGNAME}.mpkg -mi ${DISTDIR}/packages -i ${INFOFILE} -r ${RESOURCES}
14
 
15
tmpdirs:
16
	mkdir -p ${DISTDIR}/packages
17
 
18
%.pkg: tmpdirs
19
	port -f -k pkg $*
20
	@cp -Rpn /opt/local/var/macports/build/*$**/work/*.pkg ${DISTDIR}/packages/
21
 
22
%.mpkg: tmpdirs
23
	port -f -k upgrade $*
24
	port -f -k -v mpkg $*
25
	@cp -Rpn /opt/local/var/macports/build/*$**/work/*.mpkg ${DISTDIR}/packages/
26
 
27
clean:
28
	rm -rf ${DISTDIR}/packages/*
29