Subversion Repositories Scribus

Rev

Rev 11295 | 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
11318 avox 2
DEPLIBRARIES=zlib.pkg jpeg.pkg tiff.pkg lcms.pkg freetype.pkg cairo.pkg
11295 avox 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
 
11318 avox 19
all: ${DEPLIBRARIES} Scribus.pkg
20
	@echo Packaging ${PKGNAME} with ${DEPLIBRARIES}
11294 avox 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
 
11318 avox 30
cairo.pkg: fontconfig.pkg expat.pkg libiconv.pkg libpng.pkg
31
	port -f -k pkg cairo +no-x11
32
	@cp -Rpn /opt/local/var/macports/build/*cairo*/work/*.pkg ${DISTDIR}/packages/
33
 
11294 avox 34
%.mpkg: tmpdirs
11295 avox 35
	#port -f -k upgrade $*
11294 avox 36
	port -f -k -v mpkg $*
37
	@cp -Rpn /opt/local/var/macports/build/*$**/work/*.mpkg ${DISTDIR}/packages/
38
 
11295 avox 39
Scribus.pkg: tmpdirs
40
	@mkdir -p ${SCRIBUSPKG}/Applications
41
	@(cd ${SCRIBUSPKG}/Applications; mv ${SCRIBUSAPP} .)
42
	/Developer/Tools/packagemaker -build -p ${DISTDIR}/packages/Scribus.pkg -f ${SCRIBUSPKG} -i ${SCRIBUSINFOFILE}
43
	@(cd ${SCRIBUSPKG}/Applications ; mv Scribus*.app ${SCRIBUSAPP})
44
 
45
 
46
 
11294 avox 47
clean:
48
	rm -rf ${DISTDIR}/packages/*
49