pkgsrc/net/fehqlibs/Makefile
schmonz 088142b529 Update to 17. From the changelog:
- Removed dependency on ipv4socket entirely.
- Reworked socket interface + doc. Removed obsolete dns_sortip() function.
- genalloc.h is now separate. Installation of man pages described.

pkgsrc changes:

- Stop prefixing 0.9., follow upstream versioning
2021-04-03 19:33:28 +00:00

54 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.17 2021/04/03 19:33:28 schmonz Exp $
DISTNAME= fehQlibs-17
PKGNAME= ${DISTNAME:S/Qlibs-/qlibs-/}
CATEGORIES= net
MASTER_SITES= https://www.fehcom.de/ipnet/fehQlibs/
EXTRACT_SUFX= .tgz
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= https://www.fehcom.de/ipnet/qlibs.html
COMMENT= State-of-the-art C routines for Internet services
LICENSE= public-domain
MAKE_JOBS_SAFE= no
BUILD_TARGET= libs shared
SUBST_CLASSES+= echo
SUBST_STAGE.echo= pre-configure
SUBST_FILES.echo= configure install
SUBST_SED.echo= -e 's|echo -n|${ECHO_N}|g'
SUBST_NOOP_OK.echo= yes # ECHO_N may be "echo -n"
SUBST_CLASSES+= etc
SUBST_STAGE.etc= do-configure
SUBST_FILES.etc= dnsstub/dns_rcrw.c
SUBST_SED.etc= -e 's|/etc/dnsrewrite|${PKG_SYSCONFBASE}/dnsrewrite|g'
SUBST_CLASSES+= ldflags
SUBST_STAGE.ldflags= pre-configure
SUBST_FILES.ldflags= Makefile
SUBST_SED.ldflags= -e 's|\$$(MAKELIB) \$$(LDFLAGS) |$$(MAKELIB) |g'
BUILD_DEFS+= PKG_SYSCONFBASE
post-extract:
rm -f ${WRKSRC}/include/*.orig
do-configure:
cd ${WRKSRC}; \
${ECHO} "LIBDIR=${DESTDIR}${PREFIX}/lib/qlibs" >> ${WRKSRC}/conf-build; \
${ECHO} "HDRDIR=${DESTDIR}${PREFIX}/include/qlibs" >> ${WRKSRC}/conf-build; \
${MAKE} check
.include "../../mk/bsd.prefs.mk"
post-build:
.if ${OPSYS} == Darwin
cd ${WRKSRC} && for lib in *.so; do \
install_name_tool -id ${PREFIX}/lib/qlibs/$${lib} $${lib}; \
done
.endif
.include "../../mk/bsd.pkg.mk"