aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-08-25 16:52:42 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-08-25 16:52:42 +0000
commit631d3930af0d27fb64d6790be487e9cbddccb17d (patch)
tree3a073cd99f94bca71252398157110a0d7be4318d /Makefile
parentcedc181c97c349539434a4149d6b5dce63e58c5f (diff)
downloadpandoc-631d3930af0d27fb64d6790be487e9cbddccb17d.tar.gz
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
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