Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / emulators / palmosemulator / Makefile
blob291ca763188bc53aca92d4633dce52854c2fcee3
1 # $NetBSD: Makefile,v 1.39 2013/02/16 11:21:06 wiz Exp $
4 DISTNAME= emulator_src_${POSE_VERSION}
5 PKGNAME= palmosemulator-${POSE_VERSION}
6 PKGREVISION= 15
7 CATEGORIES= emulators x11
8 MASTER_SITES= http://www.palmos.com/dev/tools/emulator/sources/
9 DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
10 emulator-skins-19.tar.gz
12 MAINTAINER= dsainty@NetBSD.org
13 #HOMEPAGE= http://www.palmos.com/dev/tools/emulator/
14 COMMENT= Palm OS Emulator
15 #LICENSE= GPL
17 NOT_FOR_PLATFORM= ${LP64PLATFORMS}
19 POSE_VERSION= 3.5
21 DIST_SUBDIR= ${PKGBASE}
23 # Source is under sources/ directory, skins are not...
24 SITES.emulator-skins-19.tar.gz= http://www.palmos.com/dev/tools/emulator/
26 WRKSRC= ${WRKDIR}/Emulator_Src_${POSE_VERSION}
27 POSE_BUILD_DIR= ${WRKSRC}/BuildUnix
28 POSE_SHARE_DIR= ${PREFIX}/share/palmosemulator
29 POSE_SKINS_DIR= ${POSE_SHARE_DIR}/skins
30 WRKSRC_SKINS= ${WRKDIR}/Skins_v1.9
31 CPPFLAGS+= -DFLTK_1_0_COMPAT
33 CONFIGURE_DIRS= ${POSE_BUILD_DIR}
34 BUILD_DIRS= ${POSE_BUILD_DIR}
36 USE_LANGUAGES= c c++
37 USE_TOOLS+= gmake perl:run
39 GNU_CONFIGURE= YES
40 CONFIGURE_ARGS+= --with-fltk=${BUILDLINK_PREFIX.fltk}
41 CONFIGURE_ENV+= PACKAGE_SKINS_DIR=${POSE_SKINS_DIR:Q}
43 REPLACE_PERL= Scripting/Perl/*.pl
45 INSTALLATION_DIRS= bin ${POSE_SHARE_DIR}/docs ${POSE_SHARE_DIR}/scripting
46 INSTALLATION_DIRS+= ${POSE_SHARE_DIR}/prc ${POSE_SKINS_DIR}
48 do-install:
49 ${INSTALL_PROGRAM} ${POSE_BUILD_DIR}/pose ${DESTDIR}${PREFIX}/bin/pose
50 ${FIND} ${WRKSRC}/Docs -type f -print | \
51 while read i; do \
52 ${INSTALL_DATA} "$$i" ${DESTDIR}${POSE_SHARE_DIR}/docs; \
53 done
54 for lang in Python Perl; do \
55 ddir=${DESTDIR}${POSE_SHARE_DIR}/scripting/$$lang; \
56 ${INSTALL_SCRIPT_DIR} "$$ddir"; \
57 ${FIND} "${WRKSRC}/Scripting/$$lang" -type f -print | \
58 while read i; do \
59 case "$$i" in \
60 *.pl) ${INSTALL_SCRIPT} "$$i" "$$ddir";; \
61 *) ${INSTALL_DATA} "$$i" "$$ddir";; \
62 esac; \
63 done; \
64 done
65 ${INSTALL_DATA} ${WRKSRC_SKINS}/ReadMe.txt ${DESTDIR}${POSE_SHARE_DIR}/docs/ReadMe_skins.txt
66 ${INSTALL_DATA} ${WRKSRC}/ROMTransfer/Source/ROM_Transfer.prc ${DESTDIR}${POSE_SHARE_DIR}/prc
67 ${FIND} ${WRKSRC_SKINS} \( -name "*.skin" -o -name "*.jpg" \) -print |\
68 while read i; do \
69 ${INSTALL_DATA} "$$i" ${DESTDIR}${POSE_SKINS_DIR}; \
70 done
72 .include "../../mk/jpeg.buildlink3.mk"
73 .include "../../x11/fltk/buildlink3.mk"
74 .include "../../mk/pthread.buildlink3.mk"
76 .include "../../mk/bsd.pkg.mk"