Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 11294 → Rev 11295

/trunk/Scribus/OSX-package/Makefile
1,14 → 1,22
DEPLIBRARIES=jpeg.pkg tiff.mpkg lcms.pkg freetype.pkg cairo.mpkg
# currently a handpicked list of libraries Scribus depends on
DEPLIBRARIES=zlib.pkg expat.pkg fontconfig.pkg jpeg.pkg tiff.pkg lcms.pkg freetype.pkg libpng.pkg render.pkg xrender.pkg cairo.pkg
# these wil be optional packages later
ADDITIONAL=ghostscript.mpkg antiword.pkg aspell.pkg
# this MUST be the installed path of the Scribus.app bundle
SCRIBUSAPP=/usr/local/Applications/Scribus135.app
# How to name the package
PKGNAME=Scribus-135
 
PKGNAME=Scribus-135
# no need to change those:
DISTDIR=dist
INPUTDIR=inputs
INFOFILE=${INPUTDIR}/Info.plist
SCRIBUSINFOFILE=${INPUTDIR}/Scribus.pkg-Info.plist
SCRIBUSPKG=${INPUTDIR}/ScribusPkg
DESCFILE=${INPUTDIR}/Description.plist
RESOURCES=${INPUTDIR}/Resources
 
all: clean ${DEPLIBRARIES}
all: clean ${DEPLIBRARIES} Scribus.pkg
@echo Packaging ${PKGNAME} from ${DEPLIBRARIES}
@/Developer/Tools/packagemaker -build -p ${DISTDIR}/${PKGNAME}.mpkg -mi ${DISTDIR}/packages -i ${INFOFILE} -r ${RESOURCES}
 
20,10 → 28,18
@cp -Rpn /opt/local/var/macports/build/*$**/work/*.pkg ${DISTDIR}/packages/
 
%.mpkg: tmpdirs
port -f -k upgrade $*
#port -f -k upgrade $*
port -f -k -v mpkg $*
@cp -Rpn /opt/local/var/macports/build/*$**/work/*.mpkg ${DISTDIR}/packages/
 
Scribus.pkg: tmpdirs
@mkdir -p ${SCRIBUSPKG}/Applications
@(cd ${SCRIBUSPKG}/Applications; mv ${SCRIBUSAPP} .)
/Developer/Tools/packagemaker -build -p ${DISTDIR}/packages/Scribus.pkg -f ${SCRIBUSPKG} -i ${SCRIBUSINFOFILE}
@(cd ${SCRIBUSPKG}/Applications ; mv Scribus*.app ${SCRIBUSAPP})
 
 
 
clean:
rm -rf ${DISTDIR}/packages/*