void-packages/srcpkgs/autogen/template
2013-07-27 23:30:53 -06:00

54 lines
1.4 KiB
Text

# Template build file for 'autogen'.
pkgname=autogen
version=5.17.4
revision=1
build_style=gnu-configure
short_desc="The Automated Program Generator"
maintainer="davehome <davehome@redthumb.info.tm>"
license="GPL3"
homepage="http://autogen.sourceforge.net/"
distfiles="${GNU_SITE}/${pkgname}/rel${version}/${pkgname}-${version}.tar.gz"
checksum=cd2585f4794d0e9d7f2cb0b9af4f2bd429946e718473edf1cf8c49f081ca71ed
long_desc="
A tool designed to simplify the creation and maintenance of programs that
contain large amounts of repetitious text. It is especially valuable in
programs that have several blocks of text that must be kept synchronized."
hostmakedepends="pkg-config which guile"
makedepends="guile-devel libxml2-devel gc-devel"
do_configure() {
GUILE_CFLAGS="$(pkg-config --cflags guile-2.0)"
GUILE_LDFLAGS="$(pkg-config --libs guile-2.0)"
./configure ${configure_args} --with-libguile-cflags="${GUILE_CFLAGS}" \
--with-libguile-libs="${GUILE_LDFLAGS}"
}
post_install() {
mv -v ${DESTDIR}/usr/share/pkgconfig ${DESTDIR}/usr/lib
}
autogen-devel_package() {
short_desc+=" (Development files)"
depends="autogen"
pkg_install() {
vmove usr/include
vmove usr/lib/libopts.a
vmove usr/lib/pkgconfig
vmove usr/share/aclocal
}
}
autogen-docs_package() {
short_desc+=" (Documentation)"
pkg_install() {
vmove usr/share/info
vmove usr/share/man
}
}
autogen_package() {
pkg_install() {
vmove usr
}
}