aboutsummaryrefslogtreecommitdiff
path: root/devel/arch/Makefile
blob: f96dae6977d716ca88a44712fbba1e2388c6f6c1 (plain) (blame)
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
# New ports collection makefile for:	arch
# Date created:		6 February 2002
# Whom:	      		Johann Visagie <wjv@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	arch
PORTVERSION=	1.0.p16
CATEGORIES=	devel
MASTER_SITES=	ftp://regexps.com/pub/src/${PORTNAME}/
DISTNAME=	${PORTNAME}-${PORTVERSION:S/.p/pre/}

MAINTAINER=	wjv@FreeBSD.org

USE_GMAKE=	yes
HAS_CONFIGURE=	yes
CONFIGURE_WRKSRC=	${WRKSRC}/src/=build
CONFIGURE_SCRIPT=	../configure
CONFIGURE_ARGS=	--prefix ${PREFIX}
BUILD_WRKSRC=	${CONFIGURE_WRKSRC}
INSTALL_WRKSRC=	${CONFIGURE_WRKSRC}

pre-configure:
	@ ${MKDIR} ${CONFIGURE_WRKSRC}

post-build:
.if defined(WITH_TESTS)
	@ cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \
	  ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test
.endif

post-install:
.if !defined(NOPORTDOCS)
.for format in html ps texi
	@ ${MKDIR} ${DOCSDIR}/${format}
	@ ${INSTALL_DATA} ${WRKSRC}/docs/${format}/*.${format} \
	  ${DOCSDIR}/${format}
.endfor
	@ ${INSTALL_DATA} ${WRKSRC}/docs/examples/README* ${DOCSDIR}
.endif

.include <bsd.port.mk>