1c5f4690e6
That means that version comparators are not supported anymore in hostmakedepends and makedepends. This will ensure that a pkg is always built with the same build dependencies everywhere, if the srcpkgs tree is uptodate.
33 lines
853 B
Bash
33 lines
853 B
Bash
# Template file for 'ngrep'
|
|
pkgname=ngrep
|
|
version=1.45
|
|
revision=4
|
|
hostmakedepends="automake pkg-config"
|
|
makedepends="pcre-devel libpcap-devel libressl-devel"
|
|
short_desc="grep-like utility for network interfaces"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="MIT"
|
|
homepage="http://ngrep.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
|
|
checksum=aea6dd337da8781847c75b3b5b876e4de9c58520e0d77310679a979fc6402fa7
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
do_configure() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args+=" --with-pcap-includes=$XBPS_CROSS_BASE/usr/include/pcap "
|
|
else
|
|
configure_args+=" --with-pcap-includes=/usr/include/pcap "
|
|
fi
|
|
./configure ${configure_args} --enable-ipv6 --enable-pcre EXTRA_LIBS="-lpcre"
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
make DESTDIR=${DESTDIR} install
|
|
}
|