# HG changeset patch # User David Demelier # Date 1551022567 -3600 # Node ID 345ba1fec137f21772bab19abc7424f503678fc5 # Parent 5da6ac901395f10711732bc9ef9c6de83e45aca4 dev/automake: initial import, closes #1071 diff -r 5da6ac901395 -r 345ba1fec137 dev/automake/automake.info --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev/automake/automake.info Sun Feb 24 16:36:07 2019 +0100 @@ -0,0 +1,22 @@ +#!/bin/sh +# +# Copyright (c) 2019 David Demelier +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# + +PKGNAME=automake +PKGVERSION=1.16.1 +PKGREVISION=1 +PKGSUMMARY="GNU tool for automatically creating Makefiles" +PKGDOWNLOAD="https://ftp.gnu.org/gnu/$PKGNAME/$PKGNAME-$PKGVERSION.tar.xz" diff -r 5da6ac901395 -r 345ba1fec137 dev/automake/automake.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev/automake/automake.sh Sun Feb 24 16:36:07 2019 +0100 @@ -0,0 +1,40 @@ +#!/bin/sh +# +# Copyright (c) 2019 David Demelier +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# + +source ./automake.info + +case $(uname -m) in +x86_64) + CFLAGS="-O2 -fPIC" + ;; +*) + CFLAGS="-O2" + ;; +esac + +set -e + +rm -rf $PKGNAME-$PKGVERSION +tar xvaf $PKGNAME-$PKGVERSION.tar.xz +pushd $PKGNAME-$PKGVERSION + +CFLAGS="$CFLAGS" ./configure --prefix=/usr +make +make install DESTDIR=$DESTDIR + +popd +rm -rf $PKGNAME-$PKGVERSION