9306a8b85f
0.4 (Jan 2014) - bugfix: fix a bug in new list code introduced in 0.3 - portability: use $(LD)/$(LDFLAGS)/$(LIBS) 0.3 (Jan 2014) - bugfix: refactor double-linked list implementation in udns_resolver.c (internal to the library) to be more strict-aliasing-friendly, because old code were miscompiled by gcc. - bugfix: forgotten strdup() in rblcheck
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2014/02/24 19:29:02 schnoebe Exp $
|
|
|
|
DISTNAME= udns-0.4
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://www.corpit.ru/mjt/udns/
|
|
|
|
MAINTAINER= eric@cirr.com
|
|
HOMEPAGE= http://www.corpit.ru/mjt/udns.html
|
|
COMMENT= Lightweight DNS resolver supporting asynchronous queries
|
|
LICENSE= gnu-lgpl-v2.1
|
|
|
|
CONFLICTS= rblcheck-[0-9]*
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
|
|
|
USE_LIBTOOL= yes
|
|
HAS_CONFIGURE= yes
|
|
INSTALLATION_DIRS= bin lib include ${PKGMANDIR}/man1 ${PKGMANDIR}/man3
|
|
|
|
.include "options.mk"
|
|
|
|
do-install:
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
|
${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
|
|
|
|
CFLAGS.SunOS+= -DHAVE_INET_PTON_NTOP
|
|
LDFLAGS.SunOS+= -lsocket -lnsl
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|
|
|
|
# gcc on NetBSD botch's if (!<ptr>) tests at -O2. (or higher)
|
|
.if ${OPSYS} == "NetBSD"
|
|
. if ${MACHINE_ARCH} == "alpha"
|
|
BUILDLINK_TRANSFORM+= opt:-O[2-9]:-O1
|
|
# BUILDLINK_TRANSFORM+= rm:-O[2-9]
|
|
. endif
|
|
.endif
|