Subversion Repositories Scribus

Rev

Rev 11294 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
11295 avox 1
# currently a handpicked list of libraries Scribus depends on
2
DEPLIBRARIES=zlib.pkg expat.pkg fontconfig.pkg jpeg.pkg tiff.pkg lcms.pkg freetype.pkg libpng.pkg render.pkg xrender.pkg cairo.pkg
3
# these wil be optional packages later
11294 avox 4
ADDITIONAL=ghostscript.mpkg antiword.pkg aspell.pkg
11295 avox 5
# this MUST be the installed path of the Scribus.app bundle
6
SCRIBUSAPP=/usr/local/Applications/Scribus135.app
7
# How to name the package
8
PKGNAME=Scribus-135
11294 avox 9
 
11295 avox 10
# no need to change those:
11294 avox 11
DISTDIR=dist
12
INPUTDIR=inputs
13
INFOFILE=${INPUTDIR}/Info.plist
11295 avox 14
SCRIBUSINFOFILE=${INPUTDIR}/Scribus.pkg-Info.plist
15
SCRIBUSPKG=${INPUTDIR}/ScribusPkg
11294 avox 16
DESCFILE=${INPUTDIR}/Description.plist
17
RESOURCES=${INPUTDIR}/Resources
18
 
11295 avox 19
all: clean ${DEPLIBRARIES} Scribus.pkg
11294 avox 20
	@echo Packaging ${PKGNAME} from ${DEPLIBRARIES}
21
	@/Developer/Tools/packagemaker -build -p ${DISTDIR}/${PKGNAME}.mpkg -mi ${DISTDIR}/packages -i ${INFOFILE} -r ${RESOURCES}
22
 
23
tmpdirs:
24
	mkdir -p ${DISTDIR}/packages
25
 
26
%.pkg: tmpdirs
27
	port -f -k pkg $*
28
	@cp -Rpn /opt/local/var/macports/build/*$**/work/*.pkg ${DISTDIR}/packages/
29
 
30
%.mpkg: tmpdirs
11295 avox 31
	#port -f -k upgrade $*
11294 avox 32
	port -f -k -v mpkg $*
33
	@cp -Rpn /opt/local/var/macports/build/*$**/work/*.mpkg ${DISTDIR}/packages/
34
 
11295 avox 35
Scribus.pkg: tmpdirs
36
	@mkdir -p ${SCRIBUSPKG}/Applications
37
	@(cd ${SCRIBUSPKG}/Applications; mv ${SCRIBUSAPP} .)
38
	/Developer/Tools/packagemaker -build -p ${DISTDIR}/packages/Scribus.pkg -f ${SCRIBUSPKG} -i ${SCRIBUSINFOFILE}
39
	@(cd ${SCRIBUSPKG}/Applications ; mv Scribus*.app ${SCRIBUSAPP})
40
 
41
 
42
 
11294 avox 43
clean:
44
	rm -rf ${DISTDIR}/packages/*
45