2007-10-06 08:42:55 +02:00
|
|
|
# New ports collection makefile for: pingus
|
|
|
|
# Date created: 2007-10-05
|
|
|
|
# Whom: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pingus
|
2007-12-22 13:46:38 +01:00
|
|
|
PORTVERSION= 0.7.2
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 7
|
2007-10-06 08:42:55 +02:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://pingus.seul.org/files/
|
|
|
|
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
|
|
COMMENT= Free Lemmings-like game
|
|
|
|
|
2010-03-28 08:47:48 +02:00
|
|
|
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \
|
2009-07-28 13:45:08 +02:00
|
|
|
boost_regex.4:${PORTSDIR}/devel/boost-libs \
|
2009-04-04 14:05:22 +02:00
|
|
|
physfs.1:${PORTSDIR}/devel/physfs
|
2007-10-06 08:42:55 +02:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_ICONV= yes
|
|
|
|
USE_SCONS= yes
|
2007-12-22 13:46:38 +01:00
|
|
|
SCONS_ARGS= with_linuxusbmouse=0 \
|
|
|
|
with_linuxevdev=0
|
2007-10-06 08:42:55 +02:00
|
|
|
USE_SDL= sdl image mixer
|
|
|
|
|
2010-03-12 20:47:16 +01:00
|
|
|
DESKTOP_ENTRIES= "Pingus" "${COMMENT}" "" \
|
|
|
|
"pingus" "" false
|
|
|
|
|
2007-12-22 13:46:38 +01:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
2007-10-07 10:46:30 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|add_path("data")|add_path("${DATADIR}")|g' \
|
|
|
|
${WRKSRC}/src/pingus_main.cpp
|
2007-10-06 08:42:55 +02:00
|
|
|
|
|
|
|
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>
|