aboutsummaryrefslogtreecommitdiff
path: root/games/ensemblist/Makefile
blob: 23ea3c82f31e9b1e6206213bee3375d0df1bc7ae (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
44
45
46
47
48
49
50
# New ports collection makefile for:	ensemblist
# Date created:				06 Sep 2005
# Whom:					Igor Pokrovsky <ip@doom.homeunix.org>
#
# $FreeBSD$
#

PORTNAME=	ensemblist
PORTVERSION=	040126
PORTREVISION=	5
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Assemble given shapes from primitives

LIB_DEPENDS=	mikmod.2:${PORTSDIR}/audio/libmikmod \
		png.6:${PORTSDIR}/graphics/png

USE_GMAKE=	yes
USE_GL=		glut
MAKE_ARGS=	CC="${CC}" DATADIR="${DATADIR}"

PLIST=		${WRKDIR}/pkg-plist

PLIST_FILES=	bin/ensemblist
PLIST_DIRS=	%%DATADIR%%
MAN6=		ensemblist.6
PORTDOCS=	*

pre-install:
	@${RM} -f ${PLIST}
	@${FIND} ${WRKSRC}/datas -type f | ${SORT} \
		| ${SED} -e 's|^${WRKSRC}/datas|%%DATADIR%%|' >> ${PLIST}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
	${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/datas/* ${DATADIR}

.ifndef (NOPORTDOCS)
	cd ${WRKSRC}/html && \
	${FIND} * -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
	${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
.endif

	${INSTALL_MAN} ${WRKSRC}/ensemblist.6 ${MAN6PREFIX}/man/man6

.include <bsd.port.mk>