From 631d3930af0d27fb64d6790be487e9cbddccb17d Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Sat, 25 Aug 2007 16:52:42 +0000 Subject: [PATCH] Added macport target to Makefile; Portfile is now built from a template. git-svn-id: https://pandoc.googlecode.com/svn/trunk@886 788f1e2b-df1e-0410-8736-df70ead52e1b --- INSTALL | 1 + Makefile | 11 +++++++++++ macports/{Portfile => Portfile.in} | 0 3 files changed, 12 insertions(+) rename macports/{Portfile => Portfile.in} (100%) diff --git a/INSTALL b/INSTALL index bff5304e0..ce54e23ed 100644 --- a/INSTALL +++ b/INSTALL @@ -128,6 +128,7 @@ but are documented here for packagers and developers: * `tarball`: Creates a source tarball for distribution. * `deb`: Creates debian packages in `..` directory. +* `macport`: Creates MacPorts Portfile in `macports` directory. * `osx-pkg-prep`: Prepares for building a MacOS X package. * `osx-pkg`: Builds a MacOS X package (must be run as root, and on OS X). You should make `osx-pkg-prep` first (not as root). diff --git a/Makefile b/Makefile index 43741e890..d00a40170 100644 --- a/Makefile +++ b/Makefile @@ -236,6 +236,17 @@ uninstall-all: uninstall-program uninstall-lib-doc install: install-program uninstall: uninstall-program +# MacPort +.PHONY: macport +macport_dest:=macports +portfile:=$(macport_dest)/Portfile +portfile_template:=$(portfile).in +cleanup_files+=$(portfile) +macport : $(portfile) +$(portfile) : $(portfile_template) $(tarball_name) + sed -e 's/@VERSION@/$(VERSION)/' $(portfile_template) | \ + sed -e 's/@TARBALLMD5SUM@/$(shell md5sum $(tarball_name))/' > $(portfile) + # OSX packages: make osx-pkg-prep, then (as root) make osx-pkg .PHONY: osx-pkg osx-pkg-prep osx_dest:=osx-pkg-tmp diff --git a/macports/Portfile b/macports/Portfile.in similarity index 100% rename from macports/Portfile rename to macports/Portfile.in