~cypheon/pkgsrc-wip

pkgsrc-wip/and/Makefile -rw-r--r-- 1.3 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
51
52
53
54
55
56
57
58
59
# $NetBSD: Makefile,v 1.15 2012/12/03 23:15:04 othyro Exp $
#

DISTNAME=	and-1.2.2
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=and/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://and.sourceforge.net/
COMMENT=	Auto nice daemon
LICENSE=	gnu-gpl-v3

USE_TOOLS+=	gmake
USE_LANGUAGES=	c
BUILD_TARGET=	default

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

MYARCH=			${OPSYS}
.if ${MYARCH} == "NetBSD"
MYARCH=			OpenBSD
.endif

SUBST_CLASSES+=		pref
SUBST_STAGE.pref=	pre-configure
SUBST_FILES.pref=	Makefile
SUBST_SED.pref=		-e s,/usr/local,${PREFIX},

SUBST_CLASSES+=		arch
SUBST_STAGE.arch=	pre-configure
SUBST_FILES.arch=	Makefile
SUBST_SED.arch=		-e s,ARCH=.*,ARCH=${MYARCH},g

SUBST_CLASSES+=		int
SUBST_STAGE.int=	pre-configure
SUBST_FILES.int=	and.c
SUBST_SED.int=		-e s,MAXINT,INT_MAX,g

SUBST_CLASSES+=		val
SUBST_STAGE.val=	pre-configure
SUBST_FILES.val=	and.c
SUBST_SED.val=		-e s,values,string,

SUBST_CLASSES+=		bsd
SUBST_STAGE.bsd=	pre-configure
SUBST_FILES.bsd=	and-OpenBSD.c
SUBST_SED.bsd=		-e s,kp_proc.p_ppid,kp_proc.p_pid,

SUBST_CLASSES+=		init
SUBST_STAGE.init=	pre-configure
SUBST_FILES.init=	Makefile
SUBST_SED.init=		-e s,INITSCRIPT=,\#,

SUBST_CLASSES+=		initd
SUBST_STAGE.initd=	pre-configure
SUBST_FILES.initd=	Makefile
SUBST_SED.initd=	-e s,INSTALL_INITD=,\#,

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