~cypheon/pkgsrc-wip

pkgsrc-wip/apstget/Makefile -rw-r--r-- 1.4 KiB
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 6 months ago
                                                                                
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
41
42
43
44
45
46
47
48
49
50
# $NetBSD: Makefile,v 1.37 2012/12/03 23:34:45 othyro Exp $

DISTNAME=	apstget-20060410
CATEGORIES=	pkgtools
MASTER_SITES=	# empty
DISTFILES=	# empty

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	This is an apt-get like tool for pkgsrc

DEPENDS+=	pkgfind>=20041020:../../pkgtools/pkgfind
DEPENDS+=	pkg_tarup>=1.6.3:../../pkgtools/pkg_tarup
DEPENDS+=	pkg_chk>=1.54:../../pkgtools/pkg_chk
DEPENDS+=	pkglint>=3.94:../../pkgtools/pkglint

NO_CONFIGURE=	yes
NO_BUILD=	yes

EGDIR=		share/examples/apstget
CONF_FILES=	${PREFIX}/${EGDIR}/apstget.conf ${PKG_SYSCONFDIR}/apstget.conf

INSTALLATION_DIRS+=	bin libexec share/examples/apstget

.include "../../mk/bsd.prefs.mk"

# AWK compatibilty stuff
.if ${OPSYS} != "Linux"
SUBST_SED.etc=	-e "s,-W interactive,,"
.endif

SUBST_CLASSES+=		etc
SUBST_STAGE.etc=	post-patch
SUBST_FILES.etc=	apst-get apstget-wrapper
SUBST_SED.etc=		-e "s,_etc_,${PKG_SYSCONFDIR},g"
SUBST_SED.etc+=		-e "s,_pfx_,${PREFIX},g"
SUBST_SED.etc+=		-e "s,_psd_,${PKGSRCDIR},g"
SUBST_SED.etc+=		-e "s,_dbd_,${PKG_DBDIR},g"
SUBST_SED.etc+=		-e "s,_makebin_,${MAKE},g"

do-extract:
	cp -R ${FILESDIR} ${WRKSRC}

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/apst-get ${DESTDIR}${PREFIX}/bin/apstget
	${INSTALL_SCRIPT} ${WRKSRC}/apstget-wrapper ${DESTDIR}${PREFIX}/libexec/

post-install:
	${INSTALL_DATA} ${WRKSRC}/apstget.conf ${DESTDIR}${PREFIX}/${EGDIR}

.include "../../mk/bsd.pkg.mk"