2020-01-26 18:30:40 +01:00
|
|
|
# $NetBSD: Makefile,v 1.11 2020/01/26 17:31:57 rillig Exp $
|
2009-08-01 04:41:22 +02:00
|
|
|
|
2014-02-24 20:29:02 +01:00
|
|
|
DISTNAME= udns-0.4
|
2009-08-01 04:41:22 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://www.corpit.ru/mjt/udns/
|
|
|
|
|
|
|
|
MAINTAINER= eric@cirr.com
|
2020-01-26 18:30:40 +01:00
|
|
|
HOMEPAGE= https://www.corpit.ru/mjt/udns.html
|
2009-08-01 04:41:22 +02:00
|
|
|
COMMENT= Lightweight DNS resolver supporting asynchronous queries
|
|
|
|
LICENSE= gnu-lgpl-v2.1
|
2011-01-28 09:29:34 +01:00
|
|
|
|
2012-10-21 19:37:03 +02:00
|
|
|
CONFLICTS= rblcheck-[0-9]*
|
|
|
|
|
2009-08-01 04:41:22 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
|
|
|
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
INSTALLATION_DIRS= bin lib include ${PKGMANDIR}/man1 ${PKGMANDIR}/man3
|
|
|
|
|
|
|
|
.include "options.mk"
|
|
|
|
|
|
|
|
do-install:
|
2011-01-28 10:09:40 +01:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
2009-08-01 04:41:22 +02:00
|
|
|
${WRKSRC}/libudns.la ${DESTDIR}${PREFIX}/lib
|
|
|
|
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
|
|
|
|
${WRKSRC}/dnsget ${DESTDIR}${PREFIX}/bin
|
|
|
|
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
|
|
|
|
${WRKSRC}/rblcheck ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/udns.h ${DESTDIR}${PREFIX}/include
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/udns.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/dnsget.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/rblcheck.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
|
2013-09-13 11:57:36 +02:00
|
|
|
CFLAGS.SunOS+= -DHAVE_INET_PTON_NTOP
|
|
|
|
LDFLAGS.SunOS+= -lsocket -lnsl
|
|
|
|
|
2009-08-01 04:41:22 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|
2013-01-26 22:25:12 +01:00
|
|
|
|
|
|
|
# gcc on NetBSD botch's if (!<ptr>) tests at -O2. (or higher)
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
2019-11-03 12:45:28 +01:00
|
|
|
. if ${MACHINE_ARCH} == "alpha"
|
2013-01-26 22:25:12 +01:00
|
|
|
BUILDLINK_TRANSFORM+= opt:-O[2-9]:-O1
|
|
|
|
# BUILDLINK_TRANSFORM+= rm:-O[2-9]
|
2019-11-03 12:45:28 +01:00
|
|
|
. endif
|
2013-01-26 22:25:12 +01:00
|
|
|
.endif
|