diff options
author | Deposite Pirate | 2018-09-16 18:48:36 +0200 |
---|---|---|
committer | Deposite Pirate | 2018-09-16 18:48:36 +0200 |
commit | d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 (patch) | |
tree | ce5e44d69c5f3175bfdbd1e3717b52c5dcca5638 /development/autotools/autotools.build | |
parent | f29d3519ce073ec30f99754d93304324f7f26d65 (diff) |
Add ports.
Diffstat (limited to 'development/autotools/autotools.build')
-rwxr-xr-x | development/autotools/autotools.build | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/development/autotools/autotools.build b/development/autotools/autotools.build new file mode 100755 index 0000000..a50d31c --- /dev/null +++ b/development/autotools/autotools.build @@ -0,0 +1,132 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd> + +source /usr/src/ports/Build/build.sh + +NAME=autotools +VERSION=2.69 +BUILD=7 +DEPENDS=('perl_xmlparser >= 2.41-1' 'm4 >= 1.4.16-1') + +# Description + +cat > ${PKG}/install/slack-desc <<EOF +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + +$(padd)|-----handy-ruler------------------------------------------------------| +${NAME}: autotools (GNU build system) +${NAME}: +${NAME}: Scripts to automate various software build tasks. This package +${NAME}: includes the following components: +${NAME}: +${NAME}: autoconf, automake, libtool and intltool. +${NAME}: +${NAME}: Homepage: http://www.gnu.org +${NAME}: +${NAME}: +${NAME}: +EOF + +cat >> ${PKG}/install/doinst.sh <<EOF +#!/bin/sh + +install_info() +{ + for file in "\${*}"; do + if [ -x usr/bin/install-info ]; then + usr/bin/install-info --info-dir=usr/share/info usr/share/info/\${file}.info.xz 2> /dev/null + fi + done +} + +# Install texinfo files + +install_info autoconf automake automake-history libtool +EOF + +# Sources + +configure() +{ +CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \ +./configure \ + --build="${ARCH}-slackware-linux" \ + --prefix="${SYS_DIR[usr]}" \ + --mandir="${SYS_DIR[man]}" \ + --infodir="${SYS_DIR[info]}" \ + --sysconfdir="${SYS_DIR[etc]}" \ + --libdir="${SYS_DIR[lib]}" \ + --localstatedir="${SYS_DIR[var]}" \ + ${*} +} + +SRCNAME[0]=autoconf +SRCVERS[0]=2.69 +SRCPACK[0]=${URL[gnu]}/${SRCNAME[0]}/${SRCNAME[0]}-${SRCVERS[0]}.tar.xz +SRCCOPY[0]="GPL2 GPL3" + +build0() +{ +configure +make ${JOBS} +make install DESTDIR="${PKG}" +doc AUTHORS THANKS +changelog NEWS +license COPYING.EXCEPTION COPYING.EXCEPTION +# This is already in a few other packages +rm -f ${PKG}${SYS_DIR[info]}/standards.info* +} + +SRCNAME[1]=automake +SRCVERS[1]=1.14.1 +SRCPACK[1]=${URL[gnu]}/${SRCNAME[1]}/${SRCNAME[1]}-${SRCVERS[1]}.tar.xz +SRCCOPY[1]="GPL2" + +build1() +{ +configure +make ${JOBS} +make install DESTDIR="${PKG}" +doc AUTHORS THANKS +changelog NEWS +} + +SRCNAME[2]=libtool +SRCVERS[2]=2.4.2 +SRCPACK[2]=${URL[gnu]}/${SRCNAME[2]}/${SRCNAME[2]}-${SRCVERS[2]}.tar.xz +SRCCOPY[2]="GPL2" + +build2() +{ +configure \ + --disable-dependency-tracking \ + --enable-shared=yes \ + --enable-static=no \ + --enable-ltdl-install +make ${JOBS} +make install DESTDIR="${PKG}" +doc AUTHORS THANKS +changelog NEWS +rm -rf ${PKG}${SYS_DIR[doc]}/libtool +} + +SRCNAME[3]=intltool +INTLTOOLM=0.50 +SRCVERS[3]=${INTLTOOLM}.2 +SRCPACK[3]=http://edge.launchpad.net/intltool/trunk/${SRCVERS[3]}/+download/${SRCNAME[3]}-${SRCVERS[3]}.tar.gz +SRCCOPY[3]="GPL2" + +build3() +{ +configure +make ${JOBS} +make install DESTDIR="${PKG}" +doc AUTHORS +changelog ChangeLog +} |