daad0f3d6c
INSTALL/DEINSTALL script creation within pkgsrc. If an INSTALL or DEINSTALL script is found in the package directory, it is automatically used as a template for the pkginstall-generated scripts. If instead, they should be used simply as the full scripts, then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC explicitly, e.g.: INSTALL_SRC= ${PKGDIR}/INSTALL DEINSTALL_SRC= # emtpy As part of the restructuring of the pkginstall framework internals, we now *always* generate temporary INSTALL or DEINSTALL scripts. By comparing these temporary scripts with minimal INSTALL/DEINSTALL scripts formed from only the base templates, we determine whether or not the INSTALL/DEINSTALL scripts are actually needed by the package (see the generate-install-scripts target in bsd.pkginstall.mk). In addition, more variables in the framework have been made private. The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are more sensible names given the very few exported variables in this framework. The only public variables relating to the templates are: INSTALL_SRC INSTALL_TEMPLATE DEINSTALL_SRC DEINSTALL_TEMPLATE HEADER_TEMPLATE The packages in pkgsrc have been modified to reflect the changes in the pkginstall framework.
58 lines
1.6 KiB
Makefile
58 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.31 2006/03/14 01:14:28 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= nethack_source_331_jtp_193
|
|
PKGNAME= falcons-eye-1.9.3
|
|
PKGREVISION= 7
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=falconseye/}
|
|
EXTRACT_SUFX= .zip
|
|
|
|
MAINTAINER= ben@NetBSD.org
|
|
HOMEPAGE= http://falconseye.sourceforge.net/
|
|
COMMENT= Falcon's Eye NetHack
|
|
|
|
EXTRACT_OPTS_ZIP= -aq
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_SCRIPT= ./sys/unix/setup.sh
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}-20050216-2
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
USE_TOOLS+= bison lex
|
|
MAKE_ENV+= YACC=${TOOLS_CMDLINE_YACC:Q}
|
|
DEINSTALL_SRC= ${PKGDIR}/DEINSTALL
|
|
INSTALL_SRC= # empty
|
|
|
|
LIBS.SunOS+= -lm
|
|
|
|
SUBST_CLASSES+= paths
|
|
SUBST_MESSAGE.paths= "Configuring program paths."
|
|
SUBST_STAGE.paths= post-patch
|
|
SUBST_FILES.paths= include/config.h src/fe-config.in
|
|
SUBST_SED.paths= -e "s,XXXPREFIXXXX,${PREFIX},g" \
|
|
-e "s,@GZIP_PROGRAM@,${GZIP_CMD:M*gzip},g"
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
SUBST_CLASSES+= unixconf
|
|
SUBST_MESSAGE.unixconf= "Configuring to use NetBSD presets."
|
|
SUBST_STAGE.unixconf= post-patch
|
|
SUBST_FILES.unixconf= include/unixconf.h
|
|
SUBST_SED.unixconf= -e 's,^\/\* \#define BSD 1 \*\/,\#define BSD 1,' \
|
|
-e 's,^\#define SYSV,\/\* \#define SYSV \*\/,' \
|
|
-e 's,^\#define LINUX,\/\* \#define LINUX \*\/,'
|
|
.endif
|
|
|
|
pre-configure:
|
|
${CP} ${WRKSRC}/src/fe-config.in ${WRKSRC}/src/fe-config
|
|
@${CHMOD} 755 ${WRKSRC}/sys/unix/setup.sh
|
|
|
|
pre-install:
|
|
@${CP} ${WRKSRC}/src/nethack ${WRKSRC}/src/falcons-eye
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/src/fe-config ${PREFIX}/bin
|
|
|
|
.include "../../devel/SDL/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|