pkgsrc/emulators/palmosemulator/Makefile
dsainty 67f995f0ab Casts to va_list are forbidden by ISO C++. Even if everything works as
intended, the format string parser that generates the va_list does not support
all formatting characters.

Make this code portable by failing to parse any format string at all, not just
the ones that aren't fully supported.

Bump PKGREVISION for the functional change, though this code is probably
generally unused anyway.  Unmark as BROKEN and NOT_FOR_PLATFORM - I think all
uses of va_list casts are inhibited.
2010-04-06 04:36:00 +00:00

76 lines
2.3 KiB
Makefile

# $NetBSD: Makefile,v 1.31 2010/04/06 04:36:00 dsainty Exp $
#
DISTNAME= emulator_src_${POSE_VERSION}
PKGNAME= palmosemulator-${POSE_VERSION}
PKGREVISION= 10
CATEGORIES= emulators x11
MASTER_SITES= http://www.palmos.com/dev/tools/emulator/sources/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
emulator-skins-19.tar.gz
MAINTAINER= dsainty@NetBSD.org
HOMEPAGE= http://www.palmos.com/dev/tools/emulator/
COMMENT= Palm OS Emulator
#LICENSE= GPL
PKG_DESTDIR_SUPPORT= user-destdir
POSE_VERSION= 3.5
DIST_SUBDIR= ${PKGBASE}
# Source is under sources/ directory, skins are not...
SITES.emulator-skins-19.tar.gz= http://www.palmos.com/dev/tools/emulator/
WRKSRC= ${WRKDIR}/Emulator_Src_${POSE_VERSION}
POSE_BUILD_DIR= ${WRKSRC}/BuildUnix
POSE_SHARE_DIR= ${PREFIX}/share/palmosemulator
POSE_SKINS_DIR= ${POSE_SHARE_DIR}/skins
WRKSRC_SKINS= ${WRKDIR}/Skins_v1.9
CPPFLAGS+= -DFLTK_1_0_COMPAT
CONFIGURE_DIRS= ${POSE_BUILD_DIR}
BUILD_DIRS= ${POSE_BUILD_DIR}
USE_LANGUAGES= c c++
USE_TOOLS+= gmake perl:run
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --with-fltk=${BUILDLINK_PREFIX.fltk}
CONFIGURE_ENV+= PACKAGE_SKINS_DIR=${POSE_SKINS_DIR:Q}
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}
do-install:
${INSTALL_PROGRAM} ${POSE_BUILD_DIR}/pose ${DESTDIR}${PREFIX}/bin/pose
${FIND} ${WRKSRC}/Docs -type f -print | \
while read i; do \
${INSTALL_DATA} "$$i" ${DESTDIR}${POSE_SHARE_DIR}/docs; \
done
for lang in Python Perl; do \
ddir=${DESTDIR}${POSE_SHARE_DIR}/scripting/$$lang; \
${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
${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
${FIND} ${WRKSRC_SKINS} \( -name "*.skin" -o -name "*.jpg" \) -print |\
while read i; do \
${INSTALL_DATA} "$$i" ${DESTDIR}${POSE_SKINS_DIR}; \
done
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../x11/fltk/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"