2013-04-26 18:39:14 +02:00
|
|
|
# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
2006-01-14 19:25:07 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ceferino
|
2007-10-04 19:08:14 +02:00
|
|
|
PORTVERSION= 0.97.8
|
2014-12-08 17:48:38 +01:00
|
|
|
PORTREVISION= 15
|
2006-01-14 19:25:07 +01:00
|
|
|
CATEGORIES= games
|
2009-02-15 02:14:19 +01:00
|
|
|
MASTER_SITES= http://www.losersjuegos.com.ar/_media/juegos/ceferino/descargas/
|
2006-01-14 19:25:07 +01:00
|
|
|
|
2006-07-23 04:45:24 +02:00
|
|
|
MAINTAINER= acm@FreeBSD.org
|
2006-01-14 19:25:07 +01:00
|
|
|
COMMENT= Game similar to Super Pang
|
|
|
|
|
2014-11-23 11:02:04 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2006-01-14 19:25:07 +01:00
|
|
|
USE_SDL= sdl mixer image
|
|
|
|
GNU_CONFIGURE= yes
|
2014-05-29 16:35:01 +02:00
|
|
|
USES= gmake
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD}
|
2006-01-14 19:25:07 +01:00
|
|
|
|
2006-01-29 12:49:22 +01:00
|
|
|
CEFEDIRS= ima music levels sounds
|
2006-01-14 19:25:07 +01:00
|
|
|
|
2014-11-23 11:02:04 +01:00
|
|
|
PORTDOCS= AUTHORS ChangeLog README
|
2013-04-26 18:39:14 +02:00
|
|
|
OPTIONS_DEFINE= NLS DOCS
|
2014-11-23 11:02:04 +01:00
|
|
|
OPTIONS_SUB= yes
|
2006-01-28 21:01:20 +01:00
|
|
|
|
2014-11-23 11:02:04 +01:00
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
|
|
NLS_USES= gettext
|
2006-01-28 21:01:20 +01:00
|
|
|
|
2014-11-23 11:02:04 +01:00
|
|
|
DESKTOP_ENTRIES="Don Ceferino Hazaña" "" "${PORTNAME}" \
|
|
|
|
"${PORTNAME}" "Game;ArcadeGame;" ""
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2006-01-28 21:01:20 +01:00
|
|
|
|
2006-01-14 19:25:07 +01:00
|
|
|
post-extract:
|
2006-09-20 13:21:59 +02:00
|
|
|
@${REINPLACE_CMD} -e 's/-lSDL /`sdl-config --libs`/g' ${WRKSRC}/configure
|
2006-01-14 19:25:07 +01:00
|
|
|
|
|
|
|
post-configure:
|
2006-01-29 12:49:22 +01:00
|
|
|
@${REINPLACE_CMD} -e 's/-pthread/-pthread -lintl/g' ${WRKSRC}/src/Makefile
|
2006-01-14 19:25:07 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@cd ${WRKSRC}/src && \
|
2014-07-14 11:59:13 +02:00
|
|
|
${INSTALL_PROGRAM} ceferino ceferinoeditor ceferinosetup ${STAGEDIR}${PREFIX}/bin
|
2006-01-29 12:49:22 +01:00
|
|
|
@cd ${WRKSRC}/data && \
|
2014-07-14 11:59:13 +02:00
|
|
|
${FIND} ${CEFEDIRS} -type d -exec ${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \
|
2016-12-01 12:18:03 +01:00
|
|
|
${FIND} -E ${CEFEDIRS} -type f -iregex ".*\.(png|jpg|xm|map|wav)" -exec ${INSTALL_DATA} {} "${STAGEDIR}${DATADIR}/{}" \;
|
2014-11-23 11:02:04 +01:00
|
|
|
${LN} -sf ${DATADIR}/ima/icono.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2007-10-04 03:02:44 +02:00
|
|
|
.for f in es ca fr
|
2014-07-14 11:59:13 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${f}/LC_MESSAGES && \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/po/${f}.gmo ${STAGEDIR}${PREFIX}/share/locale/${f}/LC_MESSAGES/${PORTNAME}.mo
|
2006-01-14 19:25:07 +01:00
|
|
|
.endfor
|
2006-01-28 21:01:20 +01:00
|
|
|
.endif
|
2014-11-23 11:02:04 +01:00
|
|
|
|
2014-07-14 11:59:13 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2014-11-23 11:02:04 +01:00
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2006-01-14 19:25:07 +01:00
|
|
|
|
2013-04-26 18:39:14 +02:00
|
|
|
.include <bsd.port.mk>
|