pkgsrc/devel/pkgconf/Makefile

41 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.17 2021/04/29 11:00:15 thor Exp $
DISTNAME= pkgconf-1.7.4
CATEGORIES= devel
MASTER_SITES= https://distfiles.dereferenced.org/pkgconf/
PKGREVISION= 1
MAINTAINER= nico@orgrim.net
HOMEPAGE= https://github.com/pkgconf/pkgconf
COMMENT= API-driven pkg-config replacement
LICENSE= modified-bsd
CONFLICTS+= pkg-config-[0-9]*
.include "../../mk/bsd.prefs.mk"
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
CONFIGURE_ARGS= --with-system-libdir=/usr/lib \
--with-system-includedir=/usr/include
MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}/man1
PKGCONFIG_PATHS= ${PREFIX}/lib/pkgconfig
PKGCONFIG_PATHS+= ${PREFIX}/share/pkgconfig
PKGCONFIG_PATHS+= /usr/lib/pkgconfig
.if ${LOCALBASE} != ${X11BASE}
PKGCONFIG_PATHS+= ${X11BASE}/lib/pkgconfig
.endif
CONFIGURE_ARGS+= --with-pkg-config-dir=${PKGCONFIG_PATHS:ts::Q}
# configure script incorrectly sets only _FILE_OFFSET_BITS=64
CPPFLAGS.SunOS+= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
post-install:
${LN} -s pkgconf ${DESTDIR}${PREFIX}/bin/pkg-config
${LN} -s pkgconf.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/pkg-config.1
.include "../../mk/bsd.pkg.mk"