2015-06-12 12:48:20 +02:00
|
|
|
# $NetBSD: Makefile,v 1.45 2015/06/12 10:50:04 wiz Exp $
|
2002-12-31 07:59:51 +01:00
|
|
|
#
|
|
|
|
|
2003-01-05 04:31:25 +01:00
|
|
|
DISTNAME= emulator_src_${POSE_VERSION}
|
|
|
|
PKGNAME= palmosemulator-${POSE_VERSION}
|
2015-06-12 12:48:20 +02:00
|
|
|
PKGREVISION= 19
|
2002-12-31 07:59:51 +01:00
|
|
|
CATEGORIES= emulators x11
|
|
|
|
MASTER_SITES= http://www.palmos.com/dev/tools/emulator/sources/
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
emulator-skins-19.tar.gz
|
|
|
|
|
2003-07-17 23:31:04 +02:00
|
|
|
MAINTAINER= dsainty@NetBSD.org
|
2013-04-13 21:29:22 +02:00
|
|
|
#HOMEPAGE= http://www.palmos.com/dev/tools/emulator/
|
2002-12-31 07:59:51 +01:00
|
|
|
COMMENT= Palm OS Emulator
|
2009-05-19 10:59:00 +02:00
|
|
|
#LICENSE= GPL
|
2002-12-31 07:59:51 +01:00
|
|
|
|
2015-01-01 10:57:54 +01:00
|
|
|
# This package doesn't draw a clear distinction between host and guest
|
|
|
|
# addresses, so 64-bit host addresses give it fits. If you want to try
|
|
|
|
# to make it work, contact dholland@, who has partial patches.
|
2012-01-03 03:07:38 +01:00
|
|
|
NOT_FOR_PLATFORM= ${LP64PLATFORMS}
|
|
|
|
|
2003-01-05 04:31:25 +01:00
|
|
|
POSE_VERSION= 3.5
|
|
|
|
|
2002-12-31 07:59:51 +01:00
|
|
|
DIST_SUBDIR= ${PKGBASE}
|
|
|
|
|
|
|
|
# Source is under sources/ directory, skins are not...
|
2006-07-27 20:48:02 +02:00
|
|
|
SITES.emulator-skins-19.tar.gz= http://www.palmos.com/dev/tools/emulator/
|
2002-12-31 07:59:51 +01:00
|
|
|
|
2007-02-22 20:26:05 +01:00
|
|
|
WRKSRC= ${WRKDIR}/Emulator_Src_${POSE_VERSION}
|
2002-12-31 07:59:51 +01:00
|
|
|
POSE_BUILD_DIR= ${WRKSRC}/BuildUnix
|
|
|
|
POSE_SHARE_DIR= ${PREFIX}/share/palmosemulator
|
|
|
|
POSE_SKINS_DIR= ${POSE_SHARE_DIR}/skins
|
|
|
|
WRKSRC_SKINS= ${WRKDIR}/Skins_v1.9
|
2004-02-23 11:30:47 +01:00
|
|
|
CPPFLAGS+= -DFLTK_1_0_COMPAT
|
2002-12-31 07:59:51 +01:00
|
|
|
|
|
|
|
CONFIGURE_DIRS= ${POSE_BUILD_DIR}
|
|
|
|
BUILD_DIRS= ${POSE_BUILD_DIR}
|
|
|
|
|
2006-05-21 05:01:10 +02:00
|
|
|
USE_LANGUAGES= c c++
|
2007-09-02 14:06:18 +02:00
|
|
|
USE_TOOLS+= gmake perl:run
|
2002-12-31 07:59:51 +01:00
|
|
|
|
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
CONFIGURE_ARGS+= --with-fltk=${BUILDLINK_PREFIX.fltk}
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= PACKAGE_SKINS_DIR=${POSE_SKINS_DIR:Q}
|
2002-12-31 07:59:51 +01:00
|
|
|
|
2007-09-02 14:06:18 +02:00
|
|
|
REPLACE_PERL= Scripting/Perl/*.pl
|
|
|
|
|
|
|
|
INSTALLATION_DIRS= bin ${POSE_SHARE_DIR}/docs ${POSE_SHARE_DIR}/scripting
|
|
|
|
INSTALLATION_DIRS+= ${POSE_SHARE_DIR}/prc ${POSE_SKINS_DIR}
|
2005-06-16 08:57:37 +02:00
|
|
|
|
2002-12-31 07:59:51 +01:00
|
|
|
do-install:
|
2007-09-02 14:06:18 +02:00
|
|
|
${INSTALL_PROGRAM} ${POSE_BUILD_DIR}/pose ${DESTDIR}${PREFIX}/bin/pose
|
2002-12-31 07:59:51 +01:00
|
|
|
${FIND} ${WRKSRC}/Docs -type f -print | \
|
|
|
|
while read i; do \
|
2007-09-02 14:06:18 +02:00
|
|
|
${INSTALL_DATA} "$$i" ${DESTDIR}${POSE_SHARE_DIR}/docs; \
|
2002-12-31 07:59:51 +01:00
|
|
|
done
|
2003-01-05 04:31:25 +01:00
|
|
|
for lang in Python Perl; do \
|
2007-09-02 14:06:18 +02:00
|
|
|
ddir=${DESTDIR}${POSE_SHARE_DIR}/scripting/$$lang; \
|
2003-01-05 04:31:25 +01:00
|
|
|
${INSTALL_SCRIPT_DIR} "$$ddir"; \
|
|
|
|
${FIND} "${WRKSRC}/Scripting/$$lang" -type f -print | \
|
|
|
|
while read i; do \
|
|
|
|
case "$$i" in \
|
|
|
|
*.pl) ${INSTALL_SCRIPT} "$$i" "$$ddir";; \
|
|
|
|
*) ${INSTALL_DATA} "$$i" "$$ddir";; \
|
|
|
|
esac; \
|
|
|
|
done; \
|
|
|
|
done
|
2007-09-02 14:06:18 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC_SKINS}/ReadMe.txt ${DESTDIR}${POSE_SHARE_DIR}/docs/ReadMe_skins.txt
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ROMTransfer/Source/ROM_Transfer.prc ${DESTDIR}${POSE_SHARE_DIR}/prc
|
2002-12-31 07:59:51 +01:00
|
|
|
${FIND} ${WRKSRC_SKINS} \( -name "*.skin" -o -name "*.jpg" \) -print |\
|
|
|
|
while read i; do \
|
2007-09-02 14:06:18 +02:00
|
|
|
${INSTALL_DATA} "$$i" ${DESTDIR}${POSE_SKINS_DIR}; \
|
2002-12-31 07:59:51 +01:00
|
|
|
done
|
|
|
|
|
2010-12-23 12:44:24 +01:00
|
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
2004-05-05 07:06:28 +02:00
|
|
|
.include "../../x11/fltk/buildlink3.mk"
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2002-12-31 07:59:51 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|