2008-04-28 12:42:36 +02:00
|
|
|
# New ports collection makefile for: openalchemist
|
|
|
|
# Date created: Sat Oct 01 09:30:00 UTC 2003
|
2010-09-07 17:52:18 +02:00
|
|
|
# Whom: Ganael LAPLANCHE <ganael.laplanche@martymac.org>
|
2008-04-28 12:42:36 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= openalchemist
|
2008-11-08 21:16:03 +01:00
|
|
|
PORTVERSION= 0.3
|
2012-06-15 11:56:13 +02:00
|
|
|
PORTREVISION= 12
|
2008-04-28 12:42:36 +02:00
|
|
|
CATEGORIES= games
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
2008-04-28 12:42:36 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
|
|
|
|
2010-09-27 14:08:23 +02:00
|
|
|
MAINTAINER= martymac@FreeBSD.org
|
2008-04-28 12:42:36 +02:00
|
|
|
COMMENT= Tetris-like game
|
|
|
|
|
2012-03-20 11:12:47 +01:00
|
|
|
LICENSE= GPLv2 CCbySA
|
|
|
|
LICENSE_COMB= multi
|
|
|
|
LICENSE_NAME_CCbySA= Creative Commons Attribution-ShareAlike
|
|
|
|
LICENSE_FILE_CCbySA= ${WRKSRC}/GRAPHICS-LICENSE
|
|
|
|
LICENSE_PERMS_CCbySA= ${_LICENSE_PERMS_DEFAULT}
|
|
|
|
|
2008-04-28 12:42:36 +02:00
|
|
|
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip
|
2012-06-15 11:56:13 +02:00
|
|
|
LIB_DEPENDS= clanCore:${PORTSDIR}/devel/clanlib \
|
|
|
|
jpeg:${PORTSDIR}/graphics/jpeg \
|
2012-06-01 07:26:28 +02:00
|
|
|
png15:${PORTSDIR}/graphics/png
|
2008-04-28 12:42:36 +02:00
|
|
|
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= aclocal automake autoconf
|
2008-11-08 21:16:03 +01:00
|
|
|
# Necessary to find pkg.m4 (PKG_CHECK_MODULES)
|
|
|
|
ACLOCAL_ARGS+= -I ${LOCALBASE}/share/aclocal
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GNOME= pkgconfig pygtk2
|
|
|
|
USE_XORG= xxf86vm xi x11 xmu xext xdamage xfixes xau xdmcp xt sm ice
|
|
|
|
USE_GL= gl glu
|
|
|
|
USE_SDL= sdl gfx
|
|
|
|
USE_ICONV= yes
|
|
|
|
|
2012-03-20 11:12:47 +01:00
|
|
|
PORTDOCS= AUTHORS ChangeLog README TODO
|
2008-04-28 12:42:36 +02:00
|
|
|
|
2012-06-15 11:56:13 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2008-04-28 12:42:36 +02:00
|
|
|
post-patch:
|
2008-11-08 21:16:03 +01:00
|
|
|
@${REINPLACE_CMD} -E -e 's|^%|#|g' ${WRKSRC}/configure.ac
|
|
|
|
@${REINPLACE_CMD} -E -e 's|^dist_pkgdata_DATA =.*|dist_pkgdata_DATA = data/* skins/aqua.zip skins/brushed.zip skins/vectoriel.zip|g' ${WRKSRC}/Makefile.am
|
|
|
|
@${REINPLACE_CMD} -E -e 's|^#!/usr/bin/python|#!${LOCALBASE}/bin/python|g' ${WRKSRC}/openalchemist-config
|
|
|
|
|
|
|
|
post-install:
|
2012-06-15 11:56:13 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2008-11-08 21:16:03 +01:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2012-06-15 11:56:13 +02:00
|
|
|
.for doc in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
2008-11-08 21:16:03 +01:00
|
|
|
.endfor
|
|
|
|
.endif
|
2008-04-28 12:42:36 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|