aboutsummaryrefslogtreecommitdiff
path: root/editors/gxedit/Makefile
blob: f72641ade21d0214f213dbfc232cd46cc7f27d18 (plain) (blame)
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
# New ports collection makefile for:	gxedit
# Date created:				01 Jul 1998
# Whom:					Dom Mitchell <dom@happygiraffe.net>
#
# $FreeBSD$
#

PORTNAME=	gxedit
PORTVERSION=	1.23
PORTREVISION=	1
CATEGORIES=	editors
MASTER_SITES=	http://www.cyberspace.org/~elfguy00/
DISTNAME=	GXedit-${PORTVERSION}

MAINTAINER=	dom@happygiraffe.net
COMMENT=	A simple GTK+ editor

USE_X_PREFIX=	yes
USE_REINPLACE=	yes
USE_GNOME=	gtk12
WRKSRC=		${WRKDIR}/GXedit${PORTVERSION}

ALL_TARGET=	gxedit

.include <bsd.port.pre.mk>

.if ${ARCH} == "alpha" && ${OSVERSION} >= 502102
BROKEN=		"Does not compile on alpha 5.x"
.endif

post-patch:
	@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/config.h

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/gtk-shell ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/gxedit ${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/ftp.sh ${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/ftp-ls.sh ${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/ftp-put.sh ${PREFIX}/bin
	${MKDIR} ${PREFIX}/share/gxedit/
.for i in popmail.scr traceroute.scr userinfo.scr www.scr
	${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/gxedit
.endfor
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/gxedit/
.for i in charmap.txt manual.ps manual.txt quickref.ps quickref.txt
	${INSTALL_DATA} ${WRKSRC}/docs/$i ${PREFIX}/share/doc/gxedit/
.endfor
.endif

.include <bsd.port.post.mk>