blob: 39dc5ee23aad67f48eb58275cf3cac494a36a9a3 (
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
|
# New ports collection makefile for: pingus
# Date created: 2007-10-05
# Whom: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= pingus
PORTVERSION= 0.7.2
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://pingus.seul.org/files/
MAINTAINER= acm@FreeBSD.org
COMMENT= Free Lemmings-like game
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
boost_regex.4:${PORTSDIR}/devel/boost \
physfs-1.0.1:${PORTSDIR}/devel/physfs
USE_BZIP2= yes
USE_ICONV= yes
USE_SCONS= yes
SCONS_ARGS= with_linuxusbmouse=0 \
with_linuxevdev=0
USE_SDL= sdl image mixer
PLIST= ${WRKDIR}/pkg-plist
post-patch:
@${REINPLACE_CMD} -e 's|add_path("data")|add_path("${DATADIR}")|g' \
${WRKSRC}/src/pingus_main.cpp
pre-install:
@${RM} -f ${PLIST}
@${ECHO_CMD} "bin/${PORTNAME}" >> ${PLIST}
@cd ${WRKSRC}/data && \
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
@${ECHO_CMD} "@dirrm %%DATADIR%%" >> ${PLIST}
do-install:
@${MKDIR} ${DATADIR}
@cd ${WRKSRC}/data && \
${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
|