blob: 418dc2ca900c8e841583e0dacb4d429a6ead5c23 (
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
|
# New ports collection makefile for: pongix
# Date created: 2006-04-01
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
#
# $FreeBSD$
#
PORTNAME= pongix
PORTVERSION= 0.4
CATEGORIES= games
MASTER_SITES= http://www.losersjuegos.com.ar/juegos/pongix/descargas/
MAINTAINER= acm@FreeBSD.org
COMMENT= Free pong-like game
USE_X_PREFIX= yes
USE_SDL= sdl image net
USE_GMAKE= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD}
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
post-extract:
@${FIND} -E ${WRKSRC}/src/ -type f -iregex ".*\.(c|h)" \
-print0 | ${XARGS} -0 ${REINPLACE_CMD} -e 's/<SDL/<SDL11/g'
do-install:
${MKDIR} ${DATADIR}
@cd ${WRKSRC}/src && \
${INSTALL_PROGRAM} pongix ${PREFIX}/bin
@cd ${WRKSRC}/data && \
${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
${FIND} -E * -type f -iregex ".*\.(jpg|bmp)" \
-exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
@cd ${WRKSRC} && \
${INSTALL_DATA} AUTHORS ChangeLog README ${DOCSDIR}
.endif
.include <bsd.port.mk>
|