2004-06-07 12:07:58 +00:00
|
|
|
# New ports collection makefile for: FreeDoko
|
|
|
|
# Date created: 02 Jun 2004
|
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= freedoko
|
2009-09-02 16:43:37 +00:00
|
|
|
PORTVERSION= 0.7.6b
|
2010-03-28 06:47:48 +00:00
|
|
|
PORTREVISION= 2
|
2004-06-07 12:07:58 +00:00
|
|
|
CATEGORIES= games
|
2009-08-22 00:23:13 +00:00
|
|
|
MASTER_SITES= SF/free-doko/FreeDoko%20source/${PORTVERSION}
|
2004-06-07 12:07:58 +00:00
|
|
|
DISTNAME= FreeDoko_${PORTVERSION}.src
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= Play the card game Doppelkopf
|
|
|
|
|
2006-02-13 07:46:05 +00:00
|
|
|
LIB_DEPENDS= gnet-2.0.0:${PORTSDIR}/net/gnet2 \
|
|
|
|
gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24
|
2004-06-07 12:07:58 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:C/\.src$//}/src
|
2005-08-01 14:55:06 +00:00
|
|
|
|
|
|
|
USE_ZIP= yes
|
2004-06-07 12:07:58 +00:00
|
|
|
USE_GMAKE= yes
|
2009-09-02 16:43:37 +00:00
|
|
|
MAKE_ENV= OS="${OPSYS}" DATADIR="${DATADIR}" DOCSDIR="${DOCSDIR}"
|
2005-11-07 05:52:49 +00:00
|
|
|
|
2005-08-01 14:55:06 +00:00
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC} -name "*Makefile*" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|\.\./data|$$(DATADIR)|g ; \
|
2009-09-02 16:43:37 +00:00
|
|
|
s|\.\./doc/manual|$$(DOCSDIR)/manual|g ; \
|
2005-09-16 12:40:16 +00:00
|
|
|
s|@echo $$(CXX)|@true $$(CXX)|g ; \
|
2005-08-01 14:55:06 +00:00
|
|
|
s|@$$(CXX)|$$(CXX)|g ; \
|
|
|
|
s|make -C|$$(MAKE) -C|g'
|
2009-09-02 16:43:37 +00:00
|
|
|
@${REINPLACE_CMD} -e '/\/X11\//d ; \
|
|
|
|
s|/usr/local/|${LOCALBASE}/|g' ${WRKSRC}/misc/setting.cpp
|
2005-01-02 00:56:40 +00:00
|
|
|
|
2004-06-07 12:07:58 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/FreeDoko ${PREFIX}/bin
|
2005-08-01 14:55:06 +00:00
|
|
|
${LN} -sf FreeDoko ${PREFIX}/bin/freedoko
|
2004-06-07 12:07:58 +00:00
|
|
|
@${MKDIR} ${DATADIR}
|
2009-09-02 16:43:37 +00:00
|
|
|
.for file in icon.png logo.png
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}
|
|
|
|
.endfor
|
2006-02-13 07:46:05 +00:00
|
|
|
.for dir in backgrounds cardsets rules translations
|
2005-08-01 14:55:06 +00:00
|
|
|
@cd ${WRKSRC}/../data && ${FIND} ${dir} ! -name "*Makefile*" | \
|
|
|
|
${CPIO} --quiet -pdum -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
|
|
|
|
.endfor
|
|
|
|
.if !defined(NOPORTDOCS)
|
2004-06-07 12:07:58 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-08-01 14:55:06 +00:00
|
|
|
@cd ${WRKSRC}/../doc && ${FIND} . ! -name "*Makefile*" | \
|
|
|
|
${CPIO} --quiet -pdum -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
|
|
|
.endif
|
2004-06-07 12:07:58 +00:00
|
|
|
|
2005-08-01 14:55:06 +00:00
|
|
|
.include <bsd.port.mk>
|