1997-03-04 10:35:21 +01:00
|
|
|
# New ports collection makefile for: angband
|
|
|
|
# Date created: 21 Feb 1997
|
|
|
|
# Whom: Matthew Hunt <mph@pobox.com>
|
|
|
|
#
|
1999-08-25 08:06:33 +02:00
|
|
|
# $FreeBSD$
|
1997-03-04 10:35:21 +01:00
|
|
|
#
|
|
|
|
|
2000-04-14 02:45:49 +02:00
|
|
|
PORTNAME= angband
|
2007-07-10 22:47:54 +02:00
|
|
|
PORTVERSION= 3.0.8
|
1997-03-04 10:35:21 +01:00
|
|
|
CATEGORIES= games
|
2007-07-10 22:47:54 +02:00
|
|
|
MASTER_SITES= http://rephial.org/downloads/ \
|
|
|
|
http://angband.oook.cz/download/
|
1997-03-04 10:35:21 +01:00
|
|
|
|
2006-04-15 16:16:30 +02:00
|
|
|
MAINTAINER= pav@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Rogue-like game with color, X11 support
|
1997-03-04 10:35:21 +01:00
|
|
|
|
2007-07-10 22:47:54 +02:00
|
|
|
USE_GMAKE= yes
|
2002-10-28 23:27:32 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-07-21 05:36:15 +02:00
|
|
|
CONFIGURE_ARGS= --with-setgid=games
|
2003-01-28 00:16:46 +01:00
|
|
|
.if !defined(WITHOUT_X11)
|
2007-07-10 22:47:54 +02:00
|
|
|
USE_XORG= sm x11
|
2005-07-21 05:36:15 +02:00
|
|
|
CONFIGURE_ARGS+= --with-x
|
2003-01-28 00:16:46 +01:00
|
|
|
.else
|
2005-07-21 05:36:15 +02:00
|
|
|
CONFIGURE_ARGS+= --with-x=no
|
2003-01-28 00:16:46 +01:00
|
|
|
.endif
|
|
|
|
|
2005-07-21 05:36:15 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
2003-01-28 00:16:46 +01:00
|
|
|
pre-fetch:
|
|
|
|
.if !defined(WITHOUT_X11)
|
|
|
|
@${ECHO_MSG} "You could define WITHOUT_X11, if you don't want X support"
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "Building without X support"
|
|
|
|
.endif
|
1997-10-27 10:48:06 +01:00
|
|
|
|
2007-07-10 22:47:54 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|-lSM|-L${LOCALBASE}/lib -lSM|' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's| $$(INCLUDEDIR)||' ${WRKSRC}/mk/objective.mk
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e 's|$${prefix}|${PREFIX}|' ${WRKSRC}/src/autoconf.h
|
|
|
|
|
2005-07-21 05:36:15 +02:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
1997-03-04 10:35:21 +01:00
|
|
|
.include <bsd.port.mk>
|