summaryrefslogtreecommitdiff
path: root/emulators/palmosemulator/Makefile
blob: 51926bf44536cf3d49fef3e550c7adb3b38b8e9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# $NetBSD: Makefile,v 1.10 2004/01/22 08:36:04 grant Exp $
#

DISTNAME=	emulator_src_${POSE_VERSION}
PKGNAME=	palmosemulator-${POSE_VERSION}
PKGREVISION=	2
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

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/

#LICENSE=       GPL

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

CONFIGURE_DIRS=	${POSE_BUILD_DIR}
BUILD_DIRS=	${POSE_BUILD_DIR}

USE_BUILDLINK2=	YES
USE_PERL5=	build
USE_X11=	YES
USE_GNU_TOOLS+=	make

GNU_CONFIGURE=	YES
CONFIGURE_ARGS+=	--with-fltk=${BUILDLINK_PREFIX.fltk}
CONFIGURE_ENV+=		PACKAGE_SKINS_DIR=${POSE_SKINS_DIR}

# Assumes too much about how to build va_list's from scratch
NOT_FOR_PLATFORM=	*-*-powerpc

do-install:
	${INSTALL_PROGRAM} ${POSE_BUILD_DIR}/pose ${PREFIX}/bin/pose
	${INSTALL_DATA_DIR} ${POSE_SHARE_DIR}
	${INSTALL_DATA_DIR} ${POSE_SHARE_DIR}/docs
	${INSTALL_DATA_DIR} ${POSE_SHARE_DIR}/scripting
	${FIND} ${WRKSRC}/Docs -type f -print | \
		while read i; do \
			${INSTALL_DATA} "$$i" ${POSE_SHARE_DIR}/docs; \
		done
	for lang in Python Perl; do \
		ddir="${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 ${POSE_SHARE_DIR}/docs/ReadMe_skins.txt
	${INSTALL_DATA_DIR} ${POSE_SHARE_DIR}/prc
	${INSTALL_DATA} ${WRKSRC}/ROMTransfer/Source/ROM_Transfer.prc ${POSE_SHARE_DIR}/prc
	${INSTALL_DATA_DIR} ${POSE_SKINS_DIR}
	${FIND} ${WRKSRC_SKINS} \( -name "*.skin" -o -name "*.jpg" \) -print |\
		while read i; do \
			${INSTALL_DATA} "$$i" ${POSE_SKINS_DIR}; \
		done

.include "../../graphics/jpeg/buildlink2.mk"
.include "../../lang/perl5/buildlink2.mk"
.include "../../x11/fltk/buildlink2.mk"
.include "../../mk/pthread.buildlink2.mk"

.include "../../mk/bsd.pkg.mk"