summaryrefslogtreecommitdiff
path: root/package/joe/Makefile
blob: 11f51ea3441aaa4b0b59f8f7f170d41dfc12de26 (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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${ADK_TOPDIR}/rules.mk

PKG_NAME:=		joe
PKG_VERSION:=		4.4
PKG_RELEASE:=		1
PKG_HASH:=		a5704828bbca29acb9e200414fef522c66cdf9ce28150f402d6767da43460979
PKG_DESCR:=		small editor
PKG_SECTION:=		app/editor
PKG_URL:=		http://joe-editor.sourceforge.net/
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=joe-editor/}

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz

PKG_FLAVOURS_JOE:=	LANGUAGE SYNTAX
PKGFD_LANGUAGE:=	install translation files
PKGFD_SYNTAX:=		install syntax highlighting files

include ${ADK_TOPDIR}/mk/package.mk

$(eval $(call PKG_template,JOE,joe,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

joe-install:
	${INSTALL_DIR} ${IDIR_JOE}/usr/bin
	${INSTALL_DIR} ${IDIR_JOE}/etc/joe
	${CP} ${WRKINST}/usr/bin/* ${IDIR_JOE}/usr/bin
	${CP} ${WRKINST}/etc/joe/* ${IDIR_JOE}/etc/joe
ifeq (${ADK_PACKAGE_JOE_LANGUAGE},y)
	${INSTALL_DIR} ${IDIR_JOE}/usr/share/joe/lang
	${CP} ${WRKINST}/usr/share/joe/lang/* ${IDIR_JOE}/usr/share/joe/lang
endif
ifeq (${ADK_PACKAGE_JOE_SYNTAX},y)
	${INSTALL_DIR} ${IDIR_JOE}/usr/share/joe/syntax
	${INSTALL_DIR} ${IDIR_JOE}/usr/share/joe/charmaps
	${CP} ${WRKINST}/usr/share/joe/syntax/* ${IDIR_JOE}/usr/share/joe/syntax
	${CP} ${WRKINST}/usr/share/joe/charmaps/* ${IDIR_JOE}/usr/share/joe/charmaps
endif

include ${ADK_TOPDIR}/mk/pkg-bottom.mk