Commit e9095c75 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Generate a valid Portfile for MacPorts support.

	* Makefile.am: Add a rule to create a valid Portfile.

	* distrib/macports/Portfile.in: New.
parent c760a8e9
2011-09-09 Guillaume Lazzara <z@lrde.epita.fr>
Generate a valid Portfile for MacPorts support.
* Makefile.am: Add a rule to create a valid Portfile.
* distrib/macports/Portfile.in: New.
2011-09-08 Guillaume Lazzara <z@lrde.epita.fr>
* lrde-scmstats.sh: Do not change permissions.
......
......@@ -87,6 +87,34 @@ LRDE_NODIST_FILES = \
$(distdir)/milena/tests/registration/registration.cc \
$(distdir)/milena/tests/value/stack.cc
PORTFILE=distrib/macports/Portfile
TARBALL_GZ=$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz
do_subst = sed -e 's|@packagename[@]|$(PACKAGE_TARNAME)|g' \
-e 's|@version[@]|$(PACKAGE_VERSION)|g' \
-e "s|@package_md5[@]|`md5sum $(TARBALL_GZ) | cut -d ' ' -f 1`|g" \
-e "s|@package_sha1[@]|`openssl sha1 $(TARBALL_GZ) | cut -d ' ' -f 2`|g" \
-e "s|@package_rmd160[@]|`openssl rmd160 $(TARBALL_GZ) | cut -d ' ' -f 2`|g"
$(PORTFILE): dist $(top_srcdir)/distrib/macports/Portfile.in Makefile
rm -f $@ $@.tmp
rm -Rf distrib
srcdir=''; \
test -f ./$@.in || srcdir=$(srcdir)/; \
$(mkdir_p) distrib/macports
md5=`md5sum $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz`
sha1=`openssl sha1 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz`
rmd160=`openssl rmd160 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz`;
$(do_subst) $(srcdir)/$@.in >$@.tmp
chmod +x $@.tmp
chmod a-w $@.tmp
mv $@.tmp $@
CLEANFILES = $(PORTFILE)
port: $(PORTFILE)
## FIXME: Running `build-aux/build_unit_test.sh' just to update
## `milena/tests/unit_test/unit-tests.mk' is overkill:
##
......
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:s
# $Id$
PortSystem 1.0
name @packagename@
version @version@
categories devel framework graphics science
platforms darwin
license GPL-2
maintainers Olena Team
description Software platform for efficient and generic image processing
long_description It is composed of a Generic and efficient C++ image \
processing library, a framework for Document Image \
Analysis and Python bindings.
homepage http://olena.lrde.epita.fr
master_sites http://www.lrde.epita.fr/dload/olena/
checksums md5 @package_md5@ \
sha1 @package_sha1@ \
rmd160 @package_rmd160@
depends_lib port:GraphicsMagick \
port:tiff
supported_archs i386 x86_64
variant scribo description {Add a DIA framework} {
depends_lib-append port:tesseract \
port:qt4-mac \
port:fop
configure.args-append --enable-scribo
}
variant swilena description {Add Python bindings} {
configure.args-append --enable-swilena
}
default_variants +scribo
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment