pkgsrc/emulators/peace/Makefile
kent f76304e4e9 Make this compilable on the recent NetBSD-4.
- support for KERN_OLDSYSVSHM
   patch provided by Sergey Svishchev
 - no support for NetBSD-5 because of /emul/pecoff
2008-12-07 16:23:45 +00:00

46 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.27 2008/12/07 16:23:45 kent Exp $
#
PEACE_VERSION= 0.0.20060701
DISTNAME= peace-${PEACE_VERSION}
#SITES.peace-0.0.20060701.tar.gz=http://chiharu.hauN.org/peace/dist/
CATEGORIES= emulators
MAINTAINER= kent@NetBSD.org
HOMEPAGE= http://chiharu.hauN.org/peace/
COMMENT= Support running Win32 executables
DISTFILES+= peace-${PEACE_VERSION}.tar.gz
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=peace/}
# This version doesn't work on NetBSD-5.x because of /emul/pecoff removal.
ONLY_FOR_PLATFORM= NetBSD-[34].*-i386
DEPENDS+= icu>=2.4nb1:../../textproc/icu
DEPENDS+= freetype2>=2.2.1:../../graphics/freetype2
# bin/showstack requires perl5 and cross-i386-netbsdpe
# DEPENDS+= perl5:../../lang/perl5
# DEPENDS+= cross-i386-netbsdpe>=3.3:../../cross/i386-netbsdpe
BUILD_DEPENDS+= cross-i386-netbsdpe>=3.3:../../cross/i386-netbsdpe
BUILD_DEPENDS+= x11-links>=0.30:../../pkgtools/x11-links
# Don't use "+=" here to avoid unexpected link with ELF libraries
LDFLAGS= -L${WRKSRC}/lib
PECOFFDIR= ${PREFIX}/emul/pecoff
MAKE_FLAGS+= PECOFFDIR=${PECOFFDIR:Q} \
LOCALBASE=${LOCALBASE:Q} \
CROSSBASE=${CROSSBASE:Q} \
X11BASE=${X11BASE:Q} \
CHECK_DEPENDENTS=NO
INSTALL_DIRS= libexec/ld.pe_so dll bin
pre-install:
${INSTALL_PROGRAM_DIR} ${PECOFFDIR}/usr/libexec
${INSTALL_DATA_DIR} ${PECOFFDIR}/usr/lib
post-install:
${RMDIR} ${PREFIX}/emul/pecoff/usr/share/man/cat1
${RMDIR} ${PREFIX}/emul/pecoff/usr/share/man/man1
${RMDIR} ${PREFIX}/emul/pecoff/usr/share/man
${RMDIR} ${PREFIX}/emul/pecoff/usr/share
.include "../../mk/bsd.pkg.mk"