summaryrefslogtreecommitdiff
path: root/devel/pilrc/Makefile
blob: 2b7509909d9c7c1df7af017fd305bb599aa0145e (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
# $NetBSD: Makefile,v 1.11 2002/10/15 23:34:40 dillo Exp $
#

DISTNAME=	pilrc-2.9p9
PKGNAME=	pilrc-2.9.10
DIFFS=		pilrc-2.9p10.diff
EXTRACT_SUFFIX=	.tgz
DISTFILES=	${DISTNAME}${EXTRACT_SUFFIX} ${DIFFS}
CATEGORIES=	devel
MASTER_SITES=	http://www.ardiri.com/download/files/palm/
#MASTER_SITES=	http://www.ardiri.com/download/palm/pilrc/archive/
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFFIX}

# we can't use this, since pilrc's maintainer won't create patches with
# unix line endings
#PATCH_SITES=	${MASTER_SITES}
#PATCHFILES=	pilrc-2.9p10.diff
#PATCH_DIST_STRIP+=-p1

MAINTAINER=	dillo@netbsd.org
HOMEPAGE=	http://www.ardiri.com/index.cfm?redir=palm&cat=pilrc
COMMENT=	generate resources for PalmOS applications from textual description

#EXTRACT_CMD=	unzip -aq ${DOWNLOADED_DISTFILE}

USE_GMAKE=	YES
USE_BUILDLINK2=	YES
GNU_CONFIGURE=	YES

#WRKSRC=		${WRKDIR}/pilrc-2.9p9
DOCDIR=		${PREFIX}/share/doc/html/pilrc

.include "../../mk/bsd.prefs.mk"

PILRC_USE_GTK?=	YES

.if ${PILRC_USE_GTK} == YES
.include "../../x11/gtk/buildlink2.mk"
PLIST_SUBST+=	PILRCUI=''
.else
CONFIGURE_ARGS+=--disable-pilrcui
PLIST_SUBST+=	PILRCUI='@comment '
.endif

#post-extract:
#	${CHMOD} +x ${WRKSRC}/configure
#	${CHMOD} +x ${WRKSRC}/missing

pre-patch:
	cd ${WRKSRC} && tr -d '\015' < ${DISTDIR}/${DIFFS} \
		| ${PATCH} --quiet -p1
post-install:
	${INSTALL_DATA_DIR} ${DOCDIR} ${DOCDIR}/images
	cd ${WRKSRC}/doc &&						\
		${INSTALL_DATA} archive.html download.html index.html	\
		contrib.html history.html manual.html ${DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/images/download.gif ${DOCDIR}/images

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