2013-04-26 16:39:14 +00:00
|
|
|
# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
2006-01-14 18:25:07 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ceferino
|
2007-10-04 17:08:14 +00:00
|
|
|
PORTVERSION= 0.97.8
|
2014-12-08 16:48:38 +00:00
|
|
|
PORTREVISION= 15
|
2006-01-14 18:25:07 +00:00
|
|
|
CATEGORIES= games
|
2009-02-15 01:14:19 +00:00
|
|
|
MASTER_SITES= http://www.losersjuegos.com.ar/_media/juegos/ceferino/descargas/
|
2006-01-14 18:25:07 +00:00
|
|
|
|
2006-07-23 02:45:24 +00:00
|
|
|
MAINTAINER= acm@FreeBSD.org
|
2006-01-14 18:25:07 +00:00
|
|
|
COMMENT= Game similar to Super Pang
|
|
|
|
|
2014-11-23 10:02:04 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2006-01-14 18:25:07 +00:00
|
|
|
USE_SDL= sdl mixer image
|
|
|
|
GNU_CONFIGURE= yes
|
2014-05-29 14:35:01 +00: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 17:56:05 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD}
|
2006-01-14 18:25:07 +00:00
|
|
|
|
2006-01-29 11:49:22 +00:00
|
|
|
CEFEDIRS= ima music levels sounds
|
2006-01-14 18:25:07 +00:00
|
|
|
|
2014-11-23 10:02:04 +00:00
|
|
|
PORTDOCS= AUTHORS ChangeLog README
|
2013-04-26 16:39:14 +00:00
|
|
|
OPTIONS_DEFINE= NLS DOCS
|
2014-11-23 10:02:04 +00:00
|
|
|
OPTIONS_SUB= yes
|
2006-01-28 20:01:20 +00:00
|
|
|
|
2014-11-23 10:02:04 +00:00
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
|
|
NLS_USES= gettext
|
2006-01-28 20:01:20 +00:00
|
|
|
|
2014-11-23 10:02:04 +00:00
|
|
|
DESKTOP_ENTRIES="Don Ceferino Hazaña" "" "${PORTNAME}" \
|
|
|
|
"${PORTNAME}" "Game;ArcadeGame;" ""
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2006-01-28 20:01:20 +00:00
|
|
|
|
2006-01-14 18:25:07 +00:00
|
|
|
post-extract:
|
2006-09-20 11:21:59 +00:00
|
|
|
@${REINPLACE_CMD} -e 's/-lSDL /`sdl-config --libs`/g' ${WRKSRC}/configure
|
2006-01-14 18:25:07 +00:00
|
|
|
|
|
|
|
post-configure:
|
2006-01-29 11:49:22 +00:00
|
|
|
@${REINPLACE_CMD} -e 's/-pthread/-pthread -lintl/g' ${WRKSRC}/src/Makefile
|
2006-01-14 18:25:07 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@cd ${WRKSRC}/src && \
|
2014-07-14 09:59:13 +00:00
|
|
|
${INSTALL_PROGRAM} ceferino ceferinoeditor ceferinosetup ${STAGEDIR}${PREFIX}/bin
|
2006-01-29 11:49:22 +00:00
|
|
|
@cd ${WRKSRC}/data && \
|
2014-07-14 09:59:13 +00:00
|
|
|
${FIND} ${CEFEDIRS} -type d -exec ${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \
|
2016-12-01 11:18:03 +00:00
|
|
|
${FIND} -E ${CEFEDIRS} -type f -iregex ".*\.(png|jpg|xm|map|wav)" -exec ${INSTALL_DATA} {} "${STAGEDIR}${DATADIR}/{}" \;
|
2014-11-23 10:02:04 +00:00
|
|
|
${LN} -sf ${DATADIR}/ima/icono.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2007-10-04 01:02:44 +00:00
|
|
|
.for f in es ca fr
|
2014-07-14 09:59:13 +00: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 18:25:07 +00:00
|
|
|
.endfor
|
2006-01-28 20:01:20 +00:00
|
|
|
.endif
|
2014-11-23 10:02:04 +00:00
|
|
|
|
2014-07-14 09:59:13 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2014-11-23 10:02:04 +00:00
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2006-01-14 18:25:07 +00:00
|
|
|
|
2013-04-26 16:39:14 +00:00
|
|
|
.include <bsd.port.mk>
|