blob: bc32b8ceba9ef4d0ae7a4f799f6aa909c41ba643 (
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: gltron
# Date created: 24 July 1999
# Whom: Andrey Zakhvatov
#
# $FreeBSD$
#
PORTNAME= gltron
PORTVERSION= 0.61
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://gltron.sourceforge.net/download/
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX= -source.tar.gz
MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer \
SDL_net.0:${PORTSDIR}/net/sdl_net \
png.4:${PORTSDIR}/graphics/png
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
USE_X_PREFIX= yes
USE_MESA= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ENV= X11BASE="${X11BASE}" \
LOCALBASE="${LOCALBASE}" \
PTHREAD_LIBS="${PTHREAD_LIBS}" \
SDL_CONFIG="${SDL_CONFIG}"
pre-build:
${PERL} -pi -e "s+#include <SDL\/+#include <+g" ${WRKSRC}/*.[ch]
do-install:
@${MKDIR} ${PREFIX}/share/gltron
(cd ${WRKSRC} && ${TAR} -c -f - art data sounds) \
| (cd ${PREFIX}/share/gltron && ${TAR} --unlink -x -f -)
${INSTALL_PROGRAM} ${WRKSRC}/gltron ${PREFIX}/bin
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/gltron
.for file in CHANGELOG CREDITS README
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/gltron
.endfor
.endif
.include <bsd.port.mk>
|