2013-02-08 02:57:39 +01:00
|
|
|
# Created by: Will Andrews <andrews@technologist.com>
|
1999-09-30 05:18:29 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-04-14 14:28:40 +02:00
|
|
|
PORTNAME= wmminichess
|
|
|
|
PORTVERSION= 0.8
|
2013-02-08 02:57:39 +01:00
|
|
|
PORTREVISION= 4
|
1999-09-30 05:18:29 +02:00
|
|
|
CATEGORIES= games
|
2011-08-26 06:03:10 +02:00
|
|
|
MASTER_SITES= http://web.cs.mun.ca/~gstarkes/wmaker/dockapps/files/
|
2000-04-14 14:28:40 +02:00
|
|
|
DISTNAME= miniCHESS-${PORTVERSION}
|
1999-09-30 05:18:29 +02:00
|
|
|
|
2000-06-22 07:52:15 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-12-09 20:45:10 +01:00
|
|
|
COMMENT= Window Maker chess dockapp game
|
1999-09-30 05:18:29 +02:00
|
|
|
|
2011-08-26 06:03:10 +02:00
|
|
|
LICENSE= GPLv2 # (or later)
|
2011-08-02 19:04:00 +02:00
|
|
|
|
2002-11-16 03:19:32 +01:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/gnuchess:${PORTSDIR}/games/gnuchess
|
1999-09-30 05:18:29 +02:00
|
|
|
|
- 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
|
|
|
USE_XORG= xpm
|
2013-02-08 02:57:39 +01:00
|
|
|
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -DENGINE=\"${LOCALBASE}/bin/gnuchessx\"
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lXpm -lXext -lX11
|
|
|
|
|
|
|
|
PORTDOCS= README TODO
|
|
|
|
PLIST_FILES= bin/minichess
|
|
|
|
|
2013-09-20 19:36:33 +02:00
|
|
|
NO_STAGE= yes
|
2013-02-08 02:57:39 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
(cd ${WRKSRC} \
|
|
|
|
&& ${CC} ${CFLAGS} ${CPPFLAGS} -o minichess *.c ${LDFLAGS})
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} minichess ${PREFIX}/bin)
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ${PORTDOCS}
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
|
|
|
|
.endfor
|
|
|
|
.endif
|
1999-09-30 05:18:29 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|