# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=heirloom-devtools
pkgver=070527
pkgrel=1
pkgdesc="Development tools compatible with UNIX"
url="http://heirloom.sourceforge.net/devtools.html"
arch="all"
options="!check"  # No test suite.
license="CDDL-1.0"
depends=""
makedepends=""
subpackages="$pkgname-dev"
source="https://downloads.sourceforge.net/heirloom/heirloom-devtools/$pkgver/heirloom-devtools-$pkgver.tar.bz2
	configure.patch
	deauto.patch
	lex-compiler.patch
	make-no-rpc.patch
	$pkgname-$pkgver-solaris.patch
	$pkgname-$pkgver-64-bit.patch"

build() {
	make -j1 CXXFLAGS="${CXXFLAGS} -DMAXNETNAMELEN=255"
}

package() {
	make ROOT="$pkgdir" install
}

sha512sums="1f1f10a7b49402053172cc028bbd939a46fcf933994cb867fa40e8c5bbd7b1291575b3bac254cd79dc4fce3e3a2c88fe0f890449888fda16169c8e6a2540f055  heirloom-devtools-070527.tar.bz2
d89c5b7490d11e6cab7491f7221f5b9f096b014dc3e9c642c6cc86660a6511303cc0c67df09cabfc820b34122cbed7fb672b7f8c59193d391cd87a40222aab64  configure.patch
ebe4ae6af3b49290bdb50b396ff23973b3d6ba1429953563fe2b0e43312c1cca85dd754a140aa65bb2163a8307fd68a9dce3e3c4d1fa08d2d908e49df952f730  deauto.patch
ac29808a3bd5439fe4d8e8765bddc4944951ac53c91cb24f60c117fe2441a234bd0d8c1dcc59ed996d9c220789cb03eade03ab858c07d673797fac295eb80b5a  lex-compiler.patch
b3c5d271f2edd5a8f331bfaf88b2f75a639cc79005c489d04fed90b2b6dfb1286dcc3084f0c7729519da06f0d0318c91f5e30c08f849c8c548b0b622221f4aba  make-no-rpc.patch
335fdabef9b9a8b93ffa6eab2b66d2db11af29b24989c4b64ea64695cfadd4471c31a865c2fcb823c1f4c11eebc1babb53ab83c9c2bdf83c05f497faf16e3f1c  heirloom-devtools-070527-solaris.patch
5523e670c9c9d57f0415e30d1aab4dfcd7d8ad74e2535136afbbe4c6e407c713e7801cbcbf7ddbe798ab2790fc196a2fdbf9d5295fa8c475c73360f5e3a27066  heirloom-devtools-070527-64-bit.patch"