summaryrefslogtreecommitdiff
path: root/sysutils/attr/Makefile
blob: 5b71938439a75fe0be3a2967a2bb01ba53cb6ac0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $NetBSD: Makefile,v 1.6 2020/01/18 23:35:14 rillig Exp $

ATTR_VERS=	2.4.47
PKGNAME=	attr-${ATTR_VERS}
DISTNAME=	attr-${ATTR_VERS}.src
PKGREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	http://download.savannah.gnu.org/releases/attr/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://savannah.nongnu.org/projects/attr
COMMENT=	Commands for Manipulating Filesystem Extended Attributes
LICENSE=	gnu-gpl-v2

WRKSRC=			${WRKDIR}/${PKGNAME_NOREV}
GNU_CONFIGURE=		yes
USE_TOOLS+=		gmake msgfmt
USE_LIBTOOL=		yes
BUILD_TARGET=		default
INSTALL_SH_OVERRIDE=	no

LDFLAGS.Darwin+=	-lintl
LDFLAGS.NetBSD+=	-lintl

SUBST_CLASSES.Darwin+=	rmldarg
SUBST_CLASSES.SunOS+=	rmldarg
SUBST_STAGE.rmldarg=	pre-configure
SUBST_FILES.rmldarg=	libattr/Makefile
SUBST_SED.rmldarg=	-e '/version-script/d'

pre-install:
	cd ${WRKSRC}/libattr && env ${MAKE_ENV} \
            ${MAKE_PROGRAM} ${INSTALL_MAKE_FLAGS} \
                -f ${MAKE_FILE} install-lib install-dev
	cd ${WRKSRC}/include && env ${MAKE_ENV} \
            ${MAKE_PROGRAM} ${INSTALL_MAKE_FLAGS} \
                -f ${MAKE_FILE} install-dev

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"