View | Details | Raw Unified | Return to bug 179935
Collapse All | Expand All

(-)./Makefile (-15 / +14 lines)
Lines 1-10 Link Here
1
# ex:ts=8
1
# Created by: Jan Stocker <Jan.Stocker@t-online.de>
2
# New ports collection makefile for:	tuxpuck
3
# Date created:		25 April 2002
4
# Whom:			Jan Stocker <Jan.Stocker@t-online.de>
5
#
6
# $FreeBSD: head/games/tuxpuck/Makefile 301188 2012-07-19 20:15:37Z naddy $
2
# $FreeBSD: head/games/tuxpuck/Makefile 301188 2012-07-19 20:15:37Z naddy $
7
#
8
3
9
PORTNAME=	tuxpuck
4
PORTNAME=	tuxpuck
10
PORTVERSION=	0.8.2
5
PORTVERSION=	0.8.2
Lines 15-44 Link Here
15
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	Shufflepuck Cafe Clone
11
COMMENT=	Shufflepuck Cafe Clone
17
12
18
LIB_DEPENDS=	jpeg.11:${PORTSDIR}/graphics/jpeg \
13
LIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg \
19
		png15:${PORTSDIR}/graphics/png \
14
		png15:${PORTSDIR}/graphics/png \
20
		vorbis.4:${PORTSDIR}/audio/libvorbis \
15
		vorbis:${PORTSDIR}/audio/libvorbis \
21
		freetype.9:${PORTSDIR}/print/freetype2
16
		freetype:${PORTSDIR}/print/freetype2
22
17
23
USE_SDL=	sdl
18
USE_SDL=	sdl
24
USE_GMAKE=	yes
19
USE_GMAKE=	yes
25
ALL_TARGET=	tuxpuck
20
ALL_TARGET=	${PORTNAME}
26
MAKE_JOBS_UNSAFE=	yes
21
MAKE_JOBS_UNSAFE=	yes
27
22
28
CFLAGS+=	-I${LOCALBASE}/include/libpng15
23
CFLAGS+=	-I${LOCALBASE}/include/libpng15
24
29
MANCOMPRESSED=	yes
25
MANCOMPRESSED=	yes
30
MAN6=		tuxpuck.6
26
31
PLIST_FILES=	bin/tuxpuck
27
PLIST_FILES=	bin/${PORTNAME}
28
29
MAN6=		${PORTNAME}.6
32
30
33
.include <bsd.port.pre.mk>
31
.include <bsd.port.pre.mk>
34
32
35
post-patch:
33
post-patch:
36
	cd ${WRKSRC}; \
34
	cd ${WRKSRC}; \
37
	${REINPLACE_CMD} "s,timer_create,_timer_create,g" \
35
	${REINPLACE_CMD} 's|timer_create|_timer_create|g' \
38
	tuxpuck.c video.c timer.c intro.c tuxpuck.h
36
	tuxpuck.c video.c timer.c intro.c tuxpuck.h
37
	${REINPLACE_CMD} -e 's|sdl-config|$$(SDL_CONFIG)|g' ${WRKSRC}/utils/Makefile
39
38
40
do-install:
39
do-install:
41
	${INSTALL_PROGRAM} ${WRKSRC}/tuxpuck ${PREFIX}/bin
40
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
42
	${INSTALL_MAN} ${WRKSRC}/man/tuxpuck.6.gz ${MANPREFIX}/man/man6
41
	${INSTALL_MAN} ${WRKSRC}/man/${MAN6}.gz ${MAN6PREFIX}/man/man6
43
42
44
.include <bsd.port.post.mk>
43
.include <bsd.port.post.mk>
(-)./files/patch-utils::Makefile (-15 lines)
Lines 1-15 Link Here
1
--- utils/Makefile.orig	Fri Nov  8 11:50:29 2002
2
+++ utils/Makefile	Wed Dec 25 15:41:44 2002
3
@@ -9,10 +9,10 @@
4
 	$(CC) $(CFLAGS) ttf2font.c `freetype-config --cflags --libs` -o ttf2font
5
 
6
 data2c : data2c.c
7
-	$(CC) $(CFLAGS) data2c.c `sdl-config --cflags --libs` -o data2c
8
+	$(CC) $(CFLAGS) data2c.c `$(SDL_CONFIG) --cflags --libs` -o data2c
9
 
10
 anim : anim.c
11
-	$(CC) $(CFLAGS) anim.c `sdl-config --cflags --libs` -o anim
12
+	$(CC) $(CFLAGS) anim.c `$(SDL_CONFIG) --cflags --libs` -o anim
13
 
14
 clean :
15
 	rm -f *~ data2c ttf2font anim

Return to bug 179935