blob: 45a360ca609e080de1e33bd88a4fbc69ecc9940f (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# $FreeBSD$
PORTNAME= 3dpong
PORTVERSION= 0.5
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/3dpong/src/ \
ftp://ftp.billsgames.com/unix/x/3dpong/src/ \
http://www.newbreedsoftware.com/images/prodicons/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.gif:icons
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= nemysis@gmx.ch
COMMENT= X Window 3D Pong game for 1 or 2 players
LICENSE= GPLv2
BUILD_DEPENDS= giftopnm:${PORTSDIR}/graphics/netpbm
USE_XORG= x11
USE_GMAKE= yes
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
XLIB="-L${LOCALBASE}/lib -lX11"
MAN6= ${PORTNAME}.6
PLIST_FILES= bin/${PORTNAME} \
share/pixmaps/${PORTNAME}.png \
share/examples/${PORTNAME}/${PORTNAME}-handball.sh \
share/examples/${PORTNAME}/${PORTNAME}-vs-computer.sh
PLIST_DIRS= share/examples/${PORTNAME}
PORTDATA= *
PORTDOCS= AUTHORS.txt CHANGES.txt README.txt TODO.txt
DESKTOP_ENTRIES="3D Pong" "${COMMENT}" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ${FALSE}
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|cat sounds/|cat ${DATADIR}/|g' ${WRKSRC}/src/3dpong.c
post-build:
@(cd ${WRKSRC} && \
${LOCALBASE}/bin/giftopnm ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}.gif | \
${LOCALBASE}/bin/pnmtopng > ${PORTNAME}.png)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/sounds/*.au ${DATADIR}
${INSTALL_MAN} ${WRKSRC}/src/${MAN6} ${MAN6PREFIX}/man/man6
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/pixmaps
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${DOCSDIR}
.endif
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.include <bsd.port.mk>
|