2002-07-07 18:52:48 +02:00
|
|
|
# New ports collection makefile for: JNetHack 3.4.x
|
|
|
|
# Date created: 16 June 2002
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
1995-05-14 04:35:19 +02:00
|
|
|
#
|
1999-08-25 07:28:01 +02:00
|
|
|
# $FreeBSD$
|
1995-05-14 04:35:19 +02:00
|
|
|
#
|
|
|
|
|
2003-10-18 11:24:04 +02:00
|
|
|
PORTNAME= nethack
|
2004-02-09 04:19:32 +01:00
|
|
|
PORTVERSION= 3.4.3
|
2005-10-15 00:45:28 +02:00
|
|
|
PORTREVISION= 1
|
1996-11-11 11:13:07 +01:00
|
|
|
CATEGORIES= japanese games
|
2003-10-18 11:24:04 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2004-02-09 04:19:32 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}-src
|
2003-10-18 11:24:04 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
1995-05-14 04:35:19 +02:00
|
|
|
|
2003-09-06 22:59:53 +02:00
|
|
|
PATCH_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
|
2005-10-15 00:45:28 +02:00
|
|
|
PATCH_SITE_SUBDIR= jnethack/15876
|
|
|
|
PATCHFILES= jnethack-${PORTVERSION}-0.7.diff.gz
|
2002-07-07 18:52:48 +02:00
|
|
|
PATCH_DIST_STRIP= -p1
|
1995-05-14 04:35:19 +02:00
|
|
|
|
2005-11-11 02:18:01 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-10-15 00:45:28 +02:00
|
|
|
COMMENT= Japanized NetHack
|
|
|
|
|
2003-10-18 11:24:04 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2002-07-25 19:34:39 +02:00
|
|
|
USE_BISON= yes
|
2003-10-18 11:24:04 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
MAKE_ENV= CXX="${CXX}" GRAPHICS="${GRAPHICS}"
|
|
|
|
PLIST_SUB= HACKNAME="${HACKNAME}" \
|
|
|
|
HACKDIR="${HACKDIR}" \
|
|
|
|
HACKDOCSDIR="${HACKDOCSDIR}"
|
2002-07-25 19:34:39 +02:00
|
|
|
|
2003-10-18 11:24:04 +02:00
|
|
|
MAN6= dgn_comp.6 dlb.6 lev_comp.6 nethack.6 recover.6
|
2002-08-12 23:52:00 +02:00
|
|
|
# Configure these variables as you want them to be.
|
2002-08-12 23:48:56 +02:00
|
|
|
HACKNAME?= jnethack
|
2002-08-12 23:52:00 +02:00
|
|
|
HACKDIR?= lib/${HACKNAME}
|
2002-08-12 23:48:56 +02:00
|
|
|
HACKDOCSDIR?= share/doc/ja/nethack
|
|
|
|
|
2003-10-18 11:24:04 +02:00
|
|
|
.if !defined(PKGNAMESUFFIX)
|
|
|
|
USE_XPM= yes
|
|
|
|
GRAPHICS= X11_GRAPHICS
|
|
|
|
.else
|
|
|
|
.if ${PKGNAMESUFFIX} == "-gnome"
|
2005-10-15 00:45:28 +02:00
|
|
|
CATEGORIES+= gnome
|
2003-10-18 11:24:04 +02:00
|
|
|
USE_GETOPT_LONG= yes
|
|
|
|
USE_GNOME= gnomelibs
|
|
|
|
MAKE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
GRAPHICS= GNOME_GRAPHICS
|
|
|
|
.elif ${PKGNAMESUFFIX} == "-nox11"
|
|
|
|
GRAPHICS= # none
|
|
|
|
.elif ${PKGNAMESUFFIX} == "-qt"
|
|
|
|
USE_QT_VER= 3
|
|
|
|
MAKE_ENV+= QTCPPFLAGS="${QTCPPFLAGS} ${PTHREAD_CFLAGS}" \
|
|
|
|
QTCFGLIBS="${QTCFGLIBS} ${PTHREAD_LIBS}" \
|
|
|
|
MOC="${MOC}" LIBQT="-lqt-mt"
|
|
|
|
GRAPHICS= QT_GRAPHICS
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.for f in include/config.h sys/unix/Makefile.src sys/unix/Makefile.top
|
|
|
|
${REINPLACE_CMD} -e 's|%%HACKNAME%%|${HACKNAME}|g;s|%%HACKDIR%%|${PREFIX}/${HACKDIR}|g' ${WRKSRC}/${f}
|
|
|
|
.endfor
|
|
|
|
${REINPLACE_CMD} -e 's|<regex.h>|<gnuregex.h>|g' ${WRKSRC}/src/sounds.c
|
|
|
|
${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/win/Qt/qt_win.cpp
|
|
|
|
.if defined(WITHOUT_SHELL)
|
|
|
|
@${REINPLACE_CMD} -e 's|#define SHELL|/* #define SHELL|' ${WRKSRC}/include/unixconf.h
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC}/sys/unix; ${SH} setup.sh
|
1995-05-14 04:35:19 +02:00
|
|
|
|
2003-10-18 11:24:04 +02:00
|
|
|
post-install:
|
2003-01-14 11:20:01 +01:00
|
|
|
# Makefile.top digs bin/lib somehow
|
|
|
|
${RMDIR} ${PREFIX}/bin/lib
|
1998-11-22 16:40:15 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-08-12 23:48:56 +02:00
|
|
|
${MKDIR} ${PREFIX}/${HACKDOCSDIR}
|
1998-11-22 16:40:15 +01:00
|
|
|
.for i in README.j ChangeLog.j INSTALL.j
|
2002-08-12 23:48:56 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/${HACKDOCSDIR}
|
1998-11-22 16:40:15 +01:00
|
|
|
.endfor
|
2003-10-18 11:24:04 +02:00
|
|
|
.endif
|
|
|
|
@cd ${WRKSRC}/doc; ${SETENV} ${MAKE_ENV} ${MAKE} manpages
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${PREFIX}/${HACKDOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${PREFIX}/${HACKDOCSDIR}
|
1998-11-22 16:40:15 +01:00
|
|
|
.endif
|
|
|
|
|
2003-10-18 11:24:04 +02:00
|
|
|
.include <bsd.port.mk>
|